/*
Theme Name: Ricohead Theme
Theme URI: http://localhost
Author: Tanner
Description: Custom WordPress theme with light and dark mode
Version: 1.0
*/

/* wpForo subtle theme blending */
#wpforo-wrap {
  font-family: inherit;
}

#wpforo-wrap .wpf-topic,
#wpforo-wrap .wpf-forum {
  border-radius: 16px;
}

#wpforo-wrap a:hover {
  color: var(--accent);
}


/* =====================
   bbPress Modern Theme
===================== */

#bbpress-forums {
  font-size: 15px;
}

/* Forum / Topic Lists */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
  background: transparent;
  border: none;
}

/* Card rows */
#bbpress-forums li.bbp-forum,
#bbpress-forums li.bbp-topic,
#bbpress-forums li.bbp-reply {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.06);
}

html.dark #bbpress-forums li.bbp-forum,
html.dark #bbpress-forums li.bbp-topic,
html.dark #bbpress-forums li.bbp-reply {
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  border-color: rgba(255,255,255,.08);
}

/* Titles */
.bbp-forum-title,
.bbp-topic-permalink {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.bbp-forum-title:hover,
.bbp-topic-permalink:hover {
  color: var(--accent);
}

/* Meta text */
.bbp-topic-meta,
.bbp-forum-content,
.bbp-reply-post-date {
  font-size: 13px;
  opacity: .7;
}

/* Headers */
#bbpress-forums .bbp-header,
#bbpress-forums .bbp-footer {
  background: transparent;
  border: none;
  padding: 8px 0;
  font-size: 13px;
  opacity: .7;
}

/* Reply content */
.bbp-reply-content {
  font-size: 15px;
  line-height: 1.6;
}

/* Forms */
#bbpress-forums fieldset.bbp-form {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,.08);
}

html.dark #bbpress-forums fieldset.bbp-form {
  border-color: rgba(255,255,255,.08);
}

/* Buttons */
#bbpress-forums button,
#bbpress-forums input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

#bbpress-forums button:hover,
#bbpress-forums input[type="submit"]:hover {
  opacity: .9;
}


/* =====================
   FOOTER LOGIN BUTTON
===================== */

.footer-login-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(0,0,0,.06),
    rgba(0,0,0,.02)
  );
  border: 1px solid rgba(0,0,0,.12);
  transition: background .2s ease, transform .15s ease, opacity .15s ease;
}

html.dark .footer-login-btn {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.03)
  );
  border: 1px solid rgba(255,255,255,.15);
}

.footer-login-btn:hover {
  transform: translateY(-1px);
  opacity: .9;
}


/* =====================
   CONTACT (COMMENT FORM)
===================== */

.comment-form {
  margin-top: 20px;
}

.comment-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.comment-form label {
  font-size: 14px;
  margin-bottom: 6px;
  opacity: .8;
}

.comment-form input,
.comment-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

html.dark .comment-form input,
html.dark .comment-form textarea {
  border: 1px solid rgba(255,255,255,.15);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}


/* =====================
   CONTACT HOME BOX
===================== */

.contact-home-box p {
  opacity: .85;
  margin-bottom: 16px;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.contact-home-box .btn {
  min-width: 120px;
  text-align: center;
}


/* =====================
   LATEST TECH (FRONT PAGE)
===================== */

.latest-tech-box {
  padding: 32px;
}

.latest-tech-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

/* Image */
.latest-tech-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

/* Info */
.latest-tech-info {
  display: flex;
  flex-direction: column;
}

.latest-tech-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.latest-tech-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.latest-tech-title a {
  color: var(--text);
}

.latest-tech-title a:hover {
  color: var(--accent);
}

.latest-tech-excerpt {
  opacity: .85;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 900px) {
  .latest-tech-feature {
    grid-template-columns: 1fr;
  }

  .latest-tech-image img {
    height: 220px;
  }
}


/* =====================
   CONTACT PAGE
===================== */

.contact-form {
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 6px;
  opacity: .8;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

html.dark .form-group input,
html.dark .form-group textarea {
  border: 1px solid rgba(255,255,255,.15);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-alt {
  margin-top: 20px;
  font-size: 14px;
  opacity: .8;
}


/* =====================
   SINGLE POST
===================== */

/* =====================
   SINGLE POST INNER WIDTH
===================== */

.single-post-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Title */
.post-title {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 42px);
}

/* Meta */
.post-meta {
  font-size: 14px;
  opacity: .7;
  margin-bottom: 18px;
}

/* Featured Image */
.post-featured img {
  width: 100%;
  border-radius: 18px;
  margin: 20px 0 28px;
}

/* Content */
.post-content {
  font-size: 17px;
  line-height: 1.7;
}

.post-content p {
  margin-bottom: 18px;
}

.post-content h2,
.post-content h3 {
  margin-top: 32px;
}

.post-content img {
  max-width: 100%;
  border-radius: 14px;
  margin: 20px 0;
}

/* Links */
.post-content a {
  color: var(--accent);
  font-weight: 500;
}

/* Code blocks (nice for tech posts) */
.post-content pre {
  background: rgba(0,0,0,.08);
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
}

html.dark .post-content pre {
  background: rgba(255,255,255,.08);
}


/* =====================
   TECH POST CARDS
===================== */

.tech-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.7)
  );

  border-radius: 18px;
  box-shadow: 0 15px 30px rgba(0,0,0,.12);
}

html.dark .tech-card {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
}

/* Image */
.tech-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
}

/* Content */
.tech-content {
  display: flex;
  flex-direction: column;
}

.tech-title {
  margin: 0 0 6px;
  font-size: 20px;
}

.tech-title a {
  color: var(--text);
}

.tech-title a:hover {
  color: var(--accent);
}

.tech-meta {
  font-size: 13px;
  opacity: .7;
  margin-bottom: 10px;
}

.tech-excerpt {
  opacity: .85;
  margin-bottom: 12px;
}

.tech-readmore {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
}

/* Mobile */
@medi



.foogallery {
  margin-top: 16px;
}

.foogallery-item img {
  border-radius: 14px;
}

.cars-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  cursor: zoom-in;
}

/* =====================
   CARS GALLERY PAGE
===================== */

.cars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cars-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  cursor: zoom-in;
  transition: transform .2s ease;
}

.cars-grid img:hover {
  transform: scale(1.04);
}

/* Tablet */
@media (max-width: 1000px) {
  .cars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 700px) {
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cars-grid img {
    height: 180px;
  }
}

@media (max-width: 450px) {
  .cars-grid {
    grid-template-columns: 1fr;
  }
}


/* =====================
   HERO TEXT CONTENT BOX (GRADIENT)
===================== */

.hero-text-box {
  height: auto;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;

  /* Subtle gradient */
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.85),
    rgba(255,255,255,0.65)
  );

  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,.18);
}

/* =====================
   GLOBAL BOX GRADIENT
===================== */

.content-box,
.box-inner {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.9),
    rgba(255,255,255,0.7)
  );
}

html.dark .content-box,
html.dark .box-inner {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
}

.content-box,
.box-inner {
  border: 1px solid rgba(0,0,0,.06);
}

html.dark .content-box,
html.dark .box-inner {
  border: 1px solid rgba(255,255,255,.08);
}



/* =====================
   HERO TEXT CONTENT BOX
===================== */

.hero-text-box {
  height: auto;               /* let it size naturally */
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text-box h1 {
  margin-top: 0;
}

.hero-text-box p {
  margin-bottom: 24px;
}


/* =====================
   NAVIGATION
===================== */

.site-brand a {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.site-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  opacity: .85;
  transition: opacity .15s ease, color .15s ease;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Active page highlight (optional) */
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  color: var(--accent);
  opacity: 1;
}


/* =====================
   THEME VARIABLES
===================== */
:root {
  --bg: #f4f4f4;
  --bg-alt: #ffffff;
  --text: #111;
  --muted: #666;
  --accent: #2563eb;
}

html.dark {
  --bg: #121212;
  --bg-alt: #1e1e1e;
  --text: #eaeaea;
  --muted: #aaa;
  --accent: #60a5fa;
}

/* =====================
   BASE / LAYOUT
===================== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  transition: background .25s, color .25s;
}

a {
  color: var(--accent);
  text-decoration: none;
}

main {
  flex: 1;
}

.wrap {
  width: 70%;
  max-width: 1400px;
  margin: 0 auto;
}

/* =====================
   HEADER
===================== */
header {
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.toggle {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
}

/* =====================
   HERO (BOXED)
===================== */
.hero {
  padding: 40px 0;
}

.hero-box {
  background: var(--bg-alt);
  padding: 36px;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,.18);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 4vw, 56px);
}

.hero p {
  font-size: 18px;
  opacity: .85;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

/* VIDEO */
.video-wrap {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
}

/* =====================
   SECTION SPACING
===================== */
.two-boxes,
.image-box {
  padding: 30px 0;
}

/* =====================
   TWO 50 / 50 BOXES
===================== */
.two-box-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.content-box {
  background: var(--bg-alt);
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  height: 350px;
}

.content-box h2 {
  margin-top: 0;
}

.content-box .btn {
  display: inline-block;
  margin-top: 14px;
}

.anilist-box,
.discord-box {
  height: 480px;
}

/* =====================
   ANILIST BOX (SCALED UP)
===================== */

.anilist-box {
  display: flex;
  flex-direction: column;
  height: 480px;
}

/* Title stays at top */
.anilist-box .section-title {
  flex-shrink: 0;
}

/* Centered content area */
.anilist-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* PROFILE */
.anilist-profile-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.anilist-profile-vertical img {
  width: 110px;          /* BIGGER avatar */
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.anilist-profile-vertical h2 {
  margin: 0;
  font-size: 26px;       /* bigger username */
  line-height: 1.2;
}

.anilist-profile-vertical h2 a {
  color: var(--accent);
  font-weight: 600;
}

/* STATS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;             /* more spacing */
}

.stat {
  background: rgba(0,0,0,.05);
  padding: 22px 16px;    /* bigger cards */
  border-radius: 16px;
}

html.dark .stat {
  background: rgba(255,255,255,.06);
}

.stat strong {
  font-size: 30px;       /* BIGGER numbers */
  display: block;
  line-height: 1.1;
}

.stat span {
  font-size: 14px;
  opacity: .75;
}


/* =====================
   DISCORD EMBED
===================== */
.discord-box {
  display: flex;
  flex-direction: column;
}

.discord-box h2 {
  margin: 0 0 12px;
}

.discord-embed {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
}

.discord-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================
   FEATURED PHOTOS
===================== */
.box-inner {
  background: var(--bg-alt);
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* =====================
   SECTION HEADERS (LEFT)
===================== */

.section-title,
.box-title {
  margin: 0 0 16px;
  text-align: left;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,.1);
  font-size: 20px;
  font-weight: 600;
}

html.dark .section-title,
html.dark .box-title {
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.image-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  transition: transform .2s ease;
}

.image-grid img:hover {
  transform: scale(1.04);
}

/* =====================
   LIGHTBOX
===================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.lightbox-img {
  cursor: zoom-in;
}

/* =====================
   FOOTER
===================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid rgba(0,0,0,.1);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-copy {
  font-size: 14px;
  opacity: .8;
}

.footer-socials {
  display: flex;
  gap: 18px;
}

.footer-socials a {
  font-size: 22px;
  color: var(--text);
  opacity: .85;
  transition: transform .15s ease, color .15s ease;
}

.footer-socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1000px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .two-box-grid {
    grid-template-columns: 1fr;
  }

  .content-box {
    height: auto;
    min-height: 350px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-box {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-grid img {
    height: 180px;
  }

  .discord-embed {
    min-height: 300px;
  }
}