/* ============================================================
   BASE.CSS — Shared design tokens, reset, and global components
   GTA6Wiki.io
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --coral:    #c66461;
  --coral-dk: #a84f4c;
  --peach:    #eca17a;
  --lavender: #a682b0;
  --burnt:    #c97245;
  --rose:     #b87274;

  --white:   #ffffff;
  --off:     #faf8f7;
  --surface: #f3f0ee;
  --border:  #e8e2df;
  --border2: #d4ccc8;
  --text:    #1a1214;
  --text2:   #4a3c3e;
  --muted:   #8a7678;

  --fd: 'Bebas Neue', sans-serif;
  --fh: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;

  --nav-h: 66px;
  --radius: 8px;
  --transition: .22s ease;
}

.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;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 3px; }

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ticker   { from { transform: translateX(0); }               to  { transform: translateX(-50%); } }
@keyframes spin     { to { transform: rotate(360deg); } }

/* ── LAYOUT UTILITIES ──────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 52px; }
section { padding: 92px 0; }
section.alt { background: var(--off); }

.sh {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.seyebrow {
  font-family: var(--fh);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}
.stitle {
  font-family: var(--fd);
  font-size: clamp(38px, 4.5vw, 56px);
  letter-spacing: 1px;
  line-height: 1;
  color: var(--text);
}
.slink {
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
  white-space: nowrap;
}
.slink:hover { gap: 12px; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-p {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 34px;
  background: var(--coral);
  color: #fff;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
  cursor: pointer;
  border: none;
}
.btn-p:hover { background: var(--coral-dk); transform: translateY(-2px); }

.btn-s {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 34px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border2);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all var(--transition);
  display: inline-block;
  cursor: pointer;
}
.btn-s:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-2px); }

.btn-ghost {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 34px;
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.2);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all var(--transition);
  display: inline-block;
  cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; transform: translateY(-2px); }

.btn-sm {
  font-family: var(--fh);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  background: var(--coral);
  color: #fff;
  clip-path: polygon(7px 0%, 100% 0%, calc(100% - 7px) 100%, 0% 100%);
  transition: background var(--transition);
  display: inline-block;
  cursor: pointer;
  border: none;
}
.btn-sm:hover { background: var(--coral-dk); }

/* ── BADGE / TAG ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--fh);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(198,100,97,.08);
  color: var(--coral);
  border: 1px solid rgba(198,100,97,.18);
}
.badge.purple { background: rgba(166,130,176,.08); color: var(--lavender); border-color: rgba(166,130,176,.18); }
.badge.peach  { background: rgba(236,161,122,.08); color: var(--burnt);    border-color: rgba(236,161,122,.18); }

/* ── SITE HEADER NAV (scoped — do not use bare `nav`, breaks breadcrumbs & pagination) ── */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: var(--nav-h);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#nav.sc { box-shadow: 0 2px 20px rgba(198,100,97,.1); }

.nav-logo {
  font-family: var(--fd);
  font-size: 25px;
  letter-spacing: 3px;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo em { color: var(--coral); font-style: normal; }

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text2);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--coral); }
.nav-links a.active { border-bottom: 2px solid var(--coral); padding-bottom: 2px; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-search-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  font-size: 15px;
}
.nav-search-btn:hover { border-color: var(--coral); color: var(--coral); }

.nav-cta {
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 22px;
  background: var(--coral);
  color: #fff;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background .2s;
  display: inline-block;
}
.nav-cta:hover { background: var(--coral-dk); }

/* Mobile hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ── TICKER ────────────────────────────────────────────────── */
.ticker {
  background: var(--text);
  padding: 11px 0;
  overflow: hidden;
}
.ticker-t {
  display: flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.titem {
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

/* ── SEARCH OVERLAY ────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26,18,20,.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-modal {
  width: 100%;
  max-width: 640px;
  margin: 0 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border2);
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
  overflow: hidden;
}
.search-modal-inner {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.search-modal-inner span { font-size: 18px; color: var(--muted); }
.search-modal-inner input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 0;
  font-family: var(--fb);
  font-size: 16px;
  color: var(--text);
  background: transparent;
}
.search-modal-inner kbd {
  font-family: var(--fh);
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--border2);
  border-radius: 3px;
  color: var(--muted);
  cursor: pointer;
}
.search-results {
  max-height: 400px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--off); }
.sri-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(198,100,97,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sri-title { font-family: var(--fh); font-size: 15px; font-weight: 600; color: var(--text); }
.sri-meta  { font-size: 12px; color: var(--muted); margin-top: 1px; }
.sri-arrow { font-size: 12px; color: var(--border2); margin-left: auto; }
.search-result-item:hover .sri-arrow { color: var(--coral); }
.search-footer {
  padding: 10px 16px;
  background: var(--off);
  display: flex;
  gap: 18px;
}
.search-hint { font-family: var(--fh); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.search-hint kbd { padding: 2px 6px; border: 1px solid var(--border2); border-radius: 3px; font-family: var(--fh); font-size: 9px; color: var(--muted); }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--off);
  border-top: 1px solid var(--border);
  padding: 60px 52px 38px;
}
.fgrid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.flogo { font-family: var(--fd); font-size: 26px; letter-spacing: 3px; color: var(--text); margin-bottom: 12px; }
.flogo em { color: var(--coral); font-style: normal; }
.fbrand p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 250px; }
.fcol h4 {
  font-family: var(--fh);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.fcol ul { list-style: none; }
.fcol li { margin-bottom: 8px; }
.fcol a { font-size: 14px; color: var(--text2); transition: color .2s; }
.fcol a:hover { color: var(--coral); }
.fbot {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.fdis { font-size: 11px; color: var(--border2); max-width: 560px; line-height: 1.6; }
.fcopy { font-size: 12px; color: var(--border2); white-space: nowrap; }

/* ── CTA BAND ──────────────────────────────────────────────── */
.ctaband {
  background: var(--text);
  padding: 92px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ctaband::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(198,100,97,.2) 0%, transparent 65%);
}
.ctaband h2 {
  font-family: var(--fd);
  font-size: clamp(52px, 7vw, 96px);
  letter-spacing: 2px;
  line-height: .9;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
}
.ctaband h2 .ac {
  background: linear-gradient(130deg, var(--coral), var(--peach), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ctaband p {
  font-size: 17px;
  color: rgba(255,255,255,.5);
  max-width: 480px;
  margin: 0 auto 34px;
  line-height: 1.7;
  position: relative;
}
.ctaband .acts {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── EYEBROW ───────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fh);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(198,100,97,.07);
  padding: 6px 14px 6px 10px;
  border-left: 2px solid var(--coral);
  margin-bottom: 22px;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 960px) {
  #nav { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .wrap { padding: 0 22px; }
  section { padding: 60px 0; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer { padding: 44px 22px 30px; }
  .fbot { flex-direction: column; }
  .ctaband { padding: 68px 22px; }
}

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