/* Ortak tasarım değişkenleri: tüm sayfalar bu dosyayı sayfa stilinden önce yükler. */
:root {
    color-scheme: dark;

    /* Yüzeyler: projektör altındaki saha gecesi, yeşile çalan kömür tonları */
    --bg: #0f1513;
    --surface: #151c19;
    --surface-2: #1b2420;
    --surface-3: #222d28;
    --line: #26312c;
    --line-strong: #34423b;

    --text: #e4e8e5;
    --text-soft: #b7c0ba;
    --muted: #869189;

    /* Arayüz vurgusu: skor tabelası altını (etkin filtre, odak, geçerli sayfa) */
    --accent: #e8b84a;
    --accent-soft: rgba(232, 184, 74, 0.14);

    /* Sonuç anlamları */
    --over: #4fa97c;
    --over-soft: rgba(79, 169, 124, 0.16);
    --under: #cf6a45;
    --under-soft: rgba(207, 106, 69, 0.16);
    --home: #5b92cf;
    --home-soft: rgba(91, 146, 207, 0.16);
    --draw: #8a948e;
    --draw-soft: rgba(138, 148, 142, 0.18);
    --away: #b07cc6;
    --away-soft: rgba(176, 124, 198, 0.16);
    --danger: #e0705a;

    --font: 'IBM Plex Sans Condensed', 'Arial Narrow', system-ui, sans-serif;
    --radius-sm: 3px;
    --radius: 6px;

    --z-pin: 2;
    --z-head: 3;
    --z-head-pin: 4;
    --z-bar: 10;
    --z-menu: 15;
    --z-toast: 20;
}

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

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
    color: inherit;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
    background: var(--surface-3);
    border-color: var(--muted);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-quiet {
    background: transparent;
    border-color: transparent;
    color: var(--text-soft);
}

.btn-quiet:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1406;
    font-weight: 600;
}

.btn-primary:hover {
    background: #f0c75f;
    border-color: #f0c75f;
}

.btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
