/* Ove's Daily News - Shared Stylesheet */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-nav: #16213e;
    --bg-topic: #0f3460;
    --accent: #4fc3f7;
    --accent-hover: #29b6f6;
    --text-primary: #e0e0e0;
    --text-secondary: #aab;
    --text-muted: #778;
    --border: #2a2a4a;
    --link: #4fc3f7;
    --success: #2e7d32;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }

.site-header {
    background: var(--bg-nav);
    border-bottom: 2px solid var(--accent);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-header h1 {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
}
.site-header nav { margin-left: auto; display: flex; gap: 16px; }
.site-header nav a { color: var(--accent); font-weight: 500; font-size: 14px; }

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

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-secondary); }

.digest-meta {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
}
.digest-meta h2 {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 8px;
}
.digest-meta .stats {
    color: var(--text-secondary);
    font-size: 14px;
}

.overview {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.7;
}

.topic-section { margin-bottom: 28px; }
.topic-header {
    background: var(--bg-topic);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topic-header .count {
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 700;
}
.topic-summary {
    background: var(--bg-card);
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.article-card {
    background: var(--bg-card);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}
.article-card:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}
.article-card .title a {
    font-weight: 600;
    font-size: 15px;
}
.article-card .source-tag {
    display: inline-block;
    background: var(--bg-topic);
    color: var(--text-secondary);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
}
.article-card .summary {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.5;
}

.footer {
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border);
    margin-top: 32px;
}

/* Archive / Index pages */
.archive-list { list-style: none; }
.archive-list li {
    background: var(--bg-card);
    margin-bottom: 8px;
    border-radius: var(--radius);
}
.archive-list a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
}
.archive-list .meta {
    color: var(--text-muted);
    font-size: 13px;
    float: right;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.month-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    text-align: center;
    padding: 16px;
    transition: transform 0.15s;
}
.month-card:hover { transform: translateY(-2px); }
.month-card a {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
}
.month-card .day-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 600px) {
    .site-header { flex-direction: column; gap: 8px; }
    .site-header nav { margin-left: 0; }
    .container { padding: 16px 12px; }
    .year-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
