/* ============================================================
   SafeZone Blog Styles
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0f;
  --bg2: #13131f;
  --border: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.85);
  --muted: rgba(255,255,255,0.45);
  --accent: #6c63ff;
  --accent2: #ec4899;
  --green: #4ade80;
  --font-body: 'Inter', system-ui, sans-serif;
  --max: 780px;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center; color: #fff;
  flex-shrink: 0;
}
.logo-text { font-size: 18px; font-weight: 800; color: #fff; }
.logo-dot { color: var(--accent); }
.nav { display: flex; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-link.active { color: #fff; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; white-space: nowrap;
  transition: opacity .2s; text-decoration: none;
}
.btn-primary:hover { opacity: .85; text-decoration: none; }

/* ── Background orbs ── */
.bg-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(80px);
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(108,99,255,.08) 0%, transparent 70%); top: -200px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(236,72,153,.06) 0%, transparent 70%); bottom: -100px; right: -100px; }

/* ── Blog Index ── */
.blog-hero {
  position: relative; z-index: 1;
  padding: 80px 24px 60px; text-align: center;
}
.blog-hero .label {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  background: rgba(108,99,255,.12); border: 1px solid rgba(108,99,255,.25);
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}
.blog-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin-bottom: 16px; }
.blog-hero p { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin: 0 auto; }

.blog-grid {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px 80px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  transition: transform .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); border-color: rgba(108,99,255,.3); }

.blog-card-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.badge-safezone { background: rgba(108,99,255,.2); color: #a5a0ff; }
.badge-downloader { background: rgba(236,72,153,.15); color: #f9a8d4; }
.badge-tools { background: rgba(74,222,128,.12); color: #86efac; }
.badge-platform { background: rgba(251,191,36,.12); color: #fcd34d; }

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body h2 a { color: #fff; }
.blog-card-body h2 a:hover { color: var(--accent); text-decoration: none; }
.blog-card-body p { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.blog-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.blog-card-meta a {
  font-size: 13px; font-weight: 600; color: var(--accent);
}

/* ── Article Page ── */
.article-wrap {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding: 60px 24px 100px;
}

.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); margin-bottom: 32px;
  transition: color .2s;
}
.article-back:hover { color: #fff; text-decoration: none; }

.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.article-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
}
.article-date { font-size: 13px; color: var(--muted); }
.article-readtime { font-size: 13px; color: var(--muted); }

.article-wrap h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900;
  line-height: 1.25; margin-bottom: 20px;
}

.article-intro {
  font-size: 1.1rem; color: rgba(255,255,255,.7);
  border-left: 3px solid var(--accent); padding-left: 20px;
  margin-bottom: 40px; line-height: 1.7;
}

.article-toc {
  background: rgba(108,99,255,.07); border: 1px solid rgba(108,99,255,.2);
  border-radius: 14px; padding: 20px 24px; margin-bottom: 40px;
}
.article-toc h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.article-toc ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.article-toc li { font-size: 14px; }
.article-toc a { color: var(--muted); }
.article-toc a:hover { color: #fff; }

.article-body h2 {
  font-size: 1.4rem; font-weight: 800; margin: 44px 0 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.article-body h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 12px; color: rgba(255,255,255,.9); }
.article-body p { margin-bottom: 18px; color: var(--text); }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.article-body li { color: var(--text); }
.article-body strong { color: #fff; font-weight: 600; }
.article-body a { color: var(--accent); }

.article-body .tip-box {
  background: rgba(74,222,128,.07); border: 1px solid rgba(74,222,128,.2);
  border-radius: 12px; padding: 18px 20px; margin: 24px 0;
}
.article-body .tip-box p { margin: 0; color: rgba(255,255,255,.75); }
.article-body .tip-box strong { color: var(--green); }

.article-body .warn-box {
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.2);
  border-radius: 12px; padding: 18px 20px; margin: 24px 0;
}
.article-body .warn-box p { margin: 0; }

.article-body .info-box {
  background: rgba(108,99,255,.08); border: 1px solid rgba(108,99,255,.2);
  border-radius: 12px; padding: 18px 20px; margin: 24px 0;
}
.article-body .info-box p { margin: 0; color: rgba(255,255,255,.75); }

.dim-table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px;
}
.dim-table th {
  background: rgba(108,99,255,.12); color: #a5a0ff;
  padding: 10px 14px; text-align: left; font-size: 12px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid rgba(108,99,255,.2);
}
.dim-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.dim-table tr:last-child td { border-bottom: none; }
.dim-table tr:hover td { background: rgba(255,255,255,.02); }

.cta-box {
  background: linear-gradient(135deg, rgba(108,99,255,.15), rgba(236,72,153,.1));
  border: 1px solid rgba(108,99,255,.3); border-radius: 18px;
  padding: 36px 32px; text-align: center; margin: 48px 0;
}
.cta-box h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.cta-box p { color: var(--muted); margin-bottom: 20px; }

.article-footer {
  margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--border);
}
.article-footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--muted); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.related-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; transition: border-color .2s;
}
.related-card:hover { border-color: rgba(108,99,255,.3); text-decoration: none; }
.related-card span { font-size: 13px; color: rgba(255,255,255,.7); display: block; line-height: 1.4; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; }
.footer p { font-size: 13px; color: var(--muted); }
.footer a { color: var(--muted); margin: 0 10px; }
.footer a:hover { color: #fff; }

/* ── AdSense ── */
.ad-slot { margin: 32px 0; text-align: center; }
.ad-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.2); margin-bottom: 6px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-wrap { padding: 40px 16px 60px; }
  .cta-box { padding: 24px 20px; }
}
