/* ===========================================
   Bitcoin ATM News — Article Stylesheet
   Shared across all /news/ editorial articles
   =========================================== */

:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-card: #1c1c1f;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --bitcoin-orange: #f7931a;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

/* --- Header / Nav --- */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}
.header-content {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #e8850e 100%);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px; color: white;
}
.logo-text { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.logo-text span { color: var(--bitcoin-orange); }
.nav-links { display: flex; gap: 24px; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text-primary); }
main { padding-top: 64px; }

/* --- Magazine-Cover Hero --- */
.article-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    max-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.article-hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.article-hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 11, 0) 0%,
        rgba(10, 10, 11, 0.15) 35%,
        rgba(10, 10, 11, 0.8) 70%,
        rgba(10, 10, 11, 1) 100%
    );
    z-index: 2;
}
.article-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 40px;
    width: 100%;
}
.article-category {
    display: inline-block;
    background: rgba(247, 147, 26, 0.25);
    color: var(--bitcoin-orange);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}
.article-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* --- Article Content --- */
.article-content { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
.article-content h2 { font-size: 24px; font-weight: 700; margin: 40px 0 16px 0; color: var(--text-primary); }
.article-content h3 { font-size: 18px; font-weight: 600; margin: 32px 0 12px 0; color: var(--text-primary); }
.article-content p { font-size: 16px; color: var(--text-secondary); margin-bottom: 20px; }
.article-content a { color: var(--bitcoin-orange); text-decoration: none; }
.article-content a:hover { text-decoration: underline; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; color: var(--text-secondary); }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--text-primary); }

/* --- Highlight Box --- */
.highlight-box {
    background: var(--bg-card);
    border-left: 4px solid var(--danger);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}
.highlight-box.warning { border-left-color: var(--warning); }
.highlight-box.info { border-left-color: #3b82f6; }
.highlight-box.success { border-left-color: var(--success); }
.highlight-box.danger { border-left-color: var(--danger); }
.highlight-box.insider { border-left-color: #8b5cf6; background: rgba(139, 92, 246, 0.05); }
.highlight-box p { margin-bottom: 0; }
.highlight-box strong { color: var(--text-primary); }
.highlight-box ul { margin-top: 12px; margin-bottom: 0; }

/* --- Stats Grid --- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border-medium);
    border-radius: 8px; padding: 20px; text-align: center;
}
.stat-card.danger { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.05); }
.stat-card.warning { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.05); }
.stat-card.success { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.05); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.success .stat-value { color: var(--success); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* --- Case Info Box --- */
.case-info {
    background: var(--bg-tertiary); border: 1px solid var(--border-medium);
    padding: 20px 24px; margin: 24px 0; border-radius: 8px;
    font-family: 'JetBrains Mono', monospace; font-size: 14px;
}
.case-info p { margin-bottom: 8px; color: var(--text-secondary); }
.case-info p:last-child { margin-bottom: 0; }

/* --- Case Details (hand-crafted articles) --- */
.case-details {
    background: var(--bg-tertiary); border: 1px solid var(--border-medium);
    border-radius: 8px; padding: 24px; margin: 24px 0;
}
.case-details h3 { margin-top: 0; margin-bottom: 16px; font-size: 16px; color: var(--text-primary); }
.case-detail-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid var(--border-subtle); font-size: 14px;
}
.case-detail-row:last-child { border-bottom: none; }
.case-detail-label { color: var(--text-muted); }
.case-detail-value { color: var(--text-primary); font-family: 'JetBrains Mono', monospace; }

/* --- Victim Story --- */
.victim-story {
    background: var(--bg-tertiary); border: 1px solid var(--border-medium);
    padding: 24px; margin: 24px 0; border-radius: 8px;
}
.victim-story-quote { font-style: italic; color: var(--text-secondary); font-size: 15px; line-height: 1.8; }
.victim-story-attribution { margin-top: 12px; font-size: 13px; color: var(--text-muted); }

/* --- Counts List --- */
.counts-list {
    background: var(--bg-card); border: 1px solid var(--border-medium);
    border-radius: 8px; padding: 24px; margin: 24px 0;
}
.counts-list h4 { color: var(--text-primary); margin-bottom: 16px; font-size: 16px; }
.count-item {
    display: flex; gap: 12px; margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.count-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.count-number {
    background: var(--warning); color: white; width: 24px; height: 24px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.count-content { flex: 1; }
.count-title { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.count-desc { font-size: 14px; color: var(--text-secondary); }

/* --- Timeline (generated articles) --- */
.timeline {
    background: var(--bg-card); border: 1px solid var(--border-medium);
    border-radius: 8px; padding: 24px; margin: 24px 0;
}
.timeline h4 { color: var(--text-primary); margin-bottom: 16px; font-size: 16px; }
.timeline-item {
    display: flex; gap: 16px; margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.timeline-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.timeline-date {
    font-family: 'JetBrains Mono', monospace; font-size: 13px;
    color: var(--text-muted); white-space: nowrap; min-width: 80px;
}
.timeline-content { flex: 1; font-size: 14px; color: var(--text-secondary); }

/* --- Timeline (hand-crafted articles — vertical line style) --- */
.timeline-vertical {
    margin: 24px 0; padding-left: 24px; border-left: 2px solid var(--border-medium);
}
.timeline-vertical .timeline-item {
    position: relative; padding-bottom: 24px;
    display: block; gap: 0; margin-bottom: 0; border-bottom: none;
}
.timeline-vertical .timeline-item::before {
    content: ''; position: absolute; left: -29px; top: 6px;
    width: 10px; height: 10px; background: var(--bitcoin-orange); border-radius: 50%;
}
.timeline-vertical .timeline-date { margin-bottom: 4px; min-width: auto; }
.timeline-vertical .timeline-content { font-size: 15px; }

/* --- Verification Badge (insider articles) --- */
.verification-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 4px;
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em;
}
.verification-badge.unverified {
    background: rgba(245, 158, 11, 0.15); color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.verification-badge.verified {
    background: rgba(34, 197, 94, 0.15); color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* --- Source Attribution Box (insider articles) --- */
.source-attribution {
    background: var(--bg-tertiary); border: 1px solid var(--border-medium);
    padding: 20px 24px; margin: 24px 0; border-radius: 8px;
}
.source-attribution-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.source-attribution-icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(139, 92, 246, 0.15); color: #8b5cf6;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.source-attribution-name { font-weight: 600; color: var(--text-primary); }
.source-attribution-title { font-size: 13px; color: var(--text-secondary); }
.source-attribution-dates { font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.source-attribution-platform {
    font-size: 12px; color: var(--text-muted); margin-top: 8px;
    display: flex; align-items: center; gap: 4px;
}

/* --- Article Disclaimer --- */
.article-disclaimer {
    max-width: 800px; margin: 0 auto; padding: 0 24px 32px;
    font-size: 13px; color: var(--text-muted); font-style: italic;
    border-top: 1px solid var(--border-subtle); padding-top: 24px;
}
.disclaimer {
    background: var(--bg-tertiary); border: 1px solid var(--border-medium);
    padding: 20px 24px; margin: 40px 0; border-radius: 8px;
    font-size: 14px; color: var(--text-muted);
}

/* --- Back Links --- */
.back-links {
    max-width: 800px; margin: 0 auto; padding: 0 24px 48px;
    display: flex; gap: 24px; flex-wrap: wrap;
}
.back-link {
    color: var(--bitcoin-orange); text-decoration: none; font-size: 14px;
    display: flex; align-items: center; gap: 6px;
}
.back-link:hover { text-decoration: underline; }

/* --- Breadcrumbs --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover {
    color: var(--bitcoin-orange);
}
.breadcrumb .breadcrumb-separator {
    color: var(--text-muted);
    font-size: 11px;
}
.breadcrumb .breadcrumb-current {
    color: var(--text-secondary);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Related Articles --- */
.related-articles {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 16px;
}
.related-articles h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-article-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.related-article-card:hover {
    border-color: var(--bitcoin-orange);
    transform: translateY(-2px);
}
.related-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
}
.related-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Footer --- */
footer {
    background: var(--bg-secondary); border-top: 1px solid var(--border-subtle);
    padding: 32px 24px; text-align: center; color: var(--text-muted); font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .article-hero { min-height: 400px; }
    .article-title { font-size: 28px; }
    .stats-grid { grid-template-columns: 1fr; }
    .back-links { flex-direction: column; gap: 16px; }
    .nav-links { display: none; }
    .case-detail-row { flex-direction: column; gap: 4px; }
    .related-articles-grid { grid-template-columns: 1fr; }
    .breadcrumb-current { max-width: 180px; }
}

@media (max-width: 480px) {
    .article-hero { min-height: 350px; }
    .article-title { font-size: 24px; }
    .article-hero-content { padding: 32px 16px 28px; }
}
