/* ============================================================
   Ballin' Cards — Broadcast Theme
   Shared CSS for all shell pages (landing, login, profile, etc.)
   Served at /static/css/theme.css via existing /static mount.
   ============================================================ */

/* --- Custom Properties --- */
:root {
    /* Base palette */
    --bg-deep: #0a0e1a;
    --bg-surface: #111827;
    --bg-elevated: #1a2332;
    --bg-nav: #0f1428;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f5;
    --text-muted: #8b9dc3;
    --text-faint: rgba(255, 255, 255, 0.45);

    /* Signature colors */
    --sig-quest: #34d399;
    --sig-qp: #22d3ee;
    --sig-duels: #ef4444;
    --sig-cards: #ffb380;
    --sig-default: #d4a028;

    /* Active signature (default amber, overridden by data-mode) */
    --sig: var(--sig-default);

    /* Fonts — same variable names as Quest's base.css so var() references
       work on pages that switch from base.css to theme.css */
    --font-display: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Rarity colors (shared across modes) */
    --rarity-common: #b0b0b0;
    --rarity-uncommon: #4ade80;
    --rarity-rare: #60a5fa;
    --rarity-epic: #c084fc;
    --rarity-legendary: #fbbf24;
}

/* Mode-specific signature color overrides */
[data-mode="quest"] { --sig: var(--sig-quest); }
[data-mode="quickplay"] { --sig: var(--sig-qp); }
[data-mode="duels"] { --sig: var(--sig-duels); }
[data-mode="cards"] { --sig: var(--sig-cards); }

/* --- Base Body --- */
body.theme-broadcast {
    margin: 0;
    padding: 0;
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
.display-heading {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* --- Panels --- */
.panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
}
.panel--accent {
    border-top: 3px solid var(--sig);
}

/* --- Buttons --- */
.btn-theme-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #000;
    background: var(--sig);
}
.btn-theme-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}
.btn-theme-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    border: 1.5px solid var(--sig);
    background: transparent;
    color: var(--sig);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-theme-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Form Inputs --- */
.input-theme {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: #1a1f36;
    border: 1.5px solid #2a3050;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.input-theme:focus {
    border-color: var(--sig);
    box-shadow: 0 0 0 3px rgba(212, 160, 40, 0.15);
}
.input-theme::placeholder {
    color: var(--text-faint);
    font-style: italic;
}

/* --- Utility --- */
.text-sig { color: var(--sig); }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
