/* ============================================
   GTA6Storage.co.uk — Main Stylesheet
   ============================================ */

/* --- TOKENS --- */
:root {
  --bg:       #0d0f14;
  --bg2:      #161922;
  --bg3:      #1e2330;
  --fg:       #e8eaf0;
  --fg2:      #9ba3b8;
  --accent:   #f5c518;
  --accent2:  #e8a800;
  --danger:   #ff4c4c;
  --green:    #22c55e;
  --border:   rgba(255,255,255,0.08);
  --radius:   10px;
  --max-w:    1100px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:     #f0f2f7;
    --bg2:    #ffffff;
    --bg3:    #e4e8f0;
    --fg:     #0d0f14;
    --fg2:    #4a5568;
    --border: rgba(0,0,0,0.1);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg:     #f0f2f7;
  --bg2:    #ffffff;
  --bg3:    #e4e8f0;
  --fg:     #0d0f14;
  --fg2:    #4a5568;
  --border: rgba(0,0,0,0.1);
  color-scheme: light;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* --- LAYOUT HELPERS --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.section {
  padding-block: 60px;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--fg2);
  max-width: 580px;
  margin-bottom: 36px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary  { background: var(--accent); color: #000; }
.btn-primary:hover  { background: var(--accent2); }
.btn-secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { font-size: 0.85rem; padding: 9px 18px; }

/* --- HEADER --- */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--fg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent); }
.badge-launch {
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }

.site-nav { display: flex; gap: 20px; }
.site-nav a {
  color: var(--fg2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px max(16px, env(safe-area-inset-left, 0px));
    gap: 12px;
    z-index: 99;
  }
  .site-nav.open { display: flex; }
}

/* --- ALERT BAND --- */
.alert-band {
  background: rgba(255,76,76,0.1);
  border-top: 1px solid rgba(255,76,76,0.25);
  border-bottom: 1px solid rgba(255,76,76,0.25);
}
.alert-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 14px;
}
.alert-text { font-size: 0.9rem; font-weight: 500; }
.alert-text strong { color: var(--danger); }
.alert-cta { margin-left: auto; }

/* --- PRODUCT CARDS --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.product-card.top-pick { border-color: var(--accent); }
.top-pick-badge {
  position: absolute;
  top: -1px; left: 20px;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
}
.product-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg2);
}
.product-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip {
  background: var(--bg3);
  color: var(--fg2);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.spec-chip.highlight {
  background: rgba(245,197,24,0.1);
  color: var(--accent);
  border-color: rgba(245,197,24,0.25);
}
.product-why { font-size: 0.88rem; color: var(--fg2); line-height: 1.55; flex: 1; }
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.product-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}
.product-price small {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg2);
}
.affiliate-note { font-size: 0.72rem; color: var(--fg2); }

/* --- TABLE --- */
.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 500px; }
th {
  background: var(--bg3);
  color: var(--fg2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
td { padding: 14px 16px; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
tr:hover td { background: var(--bg3); }
.ok   { color: var(--green);  font-weight: 600; }
.warn { color: var(--accent); font-weight: 600; }
.bad  { color: var(--danger); font-weight: 600; }

/* --- FAQ --- */
details {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
details + details { margin-top: 4px; }
summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 20px 18px; color: var(--fg2); font-size: 0.9rem; line-height: 1.65; }

/* --- STEPS --- */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--accent); color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-content h3 { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.step-content p  { color: var(--fg2); font-size: 0.9rem; line-height: 1.6; }

/* --- STORAGE METER (hero) --- */
.storage-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.storage-card-title {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg2); margin-bottom: 14px;
}
.storage-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 0.88rem; }
.storage-label { width: 100px; flex-shrink: 0; color: var(--fg2); font-size: 0.82rem; }
.storage-bar-wrap { flex: 1; height: 8px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.storage-bar { height: 100%; border-radius: 4px; }
.storage-bar.red    { background: var(--danger); }
.storage-bar.yellow { background: var(--accent); }
.storage-bar.green  { background: var(--green);  }
.storage-val { width: 42px; text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); font-size: 0.82rem; font-weight: 600; }
.storage-note { margin-top: 14px; font-size: 0.8rem; color: var(--danger); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* --- FOOTER --- */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 32px;
}
.footer-logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 1.1rem; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: var(--fg2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  width: 100%;
  font-size: 0.75rem;
  color: var(--fg2);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

/* --- PAGE-SPECIFIC: hero --- */
.hero {
  background: linear-gradient(135deg, #0d0f14 0%, #161922 50%, #0d1520 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(245,197,24,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-block: 60px;
}
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.0;
  text-wrap: balance;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--fg2); font-size: 1.05rem; max-width: 480px; margin-bottom: 28px; text-wrap: balance; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { display: flex; flex-direction: column; gap: 16px; }

/* --- ALT BG SECTIONS --- */
.bg-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
