/* ============================================================
 * SoniqTools base.css
 * Shared design tokens, reset, body, and header rules used by
 * every tool page. Tool-specific styles stay inside the tool's
 * own <style> block. Browsers cache this file across navigations.
 * ============================================================ */

/* === Design tokens === */
:root {
  --bg: #0a0a0c;
  --bg-raised: #111116;
  --bg-card: #16161c;
  --border: #222230;
  --border-light: #2a2a3a;
  --text: #e8e6f0;
  --text-dim: #8885a0;
  --text-muted: #55536a;
  --accent: #00e5a0;
  --accent-dim: #00e5a020;
  --accent-glow: #00e5a040;
  --warning: #ffb347;
  --danger: #ff5c6c;
  --gold: #ffd700;
  --blue: #5caaff;
  --purple: #b388ff;
  --yellow: #f0d060;
  --pink: #ff6eb4;
  --orange: #ff8c42;
  --cyan: #00d4ff;
  --gradient-1: linear-gradient(135deg, #00e5a0, #00b8d4);
  --gradient-2: linear-gradient(135deg, #b388ff, #ff5c6c);
  --font-display: 'Satoshi', 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* === Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Utility: hide any element tagged with class="hidden".
   Tool JS toggles this class to show/hide sections (batch cards,
   download buttons, info bars) — was inline in every tool pre-refactor. */
.hidden { display: none !important; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* === Body === */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 30% 20%, #00e5a008 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, #b388ff06 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* === Shared header === */
header {
  position: relative;
  z-index: 10;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--text);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Tagline under the logo. Values match the original inline rule still
   present on most tool pages — kept here for pages (analyzer) whose
   inline copy was removed during the CSS extraction. */
.logo-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  font-weight: 400;
  line-height: 1;
}

.logo-subtitle span {
  color: var(--accent);
}

/* === Shared site footer ===
   Markup lives in each page (static HTML so crawlers always see the
   links); all styling lives here so it stays consistent site-wide.
   Class selectors below deliberately out-rank the plain `footer`
   element rules still present in each page's inline <style>. */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 56px 40px 28px;
  text-align: left;
}

.site-footer .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px 32px;
}

/* Brand blurb (first column) */
.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.footer-brand .footer-logo em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

.footer-brand .footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand .footer-logo .logo-icon svg { width: 17px; height: 17px; }

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 260px;
}

.footer-brand .footer-privacy-note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

/* Link columns */
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-col .footer-col-title:not(:first-child) { margin-top: 24px; }

.site-footer .footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.site-footer .footer-col a:hover { color: var(--accent); }

/* "Featured on" badge strip (homepage only) — compact version */
.site-footer .featured-on {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer .featured-on-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.site-footer .featured-on-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.site-footer .featured-on-badges img { height: 28px; width: auto; opacity: 0.75; transition: opacity 0.15s; }
.site-footer .featured-on-badges a:hover img { opacity: 1; }

/* Copyright line */
.site-footer .footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer .footer-bottom a { color: var(--text-dim); text-decoration: none; }
.site-footer .footer-bottom a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .site-footer { padding: 40px 20px 24px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
}
