/* ============================================
   Four Nights at the Burger Shop - Burger Horror Diner Theme
   Ketchup Reds + Fry Golds on Light Diner Background
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
  /* Primary palette */
  --red-primary: #C62828;
  --red-dark: #8E0000;
  --red-bright: #D32F2F;
  --red-blood: #B71C1C;
  --gold-primary: #FF8F00;
  --gold-light: #FFB300;
  --gold-pale: #FFD54F;
  --gold-warm: #FFE082;

  /* Backgrounds */
  --bg-diner: #FFF8E7;
  --bg-cream: #FFF3E0;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-alt: #FEF5E7;
  --bg-ketchup: #FFF0F0;

  /* Text */
  --text-primary: #3E2723;
  --text-secondary: #6D4C41;
  --text-muted: #8D6E63;
  --text-on-dark: #FFFFFF;
  --text-on-gold: #3E2723;

  /* Accent / UI */
  --accent-shadow: rgba(198, 40, 40, 0.15);
  --accent-border: #E0C8A0;
  --checker-dark: #C62828;
  --checker-light: #FFF3E0;
  --neon-glow: rgba(255, 143, 0, 0.4);

  /* Font stacks */
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Spacing */
  --max-width: 1100px;
  --section-gap: 60px;
  --card-gap: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-diner);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(198, 40, 40, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 143, 0, 0.02) 0%, transparent 50%);
}

a {
  color: var(--red-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--red-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== HEADER & NAVIGATION ========== */
.site-header {
  background: var(--bg-white);
  border-bottom: 3px solid var(--red-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(198, 40, 40, 0.1);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--red-primary) 0px, var(--red-primary) 20px,
    var(--gold-primary) 20px, var(--gold-primary) 40px
  );
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--red-dark);
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--gold-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red-primary);
  background: var(--bg-ketchup);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--gold-primary);
  color: var(--text-on-gold) !important;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-decoration: none;
  transition: all var(--transition-fast) !important;
  box-shadow: 0 2px 8px rgba(255, 143, 0, 0.3);
  border: 2px solid var(--gold-light);
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 143, 0, 0.4);
}

.nav-cta::before {
  content: '🍔';
  font-size: 1.1rem;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--red-primary);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 10, 5, 0.75) 0%,
    rgba(30, 10, 5, 0.55) 40%,
    rgba(30, 10, 5, 0.75) 100%
  );
}

/* Checkerboard diner overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 143, 0, 0.06) 2px,
      rgba(255, 143, 0, 0.06) 4px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 700px;
  padding: 60px 20px;
}

.hero-badge {
  display: inline-block;
  background: var(--red-primary);
  color: var(--text-on-dark);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-on-dark);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 143, 0, 0.3);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--gold-primary);
  color: var(--text-on-gold) !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(255, 143, 0, 0.4);
  border: 2px solid var(--gold-light);
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 143, 0, 0.5);
}

.hero-cta::before {
  content: '🍟';
}

/* Hero page-specific backgrounds */
.hero-home .hero-bg {
  background-image: url('../img/header.jpg');
}

.hero-story .hero-bg {
  background-image: url('../img/screenshot-01.jpg');
}

.hero-characters .hero-bg {
  background-image: url('../img/screenshot-02.jpg');
}

.hero-guide .hero-bg {
  background-image: url('../img/screenshot-03.jpg');
}

.hero-faq .hero-bg {
  background-image: url('../img/header.jpg');
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-gap) 20px;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.content-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.section-lead {
  font-size: 1.15rem !important;
  color: var(--text-primary) !important;
  border-left: 4px solid var(--red-primary);
  padding-left: 20px;
  margin-bottom: 28px !important;
  font-style: italic;
}

/* ========== FEATURE CARDS ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--card-gap);
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--accent-border);
  box-shadow: 0 2px 12px var(--accent-shadow);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-primary), var(--gold-primary));
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.12);
}

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

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ========== SCREENSHOTS GALLERY ========== */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.screenshot-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--accent-border);
  transition: all var(--transition-smooth);
  box-shadow: 0 2px 10px var(--accent-shadow);
}

.screenshot-item:hover {
  border-color: var(--red-primary);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.18);
}

.screenshot-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.screenshot-item:hover img {
  transform: scale(1.03);
}

/* ========== REVIEWS ========== */
.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--card-gap);
  margin-top: 32px;
}

.review-card {
  background: var(--bg-cream);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--accent-border);
  position: relative;
}

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

.review-stars {
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

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

/* ========== STORY PAGE ========== */
.story-timeline {
  margin-top: 32px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: -28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--red-primary), var(--accent-border));
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--red-dark);
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== CHARACTERS PAGE ========== */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.char-card {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--accent-border);
  box-shadow: 0 2px 14px var(--accent-shadow);
  transition: all var(--transition-smooth);
}

.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.14);
}

.char-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 3px solid var(--red-primary);
}

.char-card-body {
  padding: 20px;
}

.char-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--red-dark);
  margin-bottom: 4px;
}

.char-role {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--text-primary);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* ========== GUIDE PAGE ========== */
.guide-steps {
  margin-top: 32px;
}

.guide-step {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--accent-border);
  box-shadow: 0 2px 10px var(--accent-shadow);
  border-left: 5px solid var(--red-primary);
}

.guide-step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--red-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-step p,
.guide-step li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.guide-step ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.guide-tip {
  background: var(--bg-cream);
  border-left: 4px solid var(--gold-primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-top: 14px;
}

.guide-tip strong {
  color: var(--gold-primary);
}

/* ========== FAQ PAGE ========== */
.faq-list {
  margin-top: 32px;
}

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  transition: all var(--transition-smooth);
}

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

.faq-question:hover {
  background: var(--bg-cream);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform var(--transition-smooth);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--red-primary);
  transition: all var(--transition-smooth);
}

.faq-icon::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========== TABLE STYLES ========== */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  overflow: hidden;
}

.info-table th,
.info-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.95rem;
}

.info-table th {
  background: var(--bg-cream);
  color: var(--red-dark);
  font-weight: 700;
  width: 140px;
  border-bottom: 2px solid var(--accent-border);
}

.info-table td {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--accent-border);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* ========== ALTERNATE SECTION ========== */
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
}

/* ========== TAG CLOUD ========== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag-item {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--bg-cream);
  color: var(--text-secondary);
  border: 1px solid var(--accent-border);
  transition: all var(--transition-fast);
}

.tag-item:hover {
  background: var(--red-primary);
  color: #fff;
  border-color: var(--red-primary);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 10, 5, 0.92);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--gold-primary);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: rgba(198, 40, 40, 0.8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background var(--transition-fast);
  z-index: 1;
}

.lightbox-close:hover {
  background: var(--red-primary);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  text-align: center;
  padding: 48px 20px;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.06), rgba(255, 143, 0, 0.06));
  border-radius: 16px;
  margin-top: 40px;
  border: 2px dashed var(--red-primary);
}

.cta-banner h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--red-dark);
  margin-bottom: 8px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-white);
  border-top: 3px solid var(--red-primary);
  padding: 20px;
  text-align: center;
  margin-top: auto;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-white);
    border-bottom: 3px solid var(--red-primary);
    padding: 12px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    gap: 4px;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 10px 16px;
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .content-section {
    padding: 40px 16px;
  }

  .content-section h2 {
    font-size: 1.8rem;
  }

  .content-section h3 {
    font-size: 1.3rem;
  }

  .features-grid,
  .characters-grid,
  .reviews-list {
    grid-template-columns: 1fr;
  }

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

  .timeline-item {
    flex-direction: column;
    gap: 12px;
  }

  .timeline-item::before {
    display: none;
  }

  .info-table th {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 320px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 20px;
  }

  .cta-banner {
    padding: 32px 16px;
  }

  .cta-banner h3 {
    font-size: 1.4rem;
  }
}
