/* ============================================
   WorldFanatic.com — Mobile-First CSS Framework
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --wf-primary: #ff2d55;
  --wf-primary-dark: #d4213f;
  --wf-secondary: #5856d6;
  --wf-accent: #ff9500;
  --wf-gold: #ffd700;
  --wf-dark: #0a0a0f;
  --wf-darker: #050508;
  --wf-card: #12121a;
  --wf-card-hover: #1a1a25;
  --wf-surface: #1c1c28;
  --wf-text: #f5f5f7;
  --wf-text-secondary: #a1a1aa;
  --wf-text-muted: #71717a;
  --wf-border: #27272a;
  --wf-success: #30d158;
  --wf-gradient-primary: linear-gradient(135deg, #ff2d55, #5856d6);
  --wf-gradient-gold: linear-gradient(135deg, #ffd700, #ff9500);
  --wf-gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1c1c28 100%);
  --wf-shadow: 0 4px 24px rgba(0,0,0,0.4);
  --wf-shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --wf-radius: 12px;
  --wf-radius-lg: 20px;
  --wf-max-width: 1200px;
  --wf-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --wf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body {
  font-family: var(--wf-font);
  background: var(--wf-dark);
  color: var(--wf-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--wf-primary); text-decoration: none; transition: color var(--wf-transition); }
a:hover { color: var(--wf-accent); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }

/* --- Skip Navigation (Accessibility) --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wf-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 var(--wf-radius) var(--wf-radius);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--wf-transition);
}
.skip-nav:focus { top: 0; }

/* --- Container --- */
.container { width: 100%; max-width: var(--wf-max-width); margin: 0 auto; padding: 0 16px; }

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--wf-border);
  transition: background var(--wf-transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--wf-max-width);
  margin: 0 auto;
  padding: 0 16px;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--wf-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.nav-links { display: none; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--wf-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--wf-transition);
}
.nav-links a:hover { color: var(--wf-text); }
.nav-cta {
  background: var(--wf-gradient-primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  -webkit-text-fill-color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wf-text);
  border-radius: 2px;
  transition: var(--wf-transition);
}
.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); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 20px;
  transform: translateX(100%);
  transition: transform var(--wf-transition);
  z-index: 999;
  overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a {
  color: var(--wf-text);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--wf-border);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 16px 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 45, 85, 0.15), transparent 70%),
              radial-gradient(ellipse at 80% 80%, rgba(88, 86, 214, 0.1), transparent 60%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 45, 85, 0.12);
  border: 1px solid rgba(255, 45, 85, 0.3);
  color: var(--wf-primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 .gradient-text {
  background: var(--wf-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--wf-text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--wf-transition);
  text-align: center;
  justify-content: center;
}
.btn-primary {
  background: var(--wf-gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 45, 85, 0.4);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--wf-text);
  border: 1px solid var(--wf-border);
}
.btn-secondary:hover {
  background: var(--wf-surface);
  border-color: var(--wf-text-muted);
  color: var(--wf-text);
}
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- Sections --- */
.section {
  padding: 80px 0;
  position: relative;
}
.section-label {
  display: inline-block;
  color: var(--wf-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc {
  color: var(--wf-text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 48px;
}
.section-center { text-align: center; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }

/* --- Cards Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: var(--wf-card);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius-lg);
  padding: 28px 24px;
  transition: all var(--wf-transition);
}
.card:hover {
  background: var(--wf-card-hover);
  border-color: rgba(255, 45, 85, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--wf-shadow);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: rgba(255, 45, 85, 0.1);
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--wf-text-secondary); font-size: 0.95rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--wf-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Fandom Cards --- */
.fandom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.fandom-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--wf-radius-lg);
  aspect-ratio: 16/10;
  display: flex;
  align-items: flex-end;
  background: var(--wf-card);
  border: 1px solid var(--wf-border);
  transition: all var(--wf-transition);
}
.fandom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wf-shadow-lg);
  border-color: rgba(255, 45, 85, 0.3);
}
.fandom-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.fandom-card:hover .fandom-card-bg { transform: scale(1.05); }
.fandom-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.3) 60%, transparent 100%);
}
.fandom-card-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  width: 100%;
}
.fandom-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wf-primary);
  margin-bottom: 4px;
}
.fandom-card-title { font-size: 1.15rem; font-weight: 700; }

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 40px 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  background: var(--wf-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--wf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* --- Video Section --- */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--wf-radius-lg);
  overflow: hidden;
  background: var(--wf-card);
  border: 1px solid var(--wf-border);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- FAQ Section --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--wf-border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--wf-text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  font-family: var(--wf-font);
  line-height: 1.4;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--wf-text-muted);
  transition: transform var(--wf-transition);
}
.faq-item.active .faq-question::after {
  content: '−';
  color: var(--wf-primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--wf-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 80px 0 0;
  font-size: 0.85rem;
  color: var(--wf-text-muted);
}
.breadcrumbs a { color: var(--wf-text-secondary); }
.breadcrumbs span { margin: 0 8px; }

/* --- Fan Page Hero --- */
.fan-hero {
  position: relative;
  padding: 120px 16px 60px;
  text-align: center;
  overflow: hidden;
}
.fan-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, var(--hero-glow, rgba(255,45,85,0.15)), transparent 70%);
}
.fan-hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.fan-hero .hero-badge { margin-bottom: 16px; }
.fan-hero h1 {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.fan-hero p {
  color: var(--wf-text-secondary);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* --- Content Sections --- */
.content-block {
  padding: 60px 0;
}
.content-block h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-bottom: 20px;
}
.content-block p, .content-block li {
  color: var(--wf-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.content-block ul { padding-left: 0; }
.content-block li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}
.content-block li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--wf-primary);
}

/* --- Devotion Metrics --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.metric-card {
  background: var(--wf-card);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 24px 20px;
  text-align: center;
}
.metric-value {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--wf-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric-label {
  font-size: 0.8rem;
  color: var(--wf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* --- Footer --- */
.site-footer {
  background: var(--wf-darker);
  border-top: 1px solid var(--wf-border);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: var(--wf-text-muted); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wf-text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--wf-text-muted);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--wf-transition);
}
.footer-col a:hover { color: var(--wf-text); }
.footer-bottom {
  border-top: 1px solid var(--wf-border);
  padding-top: 24px;
  text-align: center;
  color: var(--wf-text-muted);
  font-size: 0.8rem;
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--wf-border);
  margin: 0;
  border: none;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gradient {
  background: var(--wf-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet (640px+) */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .fandom-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop (900px+) */
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .fandom-grid { grid-template-columns: repeat(3, 1fr); }
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .section { padding: 100px 0; }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .fandom-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: 100vh; }
}

/* --- Print Styles --- */
@media print {
  .site-header, .nav-toggle, .mobile-menu, .site-footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding: 20px 0; }
}
