/* ================================
   TheAIGuy.gg Global Stylesheet
   ================================ */

/* ================================
   1. CSS Variables (Design Tokens)
   ================================ */
:root {
  /* Colors */
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --accent-gold: #c9a227;
  --accent-gold-dim: #8a7020;
  --accent-gold-bright: #e8d78a;
  --accent-red: #8b2635;
  --accent-red-bright: #c43545;
  --text-primary: #e8e6e3;
  --text-secondary: #9a9590;
  --text-dim: #5a5550;
  --border-subtle: rgba(201, 162, 39, 0.15);
  --border-accent: rgba(201, 162, 39, 0.4);

  /* Typography */
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(201, 162, 39, 0.1);
  --shadow-glow-strong: 0 0 60px rgba(201, 162, 39, 0.2);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 20px 50px rgba(0, 0, 0, 0.6);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
}

/* ================================
   2. Reset & Base Styles
   ================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #08080c 0%, #0f0c1e 50%, #0a0a0f 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  background-attachment: fixed;
}

/* Static fallback background when particles are disabled */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(30, 20, 50, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse at 20% 0%, rgba(201, 162, 39, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(139, 38, 53, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* ================================
   3. Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

h3 {
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}

p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.text-gold {
  color: var(--accent-gold);
}

.text-gradient {
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-gold-bright) 50%, var(--accent-gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================
   4. Layout Components
   ================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-header p {
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ================================
   5. Navigation
   ================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.nav-container {
  position: relative;
  width: 100%;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--accent-gold-bright);
}

/* Background Toggle */
.bg-toggle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bg-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-accent);
}

.bg-toggle-icon {
  width: 14px;
  height: 14px;
  fill: var(--text-dim);
  transition: fill 0.3s ease;
}

.bg-toggle.active .bg-toggle-icon {
  fill: var(--accent-gold);
}

.bg-toggle-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.bg-toggle.active .bg-toggle-label {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .bg-toggle {
    display: none;
  }
}

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

.nav-link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

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

/* Account Dropdown */
.nav-account {
  position: relative;
  margin-left: var(--space-sm);
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.account-trigger:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: rgba(201, 162, 39, 0.5);
  color: var(--accent-gold);
}

.account-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.account-trigger .account-arrow {
  width: 10px;
  height: 10px;
  transition: transform var(--transition-fast);
}

.nav-account.open .account-arrow {
  transform: rotate(180deg);
}

/* Logged in state */
.account-trigger.logged-in {
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.4);
}

.account-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dropdown Menu */
.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-account.open .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.account-dropdown-item:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--text-primary);
}

.account-dropdown-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.7;
}

.account-dropdown-item.highlight {
  color: var(--accent-gold);
}

.account-dropdown-item.highlight:hover {
  background: rgba(201, 162, 39, 0.2);
}

.account-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
}

/* User info in dropdown */
.account-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.account-dropdown-email {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.account-dropdown-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--accent-gold);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

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

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

/* ================================
   6. Cards & Panels
   ================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow), var(--shadow-lift);
}

.card-header {
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.card-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Category Cards (Landing Page) */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gold);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.category-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow-strong), var(--shadow-lift);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.category-card.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-subtle);
}

.category-card.disabled::before {
  display: none;
}

.category-card.disabled .category-icon {
  filter: grayscale(100%);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.category-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.category-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-top: auto;
}

.category-badge.active {
  background: rgba(201, 162, 39, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.category-badge.coming-soon {
  background: rgba(90, 85, 80, 0.2);
  color: var(--text-dim);
  border: 1px solid var(--text-dim);
}

/* ================================
   7. Buttons & Interactive
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 6px;
  border: 1px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent-gold-bright);
  border-color: var(--accent-gold-bright);
}

.btn-ghost {
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 10px 20px;
}

/* ================================
   8. Hero Section
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) var(--space-md) var(--space-lg);
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-sm);
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-gold-bright) 50%, var(--accent-gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 80px rgba(201, 162, 39, 0.3);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 0 auto var(--space-md);
}

/* ================================
   9. Breadcrumbs
   ================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: var(--space-md);
  padding-top: calc(var(--nav-height) + var(--space-md));
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb-separator {
  color: var(--text-dim);
}

.breadcrumb-current {
  color: var(--accent-gold);
}

/* ================================
   10. Footer
   ================================ */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.footer-section h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-gold);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

/* ================================
   11. Page Headers
   ================================ */
.page-header {
  padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-lg);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.page-header p {
  max-width: 600px;
  margin: var(--space-md) auto 0;
}

/* ================================
   12. Utility Classes
   ================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.hidden { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ================================
   13. Responsive Styles
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: none;
    text-align: center;
    margin-bottom: var(--space-md);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
    /* Responsive spacing - automatically scales ALL components using these vars */
    --space-xl: 3rem;
    --space-lg: 2rem;
    --space-md: 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  /* Nav links - better touch targets */
  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }

  /* Account dropdown on mobile - inside nav menu */
  .nav-account {
    margin-left: 0;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
    width: 100%;
  }

  .account-trigger {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .account-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: var(--space-sm);
    display: none;
  }

  .nav-account.open .account-dropdown {
    display: block;
  }

  .account-dropdown-item {
    min-height: 48px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-title {
    letter-spacing: 0.15em;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-social {
    justify-content: center;
  }

  .category-card {
    min-height: 220px;
    padding: var(--space-md);
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    /* Even tighter spacing for small screens */
    --space-xl: 2rem;
    --space-lg: 1.5rem;
    --space-md: 1rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .hero-subtitle {
    letter-spacing: 0.1em;
  }

  .btn {
    width: 100%;
  }

  /* Show cards - stack vote buttons on very small screens */
  .show-voting {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .vote-btn {
    width: 100%;
    justify-content: center;
  }

  /* Nav container - reduce padding */
  .nav-container {
    padding: 0 var(--space-sm);
  }

  /* Footer - tighter */
  .footer-social {
    gap: var(--space-xs);
  }

  .social-link {
    width: 44px;
    height: 44px;
  }

  /* Category cards - more compact */
  .category-card {
    min-height: 180px;
  }

  .category-icon {
    font-size: 2.5rem;
  }

  /* Hero - more compact */
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-lg));
    padding-bottom: var(--space-lg);
  }

  /* Page header - tighter */
  .page-header {
    padding-top: calc(var(--nav-height) + var(--space-md));
    padding-bottom: var(--space-md);
  }
}

/* ================================
   11. Accessibility
   ================================ */

/* Reduced Motion - respects user's system preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-title,
  .text-gradient {
    animation: none;
    background-size: 100% 100%;
  }

  /* Modal - ensure visible without animations */
  .modal-content {
    animation: none !important;
    opacity: 1;
    transform: none;
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.3);
  }

  .modal-overlay.active .modal-content {
    animation: none !important;
  }
}

/* Focus-visible styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-gold-bright);
  outline-offset: 3px;
  box-shadow: var(--shadow-glow-strong);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.card:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ================================
   12. Polish & Enhancements
   ================================ */

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold-dim);
}

/* Selection color */
::selection {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

::-moz-selection {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

/* ================================
   13. Shows Page
   ================================ */

/* Filter Bar */
.shows-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.shows-filter-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.shows-filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-dark);
}

/* Shows Grid - Full Width */
.shows-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Show Card - Full Width Horizontal */
.show-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.show-card:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--border-accent);
}

/* Status Bar - Full Width Color Strip */
.show-status-bar {
  height: 4px;
  width: 100%;
}

.show-status-bar.status-active { background: #22c55e; }
.show-status-bar.status-hiatus { background: #eab308; }
.show-status-bar.status-paused { background: #f97316; }
.show-status-bar.status-ended { background: #ef4444; }

/* Show Card Content */
.show-card-content {
  padding: var(--space-md) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: start;
}

.show-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.show-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.show-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
}

.show-schedule {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin: 0;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  background: rgba(201, 162, 39, 0.1);
  border-radius: 4px;
}

.show-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: var(--space-xs) 0 0 0;
  max-width: 800px;
}

.show-details {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: var(--space-xs);
  font-style: italic;
}

.show-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

/* Status Badges */
.show-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-hiatus {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-paused {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-ended {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Voting */
.show-voting {
  display: flex;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
}

.vote-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vote-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.vote-btn.active.vote-up {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}

.vote-btn.active.vote-down {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.vote-icon {
  font-size: 1rem;
}

.vote-count {
  font-weight: 600;
}

/* Status Legend */
.status-legend {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: var(--space-md);
}

.status-legend h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0 0 var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* User Bar */
.user-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-xs) 0;
}

.user-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-greeting {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.user-greeting span {
  color: var(--accent-gold);
  font-weight: 600;
}

/* ================================
   14. Modal (Signup/Login)
   ================================ */

/* Dramatic glow animation */
@keyframes modal-glow {
  0%, 100% {
    box-shadow:
      0 0 30px rgba(201, 162, 39, 0.2),
      0 0 60px rgba(201, 162, 39, 0.1),
      inset 0 0 30px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      0 0 40px rgba(201, 162, 39, 0.35),
      0 0 80px rgba(201, 162, 39, 0.15),
      inset 0 0 30px rgba(0, 0, 0, 0.3);
  }
}

/* Cinematic entrance animation */
@keyframes modal-enter {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 10, 20, 0.95) 0%, rgba(5, 5, 8, 0.98) 100%);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Spotlight effect behind modal */
.modal-overlay::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.modal-content {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(12, 12, 18, 1) 100%);
  border: 2px solid rgba(201, 162, 39, 0.4);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  animation: modal-glow 3s ease-in-out infinite;
}

.modal-overlay.active .modal-content {
  animation: modal-enter 0.5s ease forwards, modal-glow 3s ease-in-out 0.5s infinite;
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color var(--transition-fast);
  z-index: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Guard Banner (Dramatic/Cinematic) */
.guard-banner {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(135deg, rgba(100, 20, 40, 0.5) 0%, rgba(30, 15, 50, 0.6) 50%, rgba(201, 162, 39, 0.2) 100%);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  position: relative;
  overflow: hidden;
}

/* Vignette overlay for cinematic depth */
.guard-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.guard-banner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(201, 162, 39, 0.5),
    0 0 40px rgba(201, 162, 39, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
}

.guard-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
  position: relative;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.modal-source {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0.75rem 0 0 0;
  opacity: 0.8;
  position: relative;
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.3);
}

.modal-body {
  padding: var(--space-md);
  padding-bottom: 0;
}

.modal-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
}

/* Modal Options */
.modal-options {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modal-options .btn {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.3s ease;
}

.btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

.btn-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-label {
  font-size: 1rem;
  font-weight: 600;
}

.btn-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* Patreon Button - Dramatic */
.btn-patreon {
  background: linear-gradient(135deg, #f96854 0%, #e8432e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-patreon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.btn-patreon:hover {
  background: linear-gradient(135deg, #ff7a68 0%, #f9553f 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(249, 104, 84, 0.4),
    0 0 40px rgba(249, 104, 84, 0.2);
}

.btn-patreon .btn-meta {
  color: rgba(255, 255, 255, 0.8);
}

.btn-patreon .btn-icon {
  color: rgba(255, 255, 255, 0.9);
}

/* Primary Button (Sign Up Free) - Gold Accent */
.modal-options .btn-primary {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2) 0%, rgba(201, 162, 39, 0.1) 100%);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--text-primary);
}

.modal-options .btn-primary:hover {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.3) 0%, rgba(201, 162, 39, 0.15) 100%);
  border-color: rgba(201, 162, 39, 0.6);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(201, 162, 39, 0.2),
    0 0 40px rgba(201, 162, 39, 0.1);
}

.modal-options .btn-primary .btn-meta {
  color: var(--text-secondary);
}

.modal-options .btn-primary .btn-icon {
  color: var(--accent-gold);
}

/* Ghost Button (Continue as Guest) */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  text-align: center;
  padding: var(--space-xs) var(--space-md);
  justify-content: center;
}

.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--text-secondary);
  background: rgba(201, 162, 39, 0.05);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Signup/Login Forms */
.signup-form-container,
.login-form-container {
  padding: var(--space-md);
}

.form-back {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.form-back:hover {
  color: var(--accent-gold);
}

.signup-form-container h3,
.login-form-container h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
  text-align: center;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input {
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: var(--space-xs);
}

.form-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--accent-gold-bright);
}

/* Mobile adjustments for shows */
@media (max-width: 768px) {
  .shows-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-btn {
    padding: 10px 18px;
    font-size: 0.8rem;
  }

  .show-card-content {
    grid-template-columns: 1fr;
    padding: var(--space-md);
  }

  .show-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
  }

  .show-title {
    font-size: 1.25rem;
  }

  /* Vote buttons - better touch targets */
  .vote-btn {
    min-height: 44px;
    padding: 10px 18px;
  }

  .show-voting {
    flex-wrap: wrap;
  }

  .legend-items {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .guard-banner h2 {
    font-size: 1.5rem;
  }

  /* Modal improvements */
  .modal-content {
    max-width: 95%;
    margin: var(--space-sm);
  }

  .modal-overlay::before {
    width: 300px;
    height: 300px;
  }

  .modal-options .btn {
    padding: var(--space-sm);
    min-height: 56px;
  }

  .form-group input {
    padding: 14px 16px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

/* ================================
   Hype Button
   ================================ */
.hype-section {
  padding: var(--space-xl) 0;
  background: rgba(255, 100, 50, 0.03);
  border-top: 1px solid rgba(255, 100, 50, 0.1);
  border-bottom: 1px solid rgba(255, 100, 50, 0.1);
}

.hype-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.hype-prompt {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
}

.hype-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 100, 50, 0.1);
  border: 2px solid rgba(255, 100, 50, 0.3);
  border-radius: 50px;
  color: #ff6432;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hype-button:hover {
  background: rgba(255, 100, 50, 0.2);
  border-color: rgba(255, 100, 50, 0.5);
  transform: scale(1.05);
}

.hype-button.hyped {
  background: rgba(255, 100, 50, 0.25);
  border-color: #ff6432;
  color: #ff8c64;
}

.hype-button.hyped .hype-icon {
  animation: flame-pulse 0.6s ease infinite alternate;
}

.hype-icon {
  font-size: 1.3rem;
}

.hype-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}

@keyframes flame-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); }
}

/* ================================
   Project Navigation (prev/next arrows + dots)
   ================================ */
.project-nav {
  position: fixed;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-md);
  pointer-events: none;
  z-index: 100;
}

.project-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.project-nav-arrow:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: scale(1.1);
}

.project-nav-arrow.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.project-nav-arrow svg {
  width: 24px;
  height: 24px;
}

/* Dots navigation */
.project-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: var(--space-md) 0;
}

.project-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-dot:hover {
  background: var(--text-dim);
  transform: scale(1.2);
}

.project-dot.active {
  width: 12px;
  height: 12px;
  background: var(--accent-gold);
}

.project-dot-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Mobile - hide arrows, enhance dots for touch */
@media (max-width: 768px) {
  .project-nav {
    display: none;
  }

  /* Larger touch targets for dots */
  .project-dot {
    width: 14px;
    height: 14px;
  }

  .project-dot.active {
    width: 16px;
    height: 16px;
  }

  .project-dots {
    gap: 16px;
    padding: var(--space-sm) 0;
  }

  /* Hype section mobile */
  .hype-button {
    padding: 14px 28px;
    min-height: 48px;
  }

  .hype-prompt {
    text-align: center;
    padding: 0 var(--space-sm);
  }
}
