/* Shared styles for ScamBuster AI threat-education static article pages.
   Used by all /threat-education/{cs,en}/*.html files.
   Impact: changes affect all article pages. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --dark: #0c1628;
  --brand: #2563eb;
  --danger: #dc2626;
  --safe: #16a34a;
  --warning: #d97706;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-muted: #94a3b8;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --t: 150ms ease;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

/* ── Nav ── */
.art-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,22,40,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.7rem 0;
}
.art-nav-inner {
  width: min(800px, 94vw); margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
}
.art-nav-logo {
  display: flex; align-items: center; gap: 0.4rem;
  text-decoration: none; color: #f1f5f9;
  font: 700 0.95rem/1 "Inter", sans-serif;
}
.art-nav-logo svg { width: 22px; height: 22px; flex-shrink: 0; }
.art-nav-back {
  margin-left: auto;
  font: 500 0.82rem/1 "Inter", sans-serif;
  color: #94a3b8; text-decoration: none;
  transition: color var(--t);
  display: flex; align-items: center; gap: 0.25rem;
}
.art-nav-back:hover { color: #f1f5f9; }

/* ── Article shell ── */
.art-wrap { width: min(760px, 94vw); margin: 2.5rem auto 3rem; }

/* ── TLDR Verdict Box ── */
.tldr-box {
  background: #fff0f0;
  border: 1.5px solid rgba(220,38,38,0.25);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
  display: grid; gap: 0.6rem;
}
.tldr-box.safe { background: #f0fdf4; border-color: rgba(22,163,74,0.25); border-left-color: var(--safe); }
.tldr-box.warning { background: #fffbeb; border-color: rgba(217,119,6,0.25); border-left-color: var(--warning); }

.tldr-header { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.tldr-label { font: 700 0.7rem/1 "Inter", monospace; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-muted); }
.tldr-verdict-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  background: var(--danger); color: #fff; border-radius: 999px;
  font: 800 0.72rem/1 "Inter", sans-serif; letter-spacing: 0.04em;
}
.tldr-verdict-badge.safe { background: var(--safe); }
.tldr-verdict-badge.warning { background: var(--warning); }
.tldr-risk { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; font: 500 0.88rem/1.45 "Inter", sans-serif; color: var(--ink); }
.tldr-what { font: 400 0.9rem/1.5 "Inter", sans-serif; color: var(--ink-soft); }
.tldr-what strong { color: var(--ink); }

/* ── Article typography ── */
.art-wrap h1 { margin: 0 0 0.75rem; font: 800 2rem/1.15 "Inter", sans-serif; letter-spacing: -0.025em; color: var(--ink); }
.art-wrap h2 { margin: 1.8rem 0 0.6rem; font: 700 1.2rem/1.25 "Inter", sans-serif; letter-spacing: -0.015em; }
.art-wrap h3 { margin: 1.2rem 0 0.4rem; font: 600 1rem/1.25 "Inter", sans-serif; }
.art-wrap p { margin: 0 0 0.85rem; font: 400 1rem/1.65 "Inter", sans-serif; color: var(--ink-soft); }
.art-wrap ul { margin: 0 0 0.85rem; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.art-wrap li { font: 400 0.97rem/1.55 "Inter", sans-serif; color: var(--ink-soft); }
.art-wrap a { color: var(--brand); font-weight: 600; }
.art-wrap strong { color: var(--ink); }

/* ── Footer ── */
.art-footer {
  margin-top: 3rem; padding: 1.5rem 0; text-align: center;
  border-top: 1px solid var(--border);
  font: 400 0.82rem/1.5 "Inter", sans-serif; color: var(--ink-muted);
}
.art-footer a { color: var(--brand); }

/* ── Sticky install bar ── */
.sticky-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(12,22,40,0.97);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  align-items: center; gap: 0.75rem;
  animation: slide-up 0.3s ease-out;
}
@media (max-width: 768px) { .sticky-bar { display: flex; } }
.sticky-bar.is-dismissed { display: none !important; }
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sticky-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--brand); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.sticky-icon svg { width: 18px; height: 18px; color: #fff; }
.sticky-copy { flex: 1; }
.sticky-copy strong { display: block; font: 700 0.84rem/1.2 "Inter", sans-serif; color: #f1f5f9; }
.sticky-copy span { font: 400 0.74rem/1.3 "Inter", sans-serif; color: #94a3b8; }
.sticky-cta {
  padding: 0.5rem 0.9rem; background: var(--brand); color: #fff;
  border-radius: 999px; font: 700 0.78rem/1 "Inter", sans-serif;
  text-decoration: none; white-space: nowrap; transition: background var(--t);
}
.sticky-cta:hover { background: #1d4ed8; }
.sticky-close {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #64748b; display: flex; align-items: center;
}
.sticky-close svg { width: 16px; height: 16px; }
