/* Shared blog styles — single file for all blog pages */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-dark: #0b0606;
  --bg-card: #111111;
  --bg-light: #f7f7f7;
  --bg-paper: #ffffff;
  --accent: #f07800;
  --accent-hover: #ff9a2e;
  --accent-glow: rgba(240, 120, 0, 0.35);
  --text-white: #ffffff;
  --text-light: #cccccc;
  --text-body: #2d2a28;
  --text-muted: #6b6664;
  --text-dim: #98908d;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-paper);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 6, 6, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(240, 120, 0, 0.15);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.header__logo { justify-self: start; }
.header__nav { justify-self: center; }
.header__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}
@media (max-width: 768px) {
  .header__inner { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
}
.header__logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  text-decoration: none;
}
.header__logo span { color: var(--accent); }
.header__nav { display: flex; gap: 28px; }
.header__nav a {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.header__nav a:hover, .header__nav a.active { color: var(--accent); }
.header__cta {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__cta { padding: 8px 16px; font-size: 13px; }
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 18px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; opacity: 0.5; }

/* ===== Blog index hero ===== */
.blog-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--bg-dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.blog-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Article cards grid (blog index) ===== */
.articles { padding: 56px 0; background: var(--bg-light); }
.articles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 768px) {
  .articles__grid { grid-template-columns: 1fr; gap: 20px; }
}
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}
.article-card a { color: inherit; text-decoration: none; display: block; height: 100%; }
.article-card__cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.article-card__body { padding: 24px 26px 28px; }
.article-card__tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(240, 120, 0, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.article-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--bg-dark);
  line-height: 1.25;
  margin-bottom: 10px;
}
.article-card__excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.article-card__meta strong { color: var(--text-body); font-weight: 600; }

/* ===== Article page ===== */
.article {
  padding: 48px 0 80px;
  background: #fff;
}
.article__inner {
  max-width: 760px;
  margin: 0 auto;
}
.article__tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.article__title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  color: var(--bg-dark);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.article__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article__author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(240, 120, 0, 0.25);
}
.article__author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.article__author-name { color: var(--text-body); font-weight: 600; }
.article__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  margin: 30px 0;
}

.article__content { font-size: 17px; line-height: 1.75; }
.article__content > p { margin-bottom: 22px; color: var(--text-body); }
.article__content > h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--bg-dark);
  margin: 44px 0 18px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.article__content > h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 32px 0 12px;
  line-height: 1.3;
}
.article__content ul, .article__content ol {
  margin: 0 0 22px 0;
  padding-left: 0;
}
.article__content ul li, .article__content ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  list-style: none;
}
.article__content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.article__content ol { counter-reset: ol-counter; }
.article__content ol li { counter-increment: ol-counter; }
.article__content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.stat-callout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin: 32px 0;
  padding: 26px 28px;
  background: linear-gradient(135deg, rgba(240, 120, 0, 0.06), rgba(240, 120, 0, 0.02));
  border-left: 4px solid var(--accent);
  border-radius: 12px;
}
.stat-callout__item { text-align: left; }
.stat-callout__number {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-callout__label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}

blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-style: italic;
  font-size: 17px;
  color: var(--text-body);
}
blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600;
}

.tldr {
  margin: 0 0 36px;
  padding: 20px 22px;
  background: #fff7ed;
  border: 1px solid rgba(240, 120, 0, 0.25);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-body);
}
.tldr strong { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }

/* Article table */
.article-table {
  width: 100%;
  margin: 32px 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.55;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.article-table thead th {
  background: linear-gradient(180deg, #fff7ed 0%, #ffe8cc 100%);
  color: var(--text-strong, #0f172a);
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid rgba(240, 120, 0, 0.35);
  font-size: 14px;
  letter-spacing: 0.2px;
}
.article-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  vertical-align: top;
}
.article-table tbody tr:nth-child(even) td { background: #fafbfc; }
.article-table tbody tr:hover td { background: #fff7ed; transition: background 0.15s ease; }
.article-table tbody tr:last-child td { border-bottom: none; }
.article-table td:first-child { font-weight: 600; color: var(--text-strong, #0f172a); }

/* Wrap table in horizontal scroll on mobile */
.article__content .article-table { display: table; }
@media (max-width: 640px) {
  .article-table { font-size: 14px; display: block; overflow-x: auto; white-space: nowrap; }
  .article-table thead th, .article-table td { padding: 10px 12px; }
}

/* Article FAQ */
.article__faq { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); }
.article__faq h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 22px;
}
.faq-q {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q[open] { border-color: var(--accent); }
.faq-q summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after {
  content: '+';
  font-size: 22px;
  color: var(--accent);
  font-weight: 700;
  margin-left: 16px;
}
.faq-q[open] summary::after { content: '−'; }
.faq-q p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

/* Article CTA */
.article__cta {
  margin: 48px 0 0;
  padding: 36px 32px;
  background: linear-gradient(135deg, var(--bg-dark), #1a0d05);
  border-radius: 16px;
  text-align: center;
  color: #fff;
}
.article__cta h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}
.article__cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 22px;
  font-size: 15px;
}
.article__cta a {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  font-weight: 700;
  border-radius: 30px;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article__cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #fff;
}

/* Related articles */
.related {
  padding: 64px 0;
  background: var(--bg-light);
}
.related h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #050202 100%);
  color: var(--text-light);
  padding: 48px 0 22px;
  text-align: center;
}
.footer__logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  display: inline-block;
  text-decoration: none;
}
.footer__logo span { color: var(--accent); }
.footer__text {
  font-size: 14px;
  color: var(--text-light);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.footer__nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer__nav a {
  color: var(--text-light);
  font-size: 14px;
  text-decoration: none;
}
.footer__copy {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}
.footer__copy span { color: var(--accent); font-weight: 600; }

@media (max-width: 640px) {
  .article { padding: 32px 0 56px; }
  .article__content { font-size: 16px; }
  .article__content > h2 { font-size: 24px; margin: 36px 0 14px; }
  .article__content > h3 { font-size: 19px; margin: 26px 0 10px; }
  .stat-callout { padding: 20px; gap: 14px; }
  .article__cta { padding: 28px 22px; }
}
