/* ============================================
   XBACK — Blog Article Premium Styles
   Shared across all article pages
   ============================================ */

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --teal: #00e5c7;
  --teal-dim: #00b89c;
  --teal-glow: rgba(0, 229, 199, 0.3);
  --gold: #d4a853;
  --gold-light: #f0d078;
  --gold-dim: #b8923e;
  --white: #f5f5f5;
  --gray: #888888;
  --gray-light: #aaaaaa;
  --red: #ff6b6b;
  --font: 'Kanit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: #ddd;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  line-height: 1.8;
}

/* ── Reading Progress Bar ─────────────────── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Navbar ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 229, 199, 0.08);
}

.nav-inner {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-right a {
  color: var(--gray-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-right a:hover { color: var(--teal); }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: var(--black);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--teal-glow);
}

/* ── Article Hero ──────────────────────────── */
.article-hero {
  position: relative;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

.article-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 199, 0.2), transparent);
}

.article-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.article-tag {
  display: inline-block;
  background: rgba(0, 229, 199, 0.12);
  color: var(--teal);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 229, 199, 0.15);
}

.article-tag-red {
  background: rgba(255, 107, 107, 0.1);
  color: var(--red);
  border-color: rgba(255, 107, 107, 0.15);
}

.article-tag-gold {
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold-light);
  border-color: rgba(212, 168, 83, 0.15);
}

.article-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--white);
}

.article-title .teal { color: var(--teal); }
.article-title .gold { color: var(--gold-light); }

.article-subtitle {
  font-size: 1.1rem;
  color: var(--gray-light);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
}

.article-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray);
}

.article-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Article Body ──────────────────────────── */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #ddd;
  margin-bottom: 22px;
  font-weight: 300;
}

.article-body strong {
  color: var(--white);
  font-weight: 500;
}

.article-body em {
  color: var(--teal);
  font-style: normal;
  font-weight: 400;
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 16px;
  margin-bottom: 20px;
  line-height: 1.4;
  position: relative;
  padding-left: 0;
}

.article-body h2::before {
  display: none;
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 36px;
  margin-bottom: 12px;
}

/* ── Section Cards ─────────────────────────── */
.section-card {
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.section-card:hover {
  border-color: rgba(0, 229, 199, 0.12);
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent 80%);
  opacity: 0.5;
}

.section-card-gold::before {
  background: linear-gradient(90deg, var(--gold), transparent 80%);
}

.section-card-red::before {
  background: linear-gradient(90deg, var(--red), transparent 80%);
}

.section-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 199, 0.1);
  border: 1px solid rgba(0, 229, 199, 0.15);
  border-radius: 12px;
  font-size: 1.2rem;
}

.section-icon-gold {
  background: rgba(212, 168, 83, 0.1);
  border-color: rgba(212, 168, 83, 0.15);
}

.section-icon-red {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.15);
}

.section-card p {
  font-size: 1.02rem;
}

.section-card .callout {
  margin-left: -8px;
  margin-right: -8px;
}

/* ── Intro Panel ──────────────────────────── */
.intro-panel {
  background: linear-gradient(135deg, rgba(0, 229, 199, 0.04), rgba(10, 10, 10, 0.5));
  border: 1px solid rgba(0, 229, 199, 0.08);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 24px;
}

.intro-panel p {
  font-size: 1.08rem;
}

.intro-panel p:last-child {
  margin-bottom: 0;
}

/* ── Key Takeaway ─────────────────────────── */
.key-takeaway {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(0, 229, 199, 0.04);
  border: 1px solid rgba(0, 229, 199, 0.1);
  border-radius: 12px;
  margin: 20px 0;
  align-items: flex-start;
}

.key-takeaway-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  margin-top: 2px;
}

.key-takeaway p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-light);
  line-height: 1.65;
}

/* ── Callout Boxes ─────────────────────────── */
.callout {
  position: relative;
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.callout p {
  margin-bottom: 0;
  font-weight: 400;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.75;
}

.callout-teal {
  background: rgba(0, 229, 199, 0.06);
  border: 1px solid rgba(0, 229, 199, 0.12);
}
.callout-teal::before { background: var(--teal); }

.callout-gold {
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.12);
}
.callout-gold::before { background: var(--gold); }

.callout-red {
  background: rgba(255, 107, 107, 0.05);
  border: 1px solid rgba(255, 107, 107, 0.12);
}
.callout-red::before { background: var(--red); }

.callout-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}

/* ── Pull Quote ─────────────────────────────── */
.pull-quote {
  text-align: center;
  padding: 40px 32px;
  margin: 48px 0;
  position: relative;
}

.pull-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6rem;
  color: var(--teal);
  opacity: 0.15;
  line-height: 1;
  font-family: Georgia, serif;
}

.pull-quote p {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 0;
}

.pull-quote .source {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--gray);
  font-weight: 300;
}

/* ── Numbered Cards (for lists) ────────────── */
.num-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.num-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.num-card:hover {
  border-color: rgba(0, 229, 199, 0.2);
  transform: translateX(4px);
}

.num-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 199, 0.15), rgba(0, 229, 199, 0.05));
  border: 1px solid rgba(0, 229, 199, 0.2);
  border-radius: 12px;
  color: var(--teal);
  font-weight: 700;
  font-size: 1.1rem;
}

.num-badge-red {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 107, 107, 0.05));
  border-color: rgba(255, 107, 107, 0.2);
  color: var(--red);
}

.num-badge-gold {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.05));
  border-color: rgba(212, 168, 83, 0.2);
  color: var(--gold-light);
}

.num-card-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 6px;
}

.num-card-content p {
  font-size: 0.92rem;
  color: var(--gray-light);
  margin: 0;
  line-height: 1.65;
}

/* ── Signal / Checklist Cards ──────────────── */
.signal-card {
  padding: 20px 24px;
  margin: 12px 0;
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: 12px;
  transition: all 0.3s;
}

.signal-card:hover {
  border-color: rgba(0, 229, 199, 0.2);
}

.signal-card .signal-num {
  display: inline-block;
  background: var(--teal);
  color: var(--black);
  font-weight: 700;
  font-size: 0.75rem;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  margin-right: 10px;
}

.signal-card h3 {
  display: inline;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.signal-card p {
  font-size: 0.92rem;
  color: var(--gray-light);
  margin: 8px 0 0 34px;
  line-height: 1.6;
}

/* ── Chat Bubbles ──────────────────────────── */
.chat-example {
  margin: 28px 0;
  padding: 24px;
  background: var(--dark);
  border-radius: 16px;
  border: 1px solid var(--dark3);
}

.chat-label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.chat-bubble-bad {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.15);
  color: #ffaaaa;
  border-bottom-left-radius: 4px;
}

.chat-bubble-good {
  background: rgba(0, 229, 199, 0.08);
  border: 1px solid rgba(0, 229, 199, 0.15);
  color: #b0f0e0;
  border-bottom-left-radius: 4px;
}

.chat-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--dark3);
  font-size: 0.88rem;
  color: var(--gray);
}

.chat-result .bad { color: var(--red); }
.chat-result .good { color: var(--teal); }

/* ── Framework / Level Box ─────────────────── */
.framework-box {
  padding: 28px;
  margin: 32px 0;
  background: linear-gradient(135deg, rgba(0, 229, 199, 0.04), rgba(212, 168, 83, 0.04));
  border: 1px solid rgba(0, 229, 199, 0.12);
  border-radius: 16px;
}

.framework-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 16px;
  text-align: center;
}

.level-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.level-row + .level-row {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.level-badge {
  flex-shrink: 0;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.level-badge-gray {
  background: rgba(136, 136, 136, 0.15);
  color: var(--gray);
}

.level-badge-gold {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold-light);
}

.level-badge-teal {
  background: rgba(0, 229, 199, 0.15);
  color: var(--teal);
}

.level-row p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gray-light);
}

/* ── Teaser Lock Box ──────────────────────── */
.teaser-box {
  text-align: center;
  padding: 36px 28px;
  margin: 40px 0;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.05), rgba(212, 168, 83, 0.02));
  border: 1px dashed rgba(212, 168, 83, 0.3);
  border-radius: 16px;
}

.teaser-lock {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.teaser-box h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 8px;
}

.teaser-box p {
  font-size: 0.92rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* ── Divider ──────────────────────────────── */
.divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold), transparent);
  margin: 56px 0;
  border-radius: 2px;
}

/* ── CTA Section ─────────────────────────── */
.article-cta {
  margin: 56px 0 0;
  padding: 48px 32px;
  background: linear-gradient(135deg, rgba(0, 229, 199, 0.06), rgba(212, 168, 83, 0.04));
  border: 1px solid rgba(0, 229, 199, 0.15);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--teal-glow) 0%, transparent 50%);
  opacity: 0.06;
  pointer-events: none;
}

.article-cta h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
  padding-left: 0;
}

.article-cta h2::before { display: none; }

.article-cta p {
  font-size: 0.95rem;
  color: var(--gray-light);
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: var(--black);
  padding: 15px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 0 24px rgba(0, 229, 199, 0.2);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 229, 199, 0.35);
}

.btn-cta-gold {
  display: inline-block;
  color: var(--gold-light);
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid rgba(212, 168, 83, 0.35);
  transition: all 0.3s;
}

.btn-cta-gold:hover {
  background: rgba(212, 168, 83, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.cta-note {
  font-size: 0.8rem;
  color: #555;
  margin-top: 16px;
}

/* ── Footer ──────────────────────────────── */
.article-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social a {
  color: #666;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--teal);
}

.footer-back {
  color: var(--teal);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-back:hover {
  color: #00ffd5;
  transform: translateX(-4px);
}

.footer-copy {
  color: #444;
  font-size: 0.78rem;
}

/* ── Related Articles ─────────────────────── */
.related {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.related h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.related-card {
  padding: 20px;
  background: var(--dark);
  border: 1px solid var(--dark3);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.related-card:hover {
  border-color: rgba(0, 229, 199, 0.2);
  transform: translateY(-2px);
}

.related-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 6px;
}

.related-card p {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 640px) {
  .article-title {
    font-size: 1.7rem;
  }

  .article-subtitle {
    font-size: 1rem;
  }

  .article-hero {
    padding: 100px 20px 40px;
  }

  .article-body {
    padding: 24px 16px 40px;
  }

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

  .section-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .intro-panel {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .article-body p {
    font-size: 1rem;
  }

  .num-card {
    padding: 18px;
    gap: 14px;
  }

  .num-badge {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .pull-quote p {
    font-size: 1.1rem;
  }

  .callout {
    padding: 20px;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .article-cta {
    padding: 32px 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
  }
}
