/* ==========================================================================
   DESIGN SYSTEM & TOKENS
   ========================================================================== */
:root {
  /* Surface Elevation (Deep Slate with Warm Undertones) */
  --canvas: #090d16;
  --surface-base: #0f1524;
  --surface-elevated: #172037;
  --surface-control: #1e2942;
  --surface-hover: #263554;
  
  /* Border Hierarchy */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-standard: rgba(255, 255, 255, 0.1);
  --border-emphasis: rgba(255, 255, 255, 0.2);
  --border-control: rgba(255, 255, 255, 0.15);
  
  /* Text Hierarchy */
  --ink-primary: #f8fafc;
  --ink-secondary: #cbd5e1;
  --ink-tertiary: #94a3b8;
  --ink-muted: #64748b;
  
  /* Brand Colors (Moss Green & Glowing Amber) */
  --brand-moss: #1b4332;
  --brand-moss-mid: #2d6a4f;
  --brand-moss-light: #52b788;
  --brand-moss-glow: rgba(82, 183, 136, 0.15);
  
  --brand-amber: #f77f00;
  --brand-amber-mid: #fcbf49;
  --brand-amber-light: #eae2b7;
  --brand-amber-glow: rgba(247, 127, 0, 0.3);
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Spacing Grid (Base 8px) */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--canvas);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-secondary);
  background-color: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

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

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section-padding {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-amber);
  color: var(--canvas);
  box-shadow: 0 4px 20px var(--brand-amber-glow);
}

.btn-primary:hover {
  background-color: var(--brand-amber-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(247, 127, 0, 0.5);
}

.btn-secondary {
  background-color: var(--surface-control);
  color: var(--ink-primary);
  border-color: var(--border-emphasis);
}

.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--ink-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-moss-light);
  border-color: var(--brand-moss-mid);
}

.btn-outline:hover {
  background-color: var(--brand-moss-glow);
  border-color: var(--brand-moss-light);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--surface-control);
  border: 1px solid var(--border-standard);
  color: var(--ink-secondary);
}

.badge-amber {
  background-color: rgba(247, 127, 0, 0.1);
  border-color: rgba(247, 127, 0, 0.3);
  color: var(--brand-amber-mid);
}

.badge-moss {
  background-color: rgba(82, 183, 136, 0.1);
  border-color: rgba(82, 183, 136, 0.3);
  color: var(--brand-moss-light);
}

/* Cards */
.card {
  background-color: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-emphasis);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Image Placeholders */
.image-placeholder {
  background-color: var(--surface-control);
  border: 2px dashed var(--border-emphasis);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
  color: var(--ink-tertiary);
  position: relative;
  overflow: hidden;
}

.image-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--brand-moss-light);
  opacity: 0.7;
}

.image-placeholder .placeholder-prompt {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: var(--space-xs);
  max-width: 80%;
  font-style: italic;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 80px;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink-primary);
  letter-spacing: -0.03em;
}

.logo svg {
  width: 36px;
  height: 36px;
}

.logo span {
  background: linear-gradient(135deg, var(--ink-primary) 30%, var(--brand-amber-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-secondary);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link:hover {
  color: var(--ink-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-amber);
  transition: var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink-primary);
  cursor: pointer;
  padding: var(--space-xs);
}

@media (max-width: 992px) {
  .nav-links {
    display: none; /* Let's keep it simple or build a mobile-friendly menu */
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(80px + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(45, 106, 79, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(247, 127, 0, 0.08) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero-title span {
  color: var(--brand-amber);
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(247, 127, 0, 0.2);
  z-index: -1;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--ink-secondary);
  margin-bottom: var(--space-xl);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-map-svg {
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.75rem;
  }
}

/* ==========================================================================
   TRAIL MAP MAP SECTION (THE SIGNATURE TRAIL)
   ========================================================================== */
.trail-connector {
  position: relative;
  background-color: var(--surface-base);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.trail-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl) auto;
}

.trail-header h2 {
  margin-bottom: var(--space-md);
}

/* Winding Trail Timeline */
.trail-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
}

/* The SVG line connecting the steps in background */
.trail-svg-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.trail-svg-line {
  stroke: var(--brand-moss-mid);
  stroke-width: 6;
  stroke-dasharray: 12 8;
  fill: none;
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

.trail-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  position: relative;
  margin-bottom: var(--space-4xl);
  z-index: 2;
}

.trail-step:last-child {
  margin-bottom: 0;
}

.trail-step-node {
  position: absolute;
  left: 50%;
  top: 40px;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--surface-elevated);
  border: 4px solid var(--brand-moss-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: var(--ink-primary);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-normal);
  box-shadow: 0 0 0 4px var(--canvas);
}

.trail-step:hover .trail-step-node {
  border-color: var(--brand-amber);
  background-color: var(--brand-amber);
  color: var(--canvas);
  box-shadow: 0 0 20px var(--brand-amber-glow), 0 0 0 6px var(--canvas);
  transform: translate(-50%, -50%) scale(1.1);
}

.trail-step-content {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: var(--transition-normal);
}

.trail-step:hover .trail-step-content {
  border-color: var(--brand-moss-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Alternating steps */
.trail-step:nth-child(even) .trail-step-content {
  grid-column: 2;
}
.trail-step:nth-child(even) .trail-step-media {
  grid-column: 1;
  grid-row: 1;
}
.trail-step:nth-child(odd) .trail-step-content {
  grid-column: 1;
}
.trail-step:nth-child(odd) .trail-step-media {
  grid-column: 2;
}

.trail-step-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trail-step-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.trail-step-title svg {
  width: 24px;
  height: 24px;
  color: var(--brand-amber);
}

.trail-step-desc {
  color: var(--ink-secondary);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.trail-step-meta {
  display: flex;
  gap: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--ink-tertiary);
}

.trail-step-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.trail-step-meta svg {
  width: 16px;
  height: 16px;
  color: var(--brand-moss-light);
}

@media (max-width: 768px) {
  .trail-svg-bg {
    left: 24px;
    transform: none;
  }
  .trail-step {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-left: 64px;
  }
  .trail-step-node {
    left: 24px;
    transform: translateY(-50%);
  }
  .trail-step:hover .trail-step-node {
    transform: translateY(-50%) scale(1.1);
  }
  .trail-step:nth-child(even) .trail-step-content,
  .trail-step:nth-child(odd) .trail-step-content {
    grid-column: 1;
  }
  .trail-step:nth-child(even) .trail-step-media,
  .trail-step:nth-child(odd) .trail-step-media {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ==========================================================================
   RECOMMENDED STOPS (GENRE TRAIL SECTIONS)
   ========================================================================== */
.recommended-stops {
  background-color: var(--canvas);
}

.stops-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-3xl);
  gap: var(--space-lg);
}

.stops-header-text {
  max-width: 600px;
}

.stops-header-text h2 {
  margin-bottom: var(--space-xs);
}

.stops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.stop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stop-card-image {
  margin-bottom: var(--space-md);
}

.stop-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.stop-card-tags {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.stop-card-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.stop-card-desc {
  font-size: 0.9rem;
  color: var(--ink-tertiary);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.stop-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
  margin-top: auto;
}

.stop-card-difficulty {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-moss-light);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.stop-card-difficulty svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .stops-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .stops-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BEGINNER-FRIENDLY GUIDE BLOCKS
   ========================================================================== */
.beginner-guide {
  background-color: var(--surface-base);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.guide-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.guide-content h2 {
  margin-bottom: var(--space-md);
}

.guide-content p {
  margin-bottom: var(--space-xl);
  color: var(--ink-secondary);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.guide-step-card {
  display: flex;
  gap: var(--space-lg);
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition-normal);
}

.guide-step-card:hover {
  border-color: rgba(247, 127, 0, 0.3);
  transform: translateX(4px);
}

.guide-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: rgba(247, 127, 0, 0.1);
  border: 1px solid rgba(247, 127, 0, 0.2);
  color: var(--brand-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.guide-step-info h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2xs);
}

.guide-step-info p {
  font-size: 0.9rem;
  color: var(--ink-tertiary);
  margin-bottom: 0;
}

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

/* ==========================================================================
   WEEKLY ROUTE SECTION
   ========================================================================== */
.weekly-route {
  background-color: var(--canvas);
}

.weekly-container {
  background: linear-gradient(135deg, var(--surface-base) 0%, var(--surface-elevated) 100%);
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.weekly-container::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background-color: rgba(82, 183, 136, 0.05);
  filter: blur(50px);
  pointer-events: none;
}

.weekly-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.weekly-title-area {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.weekly-title-area svg {
  width: 32px;
  height: 32px;
  color: var(--brand-amber);
}

.weekly-meta {
  font-size: 0.9rem;
  color: var(--ink-tertiary);
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.weekly-stop {
  position: relative;
}

.weekly-stop::after {
  content: '→';
  position: absolute;
  top: 40px;
  right: -24px;
  font-size: 1.5rem;
  color: var(--brand-moss-mid);
  font-weight: 700;
}

.weekly-stop:last-child::after {
  display: none;
}

.weekly-stop-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.weekly-day {
  background-color: var(--brand-moss);
  color: var(--brand-moss-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.weekly-stop-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  height: calc(100% - 40px);
  transition: var(--transition-normal);
}

.weekly-stop-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--brand-amber-mid);
}

.weekly-stop-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.weekly-stop-desc {
  font-size: 0.85rem;
  color: var(--ink-tertiary);
}

@media (max-width: 992px) {
  .weekly-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .weekly-stop::after {
    content: '↓';
    top: auto;
    bottom: -20px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .weekly-stop-card {
    height: auto;
  }
}

/* ==========================================================================
   COMMUNITY PICKS SECTION
   ========================================================================== */
.community-picks {
  background-color: var(--surface-base);
  border-top: 1px solid var(--border-subtle);
}

.community-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl) auto;
}

.community-header h2 {
  margin-bottom: var(--space-md);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.community-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.community-card-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.community-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--surface-control);
  border: 1px solid var(--border-emphasis);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand-amber);
  font-size: 0.85rem;
}

.community-author-info h4 {
  font-size: 0.9rem;
  line-height: 1.2;
}

.community-author-info span {
  font-size: 0.75rem;
  color: var(--ink-tertiary);
}

.community-comment {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
}

.community-comment::before {
  content: '"';
  font-size: 2rem;
  color: var(--brand-moss-mid);
  position: absolute;
  top: -15px;
  left: -10px;
  opacity: 0.3;
}

.community-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
}

.community-game-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-amber-mid);
}

.community-votes {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.8rem;
  color: var(--ink-tertiary);
  cursor: pointer;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-sm);
  background-color: var(--surface-control);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.community-votes:hover {
  background-color: var(--surface-hover);
  color: var(--ink-primary);
  border-color: var(--brand-amber);
}

.community-votes svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: var(--canvas);
  border-top: 1px solid var(--border-standard);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  color: var(--ink-tertiary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  margin-bottom: var(--space-lg);
  max-width: 320px;
}

.footer-links-col h4 {
  font-size: 1rem;
  color: var(--ink-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link:hover {
  color: var(--brand-amber);
  padding-left: var(--space-2xs);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal-link:hover {
  color: var(--ink-primary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   LEGAL PAGES (PRIVACY & TERMS) SPECIFIC STYLES
   ========================================================================== */
.legal-hero {
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: radial-gradient(circle at 50% 100%, rgba(45, 106, 79, 0.1) 0%, transparent 60%);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero h1 {
  margin-bottom: var(--space-sm);
}

.legal-meta {
  color: var(--ink-tertiary);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-4xl);
}

.legal-content section {
  margin-bottom: var(--space-2xl);
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--ink-primary);
  border-left: 4px solid var(--brand-amber);
  padding-left: var(--space-md);
}

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--ink-secondary);
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  color: var(--ink-secondary);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}
