/* ══════════════════════════════════════
   BLOG ARTICLE - Shared Styles
   ══════════════════════════════════════ */

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gold-gradient);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 740px;
  margin: 0 auto;
  padding: 6.5rem 2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--white-muted);
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb a:hover { opacity: 0.7; }

.breadcrumb .sep {
  color: var(--white-muted);
  opacity: 0.4;
}

/* ── Article Header ── */
.article-header {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}

.article-tag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.article-subtitle {
  font-size: 1.15rem;
  color: var(--white);
  opacity: 0.7;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 640px;
}

/* ── Author Bar ── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  margin-bottom: 3rem;
}

.article-meta-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.4);
  object-fit: cover;
}

.article-meta-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.article-meta-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.article-meta-name a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.article-meta-name a:hover { color: var(--gold); }

.article-meta-details {
  font-size: 0.75rem;
  color: var(--white-muted);
}

/* ── Article Body ── */
.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 3rem 0 1.25rem;
  line-height: 1.2;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin: 2.25rem 0 1rem;
  line-height: 1.25;
}

.article-body p {
  font-size: 1.05rem;
  color: var(--white);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201,168,76,0.3);
  transition: text-decoration-color 0.3s;
}

.article-body a:hover {
  text-decoration-color: var(--gold);
}

/* Lists */
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-body li {
  font-size: 1.05rem;
  color: var(--white);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

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

/* ── Blockquotes ── */
.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: rgba(201,168,76,0.04);
  border-radius: 0 12px 12px 0;
}

.article-body blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 0;
}

/* ── Callout Box ── */
.callout-box {
  background: rgba(201,168,76,0.05);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 2.5rem 0;
}

.callout-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1rem;
}

.callout-box p {
  margin-bottom: 0.75rem;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* ── Comparison Table ── */
.article-table-wrap {
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.article-table thead th {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 1.25rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gold-border);
  background: rgba(201,168,76,0.06);
}

.article-table tbody td {
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--white);
  opacity: 0.85;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  line-height: 1.6;
}

.article-table tbody tr:last-child td {
  border-bottom: none;
}

.article-table tbody tr:hover {
  background: rgba(201,168,76,0.03);
}

/* ── Stat Row ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-card-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-card-label {
  font-size: 0.8rem;
  color: var(--white-muted);
}

/* ── Answer Capsule (GEO) ── */
.answer-capsule {
  background: rgba(201,168,76,0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
  font-size: 1.05rem;
  color: var(--white);
  opacity: 0.9;
  line-height: 1.75;
}

/* ── Definition Box (GEO) ── */
.definition-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.definition-box dt {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.definition-box dd {
  font-size: 1rem;
  color: var(--white);
  opacity: 0.85;
  line-height: 1.75;
  margin: 0;
}

/* ── Last Updated (GEO) ── */
.article-updated {
  font-size: 0.75rem;
  color: var(--white-muted);
  margin-top: 0.25rem;
}

/* ── Divider ── */
.article-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-border) 50%, transparent 100%);
  margin: 3rem 0;
}

/* ── CTA Box ── */
.article-cta {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.75rem;
}

.article-cta p {
  color: var(--white-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta .btn-gold {
  background: var(--gold);
  color: #050810;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-spring);
}

.article-cta .btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.25);
}

/* ── Related Articles ── */
.related-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.related-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  transition: all 0.5s var(--ease-spring);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-card:hover {
  border-color: rgba(201,168,76,0.25);
  box-shadow: 0 8px 40px rgba(201,168,76,0.08);
  transform: translateY(-3px);
}

.related-card-tag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
}

.related-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.related-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
  transition: gap 0.3s var(--ease-spring);
}

.related-card:hover .related-card-link {
  gap: 0.65rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .breadcrumb { padding-top: 5rem; }
  .article-header { padding: 1.5rem 1.25rem 0; }
  .article-title { font-size: 1.75rem; }
  .article-subtitle { font-size: 1rem; }
  .article-body { padding: 0 1.25rem 3rem; }
  .article-body h2 { font-size: 1.4rem; margin-top: 2.25rem; }
  .article-body h3 { font-size: 1.15rem; }
  .article-body p,
  .article-body li { font-size: 1rem; }
  .article-cta { padding: 2rem 1.5rem; }
  .article-cta h3 { font-size: 1.25rem; }
  .related-section { padding: 0 1.25rem 4rem; }
  .related-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .article-meta { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .article-title { font-size: 1.5rem; }
  .article-body { padding: 0 1rem 2.5rem; }
  .breadcrumb { padding: 4.5rem 1rem 0; font-size: 0.7rem; }
}

/* ── Blog Email Capture ── */
.blog-capture {
  margin: 3rem 0;
  padding: 2rem 2rem 2.2rem;
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 1rem;
  text-align: center;
}
.blog-capture-title {
  font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f0ece4;
  margin-bottom: 8px;
}
.blog-capture-sub {
  font-size: 0.9rem;
  color: #b0a992;
  margin-bottom: 20px;
  line-height: 1.5;
}
.blog-capture-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.blog-capture-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  background: #050810;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 100px;
  color: #f0ece4;
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.blog-capture-form input[type="email"]:focus {
  outline: none;
  border-color: #c9a84c;
}
.blog-capture-form input[type="email"]::placeholder {
  color: rgba(176, 169, 146, 0.4);
}
.blog-capture-form button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #c9a84c, #e8c86e);
  color: #0a0f1e;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.blog-capture-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.2);
}
.blog-capture-success {
  display: none;
  color: #c9a84c;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 12px;
}
.blog-capture-success.visible { display: block; }
@media (max-width: 520px) {
  .blog-capture-form { flex-direction: column; }
  .blog-capture { padding: 1.5rem 1.2rem; }
}

/* ── Contextual Case Study CTA ── */
.blog-case-study-cta {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid #c9a84c;
  background: rgba(201, 168, 76, 0.04);
  border-radius: 0 12px 12px 0;
}
.blog-case-study-cta p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #f0ece4;
}
.blog-case-study-cta a {
  color: #c9a84c;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}
.blog-case-study-cta a:hover {
  border-bottom-color: #c9a84c;
}
@media (max-width: 520px) {
  .blog-case-study-cta { padding: 1.2rem 1.2rem; }
}
