/* Break Free — global stylesheet */
/* Used by pages that link /assets/style.css instead of inline styles */

:root {
  --bg: #07090F; --bg2: #0D1018; --bg3: #141820;
  --card: #181E2C; --border: #222B3E;
  --accent: #5B8AF0; --accent2: #A855F7;
  --green: #22C55E; --text: #E2E8F0;
  --muted: #64748B; --light: #94A3B8; --gold: #F59E0B;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.75;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Nav ───────────────────────────────────────────── */
.site-header {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--light); font-size: .9rem; }
.main-nav a:hover { color: var(--text); text-decoration: none; }

/* ── Lang switcher ─────────────────────────────────── */
.lang-switcher {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  display: flex; gap: 6px; justify-content: flex-end;
  padding: 6px 20px; font-size: .8rem;
}
.lang-switcher a {
  color: var(--muted); padding: 3px 8px;
  border: 1px solid transparent; border-radius: 4px;
}
.lang-switcher a:hover,
.lang-switcher a[aria-current="page"] {
  color: var(--accent); border-color: var(--accent);
  text-decoration: none;
}

/* ── Article layout ────────────────────────────────── */
.article-layout {
  max-width: 760px; margin: 0 auto; padding: 32px 20px 60px;
}
.article-header { margin-bottom: 32px; }
.article-meta-top {
  display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap; margin-bottom: 16px; font-size: .85rem; color: var(--muted);
}
.blog-cat {
  background: var(--bg3); color: var(--accent);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 4px 10px; border-radius: 20px;
}
article h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800;
  line-height: 1.25; color: #fff; margin-bottom: 16px;
}
.article-intro {
  font-size: 1.05rem; color: var(--light); line-height: 1.65;
  margin-bottom: 24px;
}
.article-hero {
  width: 100%; aspect-ratio: 1200/630; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--border);
  margin-bottom: 32px;
}

/* ── Article body ──────────────────────────────────── */
.article-body h2 {
  font-size: 1.35rem; font-weight: 700; color: #fff;
  margin: 36px 0 12px;
}
.article-body h3 {
  font-size: 1.1rem; font-weight: 600; color: var(--light);
  margin: 26px 0 10px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--gold); }
.article-body blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px;
  margin: 24px 0; background: var(--bg2); border-radius: 0 8px 8px 0;
  color: var(--light); font-style: italic;
}
.article-body a { color: var(--accent); }

/* ── Disclosure ────────────────────────────────────── */
.affiliate-note {
  font-size: .82rem; color: var(--muted); background: var(--bg2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 24px;
}
.disclosure-box {
  font-size: .82rem; color: var(--muted); background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 18px; margin: 20px 0;
}

/* ── CTA box ───────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--bg3), #1a1040);
  border: 1px solid var(--accent2); border-radius: 12px;
  padding: 28px 32px; margin: 40px 0; text-align: center;
}
.cta-box h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.cta-box p  { color: var(--light); margin-bottom: 20px; }
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: 8px; font-weight: 600;
  font-size: .95rem; transition: background .2s;
}
.btn-primary:hover { background: #4a79df; text-decoration: none; }

/* ── Related section ───────────────────────────────── */
.related-section {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.related-section > h2 {
  font-size: 1rem; font-weight: 700; color: var(--light);
  margin-bottom: 20px; text-transform: uppercase; letter-spacing: .05em;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.related-card {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; transition: border-color .2s;
}
.related-card:hover { border-color: var(--accent); text-decoration: none; }
.related-card span {
  font-size: .72rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .05em;
}
.related-card p { font-size: .88rem; color: var(--light); margin-top: 6px; }

/* ── Article footer + site footer ─────────────────── */
.article-footer {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--muted);
}
.article-footer a { color: var(--muted); }
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 24px 20px; text-align: center;
  font-size: .82rem; color: var(--muted); margin-top: 60px;
}
.site-footer .container { max-width: 1100px; margin: 0 auto; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--light); }

/* ── Container helper ──────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
  .main-nav { display: none; }
  article h1 { font-size: 1.5rem; }
  .article-layout { padding: 24px 16px 48px; }
  .cta-box { padding: 20px 18px; }
  .related-grid { grid-template-columns: 1fr; }
}
