/* ============================================================
   DFAMILY TRADING BLOG — blog.css
   Builds on styles.css variables (gold/black theme).
   Scope: .blog-* and .article-* classes only.
   ============================================================ */


/* ---------- Blog landing ---------- */
.blog-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(212,168,67,0.08) 0%, transparent 70%);
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.blog-hero-sub {
  color: #B8B0A0;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-list {
  padding: 40px 0 100px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient-h);
  opacity: 0;
  transition: var(--transition);
}
.blog-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.blog-card:hover::before { opacity: 1; }
.blog-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-bright);
}
.blog-card p {
  color: #B8B0A0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ---------- Article layout ---------- */
.article-wrap {
  padding: 140px 0 100px;
}
.article-head {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}
.article-head .blog-card-tag { margin-bottom: 22px; }
.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-bright);
  margin-bottom: 18px;
}
.article-head .article-sub {
  color: #B8B0A0;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #D8D2C4;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 56px 0 18px;
  line-height: 1.35;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 36px 0 12px;
}
.article-body p { margin-bottom: 20px; }
.article-body a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(212,168,67,0.35);
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}
.article-body a:hover {
  color: var(--gold-bright);
  text-decoration-color: var(--gold-bright);
}
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--gold); }
.article-body strong { color: var(--text-bright); }

/* Quick-answer box */
.article-tldr {
  background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(212,168,67,0.03));
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin: 32px 0 40px;
}
.article-tldr .tldr-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* Comparison table */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
/* Give the table more room on wide screens so details fit */
@media (min-width: 1100px) {
  .article-table-wrap {
    max-width: 960px;
    margin-left: -90px;
    margin-right: -90px;
  }
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
  min-width: 640px;
}
.article-body th {
  background: rgba(212,168,67,0.10);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-mid);
  white-space: nowrap;
}
.article-body td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(212,168,67,0.07);
  color: #D8D2C4;
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover { background: rgba(212,168,67,0.04); }
.article-body tr.row-dfamily {
  background: rgba(212,168,67,0.07);
}
.article-body tr.row-dfamily td {
  color: var(--gold-light);
  font-weight: 500;
}
.cell-win { color: var(--green); font-weight: 600; }
.cell-no { color: var(--text-muted); }

/* Verdict card */
.article-verdict {
  background: var(--bg-card2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
}
.article-verdict h3 {
  margin-top: 0;
  color: var(--gold-light);
}

/* CTA band */
.article-cta {
  background: linear-gradient(135deg, rgba(212,168,67,0.12), rgba(212,168,67,0.04));
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin: 48px 0 8px;
  text-align: center;
}
.article-cta h3 {
  margin: 0 0 10px;
  color: var(--text-bright);
}
.article-cta p {
  color: #B8B0A0;
  margin-bottom: 22px;
  font-size: 0.98rem;
}
.article-cta .btn { margin: 0 8px 8px; }

/* Back link + related */
.article-back {
  display: block;
  max-width: 780px;
  margin: 0 auto 24px;
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.article-back:hover { color: var(--gold-bright); }

.article-disclaimer {
  max-width: 780px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Email capture band */
.blog-capture {
  padding: 60px 0 80px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(212,168,67,0.07) 0%, transparent 70%);
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .blog-hero { padding: 120px 0 40px; }
  .article-wrap { padding: 110px 0 70px; }
  .article-body { font-size: 1rem; }
  .article-verdict, .article-cta { padding: 24px 20px; }
}
