/* ============================================================
   content.css — Blog posts + Guide articles
   Shared by: /blog/*.html, /guides/*.html (article pages only,
   NOT the /guides/index.html or /blog/index.html hub pages)
   ============================================================ */

/* ============ ARTICLE HERO ============ */
.article-hero {
    padding: 8rem 0 3rem;
    position: relative;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(184, 148, 28, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.article-header {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

/* ============ ARTICLE CONTENT ============ */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.article-content h2 {
    font-size: 1.75rem;
    margin: 3rem 0 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.article-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.article-content h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0 2rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: var(--gold-light);
}

.article-content a {
    border-bottom: 1px solid transparent;
}

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

/* ============ CALLOUT BOXES ============ */
.highlight-box {
    background: var(--card);
    border-left: 4px solid var(--gold);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.highlight-box p {
    margin: 0;
    font-style: italic;
    color: var(--text);
}

.problem-box {
    background: var(--card);
    border-left: 4px solid var(--danger);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

.problem-box strong { color: var(--danger); }
.problem-box p { margin: 0.5rem 0 0; color: var(--text-muted); }

.tip-box {
    background: var(--card);
    border-left: 4px solid var(--success);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

.tip-box p { margin: 0.5rem 0 0; color: var(--text-muted); }
.tip-box strong { color: var(--success); }

.warning-box {
    background: var(--card);
    border-left: 4px solid var(--danger);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

.warning-box p { margin: 0.5rem 0 0; color: var(--text-muted); }
.warning-box strong { color: var(--danger); }

.callout {
    background: var(--card);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.callout p { margin: 0; font-style: italic; }

.quote-box {
    background: var(--card);
    border-left: 4px solid var(--gold);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.quote-box p {
    margin: 0;
    font-style: italic;
    color: var(--text);
    font-size: 1.1rem;
}

.quote-author {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: normal;
}

/* ============ COMPARISON MINI ============ */
.comparison-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.comparison-mini > div {
    background: var(--card);
    border-radius: 12px;
    padding: 1.25rem;
}

.comparison-mini .bad  { border-top: 3px solid var(--danger); }
.comparison-mini .good { border-top: 3px solid var(--success); }

.comparison-mini h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.comparison-mini .bad h4  { color: var(--danger); }
.comparison-mini .good h4 { color: var(--success); }

.comparison-mini ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.comparison-mini li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* ============ IN-ARTICLE CTAS ============ */
.article-cta,
.cta-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.article-cta h3,
.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.article-cta p,
.cta-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* ============ TABLES (content variant) ============ */
.comparison-table,
.data-table,
.earnings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td,
.data-table th,
.data-table td,
.earnings-table th,
.earnings-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th,
.data-table th,
.earnings-table th {
    background: var(--muted);
    color: var(--gold);
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.comparison-table tr:last-child td,
.data-table tr:last-child td,
.earnings-table tr:last-child td {
    border-bottom: none;
}

/* ============ STATS GRID ============ */
.stat-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    display: block;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
}

/* ============ CREATOR CARDS ============ */
.creator-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.creator-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    flex-shrink: 0;
}

.creator-info h3 { margin-bottom: 0.5rem; }
.creator-info p  { color: var(--text-muted); margin-bottom: 1rem; }

.creator-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.creator-links a {
    background: var(--muted);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* ============ TOOL CARDS ============ */
.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.tool-card.featured { border-color: var(--gold); }
.tool-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.tool-card p  { color: var(--text-muted); margin-bottom: 1rem; }

/* ============ FURTHER READING ============ */
.further-reading {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 3rem;
}

.further-reading h2 {
    font-size: 1.4rem;
    margin-top: 0 !important;
    margin-bottom: 0.75rem;
    border-top: none !important;
    padding-top: 0 !important;
}

.further-reading ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.further-reading li a {
    color: var(--gold);
    font-weight: 500;
}

/* ============ TABLE OF CONTENTS ============ */
.toc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.toc h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.toc li:last-child { border-bottom: none; }

.toc a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.toc a:hover { color: var(--gold); }

/* ============ SECTION HEADER ============ */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

/* ============ PLATFORM BADGE ============ */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 148, 28, 0.15);
    border: 1px solid rgba(184, 148, 28, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
    width: fit-content;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .article-hero { padding: 6rem 0 2rem; }
    .article-header h1 { font-size: 1.75rem; }
    .article-meta { flex-direction: column; gap: 0.5rem; }
    .article-content h2 { font-size: 1.4rem; }
    .comparison-mini { grid-template-columns: 1fr; }
    .comparison-table,
    .data-table,
    .earnings-table { font-size: 0.85rem; }
    .comparison-table th,
    .comparison-table td,
    .data-table th,
    .data-table td,
    .earnings-table th,
    .earnings-table td { padding: 0.75rem 0.5rem; }
    .stat-grid,
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .creator-card { flex-direction: column; text-align: center; }
    .creator-avatar { margin: 0 auto; }
    .article-cta,
    .cta-box { padding: 2rem 1.5rem; }
}
