/* ============================================================
   LIFE OVERDRIVE — global.css
   Shared tokens, reset, header, footer, ad slots
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --bg:           #0d0d0d;
  --bg-card:      #141414;
  --bg-dark:      #080808;
  --bg-mid:       #1a1a1a;
  --ink:          #f0ece4;
  --ink-mid:      #9a9690;
  --ink-soft:     #5a5652;
  --ink-inv:      #0d0d0d;
  --border:       #2a2a2a;
  --border-mid:   #333333;
  --accent:       #ff4d00;
  --accent-light: rgba(255,77,0,0.08);
  --green:        #00e896;

  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;
  --font-body:    'Barlow', system-ui, sans-serif;

  /* Per-tool theme — overridden per page */
  --theme-color:  #ff4d00;
  --theme-light:  rgba(255,77,0,0.08);
  --theme-border: rgba(255,77,0,0.25);

  --radius:    4px;
  --radius-lg: 8px;
  --max-w:     1200px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Subtle grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,77,0,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,77,0,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: var(--theme-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo__mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.site-logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-logo__text span { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-nav a {
  color: var(--ink-mid);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0 14px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--theme-color);
}

.site-header__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-dark);
  padding: 48px 2rem 32px;
  margin-top: 80px;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer__brand .site-logo { margin-bottom: 12px; }

.site-footer__brand p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 260px;
}

.site-footer__col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.site-footer__col ul {
  list-style: none;
}

.site-footer__col ul li {
  margin-bottom: 8px;
}

.site-footer__col ul li a {
  font-size: 14px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__col ul li a:hover {
  color: var(--theme-color);
  text-decoration: none;
}

.site-footer__bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__bottom p {
  font-size: 12px;
  color: var(--ink-soft);
}

.site-footer__bottom a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer__bottom a:hover { color: var(--theme-color); }

/* ── AD SLOTS ────────────────────────────────────────────── */
/* DELETE THIS LINE when AdSense is approved: */
.ad-slot { display: none !important; }

.ad-slot {
  background: var(--bg-mid);
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
}

.ad-slot--rectangle {
  width: 300px;
  height: 250px;
  margin: 20px auto 0;
}

.ad-slot--leaderboard {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 24px auto;
}

.ad-slot--mobile-banner {
  width: 320px;
  height: 50px;
  margin: 16px auto;
  display: none;
}

/* ── UTILITY CLASSES ────────────────────────────────────── */
.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;
}

.stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--theme-color) 0%, rgba(255,179,71,0.6) 60%, transparent 100%);
}

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 2rem;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--theme-color); }
.breadcrumb span { color: var(--ink-soft); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-header__tagline { display: none; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-nav a { padding: 0 10px; font-size: 12px; }
  .ad-slot--mobile-banner { display: flex; }
}
