/* ========== FIGHTING RING THEME ========== */
/* Knockout reds, arena-spotlight whites, boxing-ring rope motifs, light canvas bg */

:root {
  /* Core palette */
  --canvas: #faf7f0;
  --canvas-dark: #f0ebe0;
  --rope-brown: #8b6914;
  --rope-tan: #d4a853;
  --knockout-red: #c41e3a;
  --knockout-red-dark: #8b0000;
  --knockout-red-light: #e8445a;
  --spotlight: #fffef9;
  --spotlight-dim: #f5f0e8;
  --text-primary: #1a1512;
  --text-secondary: #5c5248;
  --text-muted: #8a7e72;
  --border-light: #e0d8c8;
  --border-medium: #c8b898;
  --border-dark: #a08060;

  /* Accent */
  --ring-post: #3d3d3d;
  --ring-post-light: #666;
  --gold-accent: #c9a84c;
  --gold-dark: #8b7530;

  /* Typography */
  --font-heading: 'Georgia', 'Noto Serif SC', 'SimSun', serif;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-mono: 'Fira Code', 'Consolas', 'Courier New', monospace;

  /* Spacing */
  --section-gap: 80px;
  --container-max: 1100px;
  --content-max: 820px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--knockout-red); text-decoration: none; }
a:hover { color: var(--knockout-red-dark); }

/* ========== ROPE BORDERS (universal motif) ========== */
.rope-divider {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--rope-brown) 0px,
    var(--rope-brown) 8px,
    var(--rope-tan) 8px,
    var(--rope-tan) 16px
  );
  border: none;
  margin: 0;
}

.rope-triple {
  position: relative;
  padding: 12px 0;
  margin: 0;
  border: none;
  background: none;
}
.rope-triple::before,
.rope-triple::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--rope-brown) 0px,
    var(--rope-brown) 6px,
    var(--rope-tan) 6px,
    var(--rope-tan) 12px
  );
}
.rope-triple::before { top: 0; }
.rope-triple::after { bottom: 0; }

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ring-post);
  color: var(--spotlight);
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(26, 21, 18, 0.7) 70%,
    rgba(26, 21, 18, 0.92) 100%
  );
}

/* Per-page hero backgrounds (no inline styles!) */
.hero-home .hero-bg { background-image: url('../img/header.jpg'); }
.hero-guide .hero-bg { background-image: url('../img/header.jpg'); }
.hero-story .hero-bg { background-image: url('../img/header.jpg'); }
.hero-characters .hero-bg { background-image: url('../img/header.jpg'); }
.hero-faq .hero-bg { background-image: url('../img/header.jpg'); }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 120px 24px 48px;
  width: 100%;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  color: var(--spotlight);
}

.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 24px;
}

/* ========== HEADER / NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 21, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--rope-brown);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--spotlight);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: rgba(255,255,255,0.75);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.925rem;
  font-weight: 500;
  transition: all 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--spotlight);
  background: rgba(196, 30, 58, 0.25);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--knockout-red) !important;
  color: var(--spotlight) !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  transition: all 0.25s !important;
}

.nav-cta:hover {
  background: var(--knockout-red-dark) !important;
  border-color: var(--gold-accent);
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--spotlight);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ========== LAYOUT ========== */
main {
  margin-top: 64px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== SECTIONS ========== */
.section {
  padding: var(--section-gap) 24px;
}

.section-alt {
  background: var(--canvas-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-header .accent-bar {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--knockout-red);
  border-radius: 2px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ========== INTRO BOX (index) ========== */
.intro-box {
  background: var(--spotlight);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.intro-box h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--knockout-red-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.intro-box p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 1.02rem;
}

/* ========== FEATURE CARDS (index) ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.feature-card {
  background: var(--spotlight);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.12);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--knockout-red);
  border-radius: 0 0 3px 3px;
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ========== SCREENSHOT GALLERY (index) ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: var(--canvas-dark);
}

.gallery-item:hover {
  border-color: var(--knockout-red);
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.2);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ========== REVIEWS (index) ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.review-card {
  background: var(--spotlight);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
}

.review-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--knockout-red);
  opacity: 0.2;
  position: absolute;
  top: 8px;
  left: 16px;
  line-height: 1;
}

.review-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.review-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.review-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ========== CTA SECTION (index) ========== */
.cta-section {
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--ring-post) 0%, #1a1512 100%);
  color: var(--spotlight);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--knockout-red) 0px,
    var(--knockout-red) 8px,
    var(--rope-tan) 8px,
    var(--rope-tan) 16px
  );
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-btn {
  display: inline-block;
  background: var(--knockout-red);
  color: var(--spotlight);
  padding: 16px 48px;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.cta-btn:hover {
  background: var(--knockout-red-dark);
  border-color: var(--gold-accent);
  box-shadow: 0 0 30px rgba(196, 30, 58, 0.5);
  color: var(--spotlight);
  transform: translateY(-2px);
}

/* ========== CONTENT PAGES (guide, story, characters) ========== */
.page-hero {
  min-height: 280px;
}

.page-hero .hero-content {
  padding: 80px 24px 36px;
}

.page-hero h1 {
  font-size: 2.2rem;
}

.content-section {
  padding: 48px 24px;
}

.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--knockout-red-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  position: relative;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--knockout-red);
}

.content-section h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.content-section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.85;
}

.content-section ul,
.content-section ol {
  margin: 16px 0 24px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.content-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ========== CHARACTER CARDS ========== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.char-card {
  background: var(--spotlight);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.char-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--knockout-red);
}

.char-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--knockout-red-dark);
  margin-bottom: 12px;
}

.char-card .char-role {
  display: inline-block;
  background: var(--canvas-dark);
  color: var(--text-secondary);
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.char-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.75;
}

.char-card .char-traits {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.char-trait {
  background: rgba(196, 30, 58, 0.08);
  color: var(--knockout-red);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid rgba(196, 30, 58, 0.15);
}

/* ========== GUIDE TABLES ========== */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.93rem;
}

.guide-table th,
.guide-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border-light);
}

.guide-table th {
  background: var(--knockout-red);
  color: var(--spotlight);
  font-weight: 600;
  font-size: 0.88rem;
}

.guide-table tr:nth-child(even) td {
  background: var(--canvas-dark);
}

.guide-table tr:hover td {
  background: rgba(196, 30, 58, 0.06);
}

/* ========== TIP BOX ========== */
.tip-box {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.06), rgba(196, 30, 58, 0.02));
  border-left: 4px solid var(--knockout-red);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}

.tip-box strong {
  color: var(--knockout-red-dark);
}

.tip-box p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.93rem;
}

/* ========== FAQ ACCORDION ========== */
.faq-list {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--spotlight);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--canvas-dark);
}

.faq-question .faq-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s;
  color: var(--knockout-red);
}

.faq-item.open .faq-question .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--ring-post);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.85rem;
  border-top: 3px solid var(--rope-brown);
}

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

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  border: 3px solid var(--rope-brown);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--spotlight);
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  line-height: 1;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--knockout-red);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero {
    min-height: 380px;
  }
  .hero-content {
    padding: 100px 20px 36px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .page-hero h1 {
    font-size: 1.7rem;
  }
  .features-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid,
  .char-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 48px 20px;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .cta-section h2 {
    font-size: 1.5rem;
  }
  .intro-box {
    padding: 24px;
  }
  .header-inner {
    padding: 0 16px;
  }
  .hamburger {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(26, 21, 18, 0.96);
    flex-direction: column;
    padding: 16px;
    gap: 0;
    display: none;
    border-bottom: 3px solid var(--rope-brown);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav a:last-child {
    border-bottom: none;
  }
  .nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 320px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero .subtitle {
    font-size: 0.95rem;
  }
  .content-section {
    padding: 32px 16px;
  }
  .cta-btn {
    padding: 14px 32px;
    font-size: 1rem;
  }
}
