/* Shared styles for Secret Sanitizer blog pages — mirrors the landing page design tokens */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0ea5e9;
  --primary-glow: rgba(14, 165, 233, 0.25);
  --accent: #06b6d4;
  --accent-warm: #818cf8;
  --bg: #0b1525;
  --bg-alt: #0f1d31;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.09);
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 16px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, #38bdf8, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  padding: 10px 0;
  background: rgba(11, 21, 37, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }
.nav-brand:hover { color: var(--text); }
.nav-brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 7px 16px; border-radius: 8px; font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important; font-size: 0.8rem; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px var(--primary-glow); }
@media (max-width: 600px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ===== Blog index ===== */
.blog-header { padding: 72px 0 40px; text-align: center; }
.blog-header h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
.blog-header p { color: var(--text-muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }

.post-list { display: flex; flex-direction: column; gap: 18px; padding-bottom: 72px; }
.post-card {
  display: block;
  padding: 26px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.post-card .post-date { font-size: 0.74rem; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h2 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 8px 0 8px; letter-spacing: -0.015em; line-height: 1.35; }
.post-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.post-card .post-more { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--primary); }

/* ===== Article ===== */
.article-header { padding: 64px 0 8px; }
.article-header .post-date { font-size: 0.76rem; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.article-header h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.18; margin: 12px 0 14px; }
.article-header .article-lede { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; }
.article-meta { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.82rem; color: var(--text-dim); }

article { padding: 24px 0 40px; }
article h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 14px; line-height: 1.3; }
article h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 10px; }
article p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
article ul, article ol { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 16px 22px; }
article li { margin-bottom: 8px; }
article li::marker { color: var(--primary); }
article strong { color: var(--text); }
article code {
  font-family: var(--mono); font-size: 0.84em;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px; color: var(--text);
}
article blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 18px; margin: 0 0 16px;
  color: var(--text-muted); font-style: italic;
}
.callout {
  padding: 18px 22px; margin: 24px 0;
  background: rgba(14,165,233,0.05);
  border: 1px solid rgba(14,165,233,0.18);
  border-radius: 12px;
  font-size: 0.9rem; color: var(--text-muted);
}
.callout strong { color: var(--primary); }

/* ===== Article CTA ===== */
.article-cta {
  margin: 48px 0 64px;
  padding: 36px 32px;
  text-align: center;
  border: 1px solid rgba(14,165,233,0.18);
  border-radius: 18px;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(14,165,233,0.09) 0%, transparent 70%);
}
.article-cta h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.article-cta p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 4px 24px var(--primary-glow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--primary-glow); color: #fff; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; margin-top: 8px; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--border); padding: 40px 0 32px; text-align: center; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--primary); }
.footer-credit { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 4px; }
.footer-copy { font-size: 0.72rem; color: var(--text-dim); opacity: 0.55; }

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .blog-header { padding: 52px 0 32px; }
  .article-header { padding: 44px 0 4px; }
  .post-card { padding: 22px 20px; }
  .article-cta { padding: 28px 20px; }
}
