/* ═══════════════════════════════
   SOULLY  |  blog.css
   Shared stylesheet for all blog articles
   Mobile-first · Dark · Nunito
═══════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ── Design tokens (mirror main site) ── */
:root {
  --bg-950: #050d10;
  --bg-900: #080f15;
  --bg-800: #0c1820;
  --bg-700: #111f29;
  --bg-600: #162838;
  --card:   rgba(11, 22, 32, 0.9);

  --m100: #d0fff0;
  --m200: #96f5d8;
  --m300: #4ee4b6;
  --m400: #1fcf96;
  --m500: #0fb87e;
  --m600: #0a9464;
  --m700: #067050;

  --t1: #dceee8;
  --t2: #8dbfb0;
  --t3: #4a8878;
  --t4: #275a4a;

  --b1: rgba(15, 184, 126, 0.14);
  --b2: rgba(15, 184, 126, 0.30);
  --b3: rgba(15, 184, 126, 0.50);

  --r-s: 12px;
  --r-m: 20px;
  --r-l: 30px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Nunito, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--t1);
  background: var(--bg-900);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-800); }
::-webkit-scrollbar-thumb { background: var(--m700); border-radius: 10px; }

/* ── Layout ── */
.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Blog Header ── */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(8, 15, 21, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--b1);
  max-width: 100%;
}

.blog-header .logo {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(130deg, var(--m300), #4dcef5);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.back-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--t2);
  padding: 6px 14px;
  border: 1px solid var(--b1);
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.back-link:hover,
.back-link:active {
  border-color: var(--m500);
  color: var(--m300);
}

/* ── Hero Section ── */
.hero-section {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--b1);
  margin-bottom: 32px;
}

.category-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m400);
  background: rgba(15, 184, 126, 0.12);
  border: 1px solid rgba(15, 184, 126, 0.25);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.hero-section h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--t1);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--t3);
}

.meta-row .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--t4);
  flex-shrink: 0;
}

/* ── Article Body ── */
.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--t1);
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--m300);
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t1);
  margin: 24px 0 8px;
}

.article-body p {
  margin-bottom: 18px;
  color: var(--t1);
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px 20px;
}

.article-body li {
  margin-bottom: 8px;
  color: var(--t1);
  padding-left: 4px;
}

.article-body ul li::marker {
  color: var(--m500);
}

.article-body ol li::marker {
  color: var(--m400);
  font-weight: 700;
}

.article-body strong {
  font-weight: 700;
  color: var(--m200);
}

.article-body em {
  font-style: italic;
  color: var(--t2);
}

/* ── Callout Box ── */
.callout {
  background: rgba(15, 184, 126, 0.07);
  border-left: 3px solid var(--m500);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  padding: 18px 20px;
  margin: 24px 0;
}

.callout-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m400);
  margin-bottom: 8px;
}

.callout p {
  margin-bottom: 0 !important;
  color: var(--t2);
  font-size: 0.95rem;
  line-height: 1.75;
}

.callout ul {
  margin: 6px 0 0 16px;
  color: var(--t2);
  font-size: 0.95rem;
}

.callout li {
  margin-bottom: 5px;
  color: var(--t2) !important;
}

.callout strong {
  color: var(--m300) !important;
}

/* ── Steps (numbered callout variant) ── */
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: steps;
}

.steps-list li {
  counter-increment: steps;
  position: relative;
  padding: 10px 0 10px 44px;
  border-bottom: 1px solid rgba(15, 184, 126, 0.08);
  font-size: 0.95rem;
  color: var(--t2);
  margin-bottom: 0;
}

.steps-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 10px;
  width: 28px;
  height: 28px;
  background: rgba(15, 184, 126, 0.18);
  border: 1px solid rgba(15, 184, 126, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--m300);
  line-height: 28px;
  text-align: center;
}

/* ── CTA Section ── */
.cta-section {
  margin-top: 48px;
  background: var(--card);
  border: 1px solid var(--b1);
  border-radius: var(--r-m);
  padding: 32px 24px;
  text-align: center;
}

.cta-section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--t1);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.cta-section p {
  font-size: 0.92rem;
  color: var(--t2);
  margin-bottom: 22px;
  line-height: 1.65;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--m500), var(--m400));
  color: #fff;
  font-family: Nunito, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 13px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.cta-btn:hover,
.cta-btn:active {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── Responsive fine-tuning ── */
@media (max-width: 400px) {
  .hero-section h1 {
    font-size: 1.4rem;
  }

  .article-body h2 {
    font-size: 1.15rem;
  }

  .cta-section {
    padding: 24px 18px;
  }
}

@media (min-width: 680px) {
  .blog-header {
    padding-left: calc((100vw - 680px) / 2 + 20px);
    padding-right: calc((100vw - 680px) / 2 + 20px);
  }
}
