/* ==========================================================================
   Shared base theme for the personal static-app monorepo.
   Dark, editorial look (serif display type + monospace data + sans body)
   originally designed for the election tracker. Import this first, then
   layer app-specific styles on top:

     <link rel="stylesheet" href="../../shared/base.css">
     <link rel="stylesheet" href="styles.css">
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Mulish:wght@400;500;600;700&family=Fira+Code:wght@400;500;600&display=swap');

:root {
    --bg: #0d0809;
    --bg-card: #150e0f;
    --bg-elevated: #1c1415;
    --border: #2a1a1b;
    --border-bright: #3d2829;
    --accent: #c2747a;
    --accent-dim: rgba(194, 116, 122, 0.12);
    --blue: #8fb4d4;
    --blue-dim: rgba(143, 180, 212, 0.12);
    --text: #e8dede;
    --text-bright: #f5eeee;
    --text-muted: #8a6567;
    --text-label: #9e8283;
    --gold: #d4a96a;
    --gold-dim: rgba(212, 169, 106, 0.12);
    --silver: #9a8a8b;
    --green: #7dbfa0;
    --green-dim: rgba(16, 185, 129, 0.1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Mulish', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(194, 116, 122, 0.07), transparent),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(212, 169, 106, 0.04), transparent);
}

a { color: var(--blue); }

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

/* ── Header ── */
header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-bright);
}

h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(26px, 5vw, 40px);
    color: var(--text-bright);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--accent-dim);
    border: 1px solid rgba(230, 57, 70, 0.3);
    padding: 5px 12px 5px 9px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--accent);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.info-box {
    background: rgba(194, 116, 122, 0.06);
    border: 1px solid rgba(194, 116, 122, 0.15);
    border-left: 3px solid var(--accent);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: rgba(232, 180, 182, 0.8);
    margin-bottom: 24px;
}

/* ── Sections ── */
.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Generic card ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.card:hover {
    border-color: var(--border-bright);
}

.card:last-child {
    margin-bottom: 0;
}

.card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--text-bright);
    letter-spacing: 0.2px;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}

.meta {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── Generic badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: var(--font-display);
    color: #fff;
}

/* ── Buttons / links ── */
.btn, .link-button {
    display: inline-block;
    background: var(--bg-elevated);
    color: var(--text-label);
    border: 1px solid var(--border-bright);
    padding: 7px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.15s;
}

.btn:hover, .link-button:hover {
    border-color: var(--blue);
    color: var(--text-bright);
    background: var(--blue-dim);
}

/* ── Loading / Error ── */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

.error {
    background: var(--accent-dim);
    border: 1px solid rgba(230, 57, 70, 0.2);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .container { padding: 16px 12px 40px; }
    .card { padding: 14px 14px; }
}
