/* GTA VI Central — Design System
   Palette: Vice City sunset — dark navy base, neon pink, cyan, orange, purple
   Typography: Bebas Neue (headings) + Inter (body)
*/

:root {
  --bg-primary:   #07080f;
  --bg-secondary: #0e1020;
  --bg-card:      #13152a;
  --bg-hover:     #1a1d38;

  --pink:    #ff2d78;
  --cyan:    #00d4ff;
  --orange:  #ff6b35;
  --purple:  #7b2fff;
  --gold:    #ffd700;
  --white:   #f0f0f8;
  --muted:   #8888aa;
  --border:  rgba(255,255,255,0.08);

  --grad-sunset: linear-gradient(135deg, #ff2d78 0%, #ff6b35 40%, #ffd700 100%);
  --grad-neon:   linear-gradient(135deg, #7b2fff 0%, #00d4ff 100%);
  --grad-dark:   linear-gradient(180deg, rgba(7,8,15,0) 0%, #07080f 100%);

  --font-head: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.6);
  --shadow-glow-pink: 0 0 30px rgba(255,45,120,0.4);
  --shadow-glow-cyan: 0 0 30px rgba(0,212,255,0.3);
  --transition: 0.2s ease;
}

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

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

body {
  background: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
/* Card/box headings are h2 for correct hierarchy but keep the h3 scale */
.card h2, .highlight-box h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
p  { max-width: 70ch; line-height: 1.7; }
a  { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink); }

/* ── Layout ── */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.section { padding-block: clamp(3rem, 8vw, 6rem); }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,8,15,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.navbar-logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.06em;
}
.navbar-logo span { -webkit-text-fill-color: var(--cyan); color: var(--cyan); }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--pink);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: #e0205f !important; color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(0,0,0,0.05) 3px, rgba(0,0,0,0.05) 4px),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255,45,120,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%,  rgba(0,212,255,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 20% 60%,  rgba(123,47,255,0.1) 0%, transparent 50%),
    var(--bg-primary);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,45,120,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,45,120,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 6rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,45,120,0.15);
  border: 1px solid rgba(255,45,120,0.4);
  color: var(--pink);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}
.hero-title {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 56ch;
}
.hero-sub strong { color: var(--white); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-sunset);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(255,45,120,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(255,45,120,0.6); color: var(--bg-primary); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,212,255,0.06); }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(255,45,120,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-pink);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.card h2, .card h3 { margin-bottom: 0.5rem; color: var(--white); }
.card p  { color: var(--muted); font-size: 0.95rem; }

/* ── Grid layouts ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }

/* ── Section headings ── */
.section-label {
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc  { color: var(--muted); margin-bottom: 3rem; font-size: 1.05rem; }

/* ── Stat bar ── */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  flex: 1;
  min-width: 140px;
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-variant-numeric: tabular-nums;
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Tag pills ── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-pink   { background: rgba(255,45,120,0.15);  color: var(--pink);   border: 1px solid rgba(255,45,120,0.3);  }
.tag-cyan   { background: rgba(0,212,255,0.12);   color: var(--cyan);   border: 1px solid rgba(0,212,255,0.3);   }
.tag-purple { background: rgba(123,47,255,0.15);  color: #a97fff;       border: 1px solid rgba(123,47,255,0.3);  }
.tag-orange { background: rgba(255,107,53,0.15);  color: var(--orange); border: 1px solid rgba(255,107,53,0.3);  }
.tag-gold   { background: rgba(255,215,0,0.12);   color: var(--gold);   border: 1px solid rgba(255,215,0,0.3);   }

/* ── News card ── */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow-cyan); }
.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(160deg, var(--bg-hover) 0%, rgba(255,45,120,0.1) 60%, rgba(0,212,255,0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.news-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-dark);
}
.news-body { padding: 1.5rem; }
.news-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.8rem; color: var(--muted); }
.news-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.news-card p  { color: var(--muted); font-size: 0.9rem; }

/* ── Character cards ── */
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.char-card:hover { border-color: rgba(255,45,120,0.4); transform: translateY(-4px); }
.char-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--bg-hover) 0%, rgba(255,45,120,0.08) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  font-size: 6rem;
  position: relative;
}
.char-card-body { padding: 1.25rem 1.5rem; }
.char-card-body h3 { margin-bottom: 0.25rem; }
.char-card-body .role { color: var(--pink); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.char-card-body p { color: var(--muted); font-size: 0.88rem; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--purple), var(--cyan));
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}
.timeline-date { color: var(--pink); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; }
.timeline-item h3 { margin-bottom: 0.4rem; }
.timeline-item p  { color: var(--muted); font-size: 0.92rem; }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}
.faq-q h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  font-size: 1.1rem;
  color: var(--pink);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: rgba(255,45,120,0.2); }
.faq-a { display: none; margin-top: 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── Table ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.data-table th {
  text-align: left;
  padding: 0.9rem 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--white);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }

/* ── Search bar ── */
.search-wrap {
  position: relative;
  max-width: 520px;
  margin-bottom: 2.5rem;
}
.search-wrap input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  outline: none;
}
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.2); }
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* ── Highlight box ── */
.highlight-box {
  background: linear-gradient(135deg, rgba(255,45,120,0.08) 0%, rgba(123,47,255,0.06) 100%);
  border: 1px solid rgba(255,45,120,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 30ch; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--muted); font-size: 0.85rem; }
.footer-disclaimer { color: var(--muted); font-size: 0.75rem; margin-top: 0.5rem; opacity: 0.6; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.85rem; margin-bottom: 2rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--border); }

/* ── Tooltip ── */
.tooltip-wrap { position: relative; display: inline-block; }
.tooltip-wrap .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  white-space: nowrap;
  transition: opacity var(--transition);
  pointer-events: none;
}
.tooltip-wrap:hover .tooltip-text { visibility: visible; opacity: 1; }

/* ── Scroll top ── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
  box-shadow: var(--shadow-glow-pink);
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: #e0205f; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7,8,15,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 2rem; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ── Focus rings (accessibility) ── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--pink);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Alert bar ── */
.alert-bar {
  background: linear-gradient(90deg, rgba(255,45,120,0.15) 0%, rgba(123,47,255,0.12) 50%, rgba(0,212,255,0.1) 100%);
  border-bottom: 1px solid rgba(255,45,120,0.25);
  padding: 0.6rem 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}
.alert-bar a { color: var(--pink); font-weight: 700; }
.alert-bar a:hover { color: var(--white); }

/* ── Explore more ── */
.explore-more {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.explore-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.explore-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color var(--transition), transform var(--transition);
}
.explore-card:hover {
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-3px);
  color: var(--white);
}
.explore-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.explore-card-text strong { display: block; font-size: 0.92rem; margin-bottom: 0.15rem; }
.explore-card-text span { color: var(--muted); font-size: 0.78rem; }

/* ── Inner page h1 ── */
.page-h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
}

/* ── Screen-reader only utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── FAQ reveal animation ── */
.faq-item.open .faq-a {
  animation: faqReveal 0.2s ease;
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
