/* ============================================
   BLOG POST ARTICLE STYLING
   ============================================ */

.article-body {
  background: var(--bg);
  min-height: 100vh;
}

.article-hero {
  padding: calc(var(--header-height) + 40px) 0 20px;
  border-bottom: 1px solid var(--border);
}

.article-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
  margin-bottom: 20px;
}

.article-back:hover {
  color: var(--orange);
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.article-meta-top .article-category {
  color: var(--orange);
  padding: 4px 10px;
  border: 1px solid rgba(255, 140, 26, 0.3);
  border-radius: var(--radius-full);
  background: var(--orange-dim);
}

.article-meta-top .article-readtime {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 18px;
}

.article-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 24px;
}

.article-meta-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}

.article-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.article-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c1a, #ffa338);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}

.article-author-name {
  font-weight: 600;
  color: var(--text);
}

.article-meta-sep {
  opacity: 0.4;
}

/* ============= BODY ============= */
.article-content {
  padding: 50px 0 80px;
}

.article-content-inner {
  max-width: 820px;
  margin: 0 auto;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 48px 0 16px;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-content p strong {
  color: var(--text);
  font-weight: 600;
}

.article-content a:not(.btn) {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 140, 26, 0.3);
  transition: border-color var(--transition);
}

.article-content a:not(.btn):hover {
  border-bottom-color: var(--orange);
}

.article-content code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
}

.article-content ul,
.article-content ol {
  margin: 14px 0 18px;
  padding-left: 22px;
}

.article-content ul li,
.article-content ol li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.article-content ul li::marker {
  color: var(--orange);
}

/* ============= CODE BLOCK (matches docs) ============= */
.article-code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0 28px;
  overflow: hidden;
}

.article-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.article-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
}

.article-code-copy:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.article-code-copy.copied {
  color: var(--success, #22c55e);
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

.article-code-block pre {
  padding: 16px 20px;
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.article-code-block code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
}

.article-code .tok-keyword { color: #c084fc; }
.article-code .tok-string { color: #6ee7b7; }
.article-code .tok-comment { color: var(--text-dim); font-style: italic; }
.article-code .tok-number { color: #fbbf24; }
.article-code .tok-bool { color: #60a5fa; }
.article-code .tok-prop { color: #f472b6; }

/* ============= CALLOUTS (matches docs) ============= */
.article-note {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid;
  margin: 24px 0;
}

.article-note.info {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.2);
}
.article-note.info .article-note-icon,
.article-note.info h4 { color: #60a5fa; }

.article-note.warn {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.25);
}
.article-note.warn .article-note-icon,
.article-note.warn h4 { color: #fbbf24; }

.article-note.tip {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.22);
}
.article-note.tip .article-note-icon,
.article-note.tip h4 { color: #22c55e; }

.article-note-icon {
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.article-note h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.article-note p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ============= PROS / CONS TABLE ============= */
.article-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.article-prosbox,
.article-consbox {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.article-prosbox {
  border-color: rgba(34, 197, 94, 0.25);
}

.article-consbox {
  border-color: rgba(239, 68, 68, 0.25);
}

.article-prosbox h4,
.article-consbox h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.article-prosbox h4 { color: #22c55e; }
.article-consbox h4 { color: #ef4444; }

.article-prosbox ul,
.article-consbox ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-prosbox li,
.article-consbox li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.article-prosbox li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.article-consbox li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
}

@media (max-width: 720px) {
  .article-proscons {
    grid-template-columns: 1fr;
  }
}

/* ============= STEP LIST ============= */
.article-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: step-counter;
}

.article-step {
  position: relative;
  padding: 20px 20px 20px 62px;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step-counter;
}

.article-step::before {
  content: counter(step-counter);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange-dim);
  border: 1px solid rgba(255, 140, 26, 0.3);
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.article-step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.article-step p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.article-step p:last-child {
  margin-bottom: 0;
}

.article-step .article-code-block {
  margin: 10px 0 0;
}

/* ============= CTA END ============= */
.article-cta-end {
  margin-top: 60px;
  padding: 32px;
  background: linear-gradient(135deg, var(--orange-dim) 0%, var(--bg-card) 80%);
  border: 1px solid rgba(255, 140, 26, 0.22);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta-end h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.article-cta-end p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ============================================
   PLATFORM SWITCHER (Windows / Linux tabs)
   ============================================ */
.platform-switcher {
  margin: 30px 0 24px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: inline-flex;
  gap: 4px;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
}

.platform-tab:hover {
  color: var(--text);
}

.platform-tab.active {
  background: var(--orange);
  color: #fff;
}

.platform-tab svg {
  width: 14px;
  height: 14px;
}

.platform-content {
  display: none;
}

.platform-content.active {
  display: block;
  animation: platformFade 0.25s ease;
}

@keyframes platformFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   IMPROVED CALLOUT ICONS
   ============================================ */
.article-note-icon {
  flex-shrink: 0;
  margin-top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.article-note.info .article-note-icon {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.article-note.warn .article-note-icon {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.article-note.tip .article-note-icon {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.article-note-icon svg {
  width: 18px;
  height: 18px;
}
