/* ═══════════════════════════════════════════════════════════════════
   Rolgi SStats — светлая тема «Ivory & Gold» (2026-09-08)
   Единый оверрайд поверх theme.css: тёплый бумажный фон, тёмный текст,
   приглушённый изумруд + шампань-золото. Шапка сайта и оверлей модалок
   остаются тёмными (бренд), светлеет только контент.
   Подключение: ПОСЛЕ всех остальных CSS (в конце <head>).
   Откат: убрать <link> со страниц.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* ── Палитра (светлая) ── */
    --primary-color: #059669;      /* изумруд, затемнён для читаемости */
    --primary-dark: #047857;
    --primary-ink: #06281c;        /* текст на изумрудных кнопках */
    --secondary-color: #0b6bcb;    /* ссылки и акценты — читаемый синий */
    --accent-color: #6d28d9;
    --gold: #8a6d2f;               /* тёмное шампань-золото для текста */
    --gold-soft: rgba(138, 109, 47, 0.12);

    --bg-color: #f3f0e8;           /* тёплая бумага — фон страницы */
    --bg-soft: #ffffff;            /* модалки */
    --card-bg: #ffffff;            /* карточки */
    --card-bg-2: #f8f6ef;          /* вложенные */
    --overlay-bg: rgba(23, 32, 47, 0.55);

    --text-color: #17202f;
    --text-muted: #4a5568;
    --text-faint: #8b95ab;

    --border-color: #e0d9c2;       /* тёплая рамка */
    --border-soft: #e9e4d2;

    --success-color: #047857;
    --danger-color: #b42323;
    --warning-color: #b45309;
    --info-color: #0b6bcb;
    --live-color: #e11d48;

    --odds-home: #0369a1;
    --odds-draw: #64748b;
    --odds-away: #c2410c;
    --goal-color: #047857;
    --card-yellow: #b45309;
    --card-red: #b42323;

    --shadow-sm: 0 1px 2px rgba(60, 50, 20, 0.07), 0 2px 8px rgba(60, 50, 20, 0.06);
    --shadow-md: 0 2px 4px rgba(60, 50, 20, 0.08), 0 8px 24px rgba(60, 50, 20, 0.08);
    --shadow-lg: 0 4px 8px rgba(60, 50, 20, 0.10), 0 16px 48px rgba(60, 50, 20, 0.10);
    --glow-primary: 0 0 0 1px rgba(5, 150, 105, 0.25), 0 4px 16px rgba(5, 150, 105, 0.12);
}

html { color-scheme: light; }

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* ─── Шапка остаётся тёмной: фиксируем светлый текст ─── */
.r-header,
.r-header .r-nav a,
.r-header .r-logo,
.r-header .r-logo span {
    color: #eceff4;
}

/* ─── Карточки и панели ─── */
.r-card,
.filters-bar,
.stat-card,
.preset-card {
    background: #fffdf8 !important;
    border-color: #e8e2cf !important;
}
.sidebar {
    background: #fffdf8 !important;
    border-color: #e8e2cf !important;
}
.league-count { background: #f4f1e6 !important; }
.sidebar-item { color: var(--text-color); }

/* ─── Формы ─── */
input, select, textarea,
.r-search-row input,
.r-search-row select,
.filter-select,
.date-picker,
.search-box input {
    background: #fffdf8 !important;
    border-color: #e0d6b8 !important;
    color: #17202f !important;
}
input:focus, select:focus, textarea:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}
input::placeholder { color: #8f96a3; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }

/* ─── Таблицы ─── */
th {
    background: #f4f1e6 !important;
    color: #4a5568 !important;
}
td { border-color: #e9e4d2 !important; }
tr:hover td { background: rgba(5, 150, 105, 0.05) !important; }

/* ─── Табы ─── */
.modal-tab { color: var(--text-muted); }

/* ─── Матч-строки и списки ─── */
.r-match-score { background: #eef1f7 !important; color: #17202f; }
.r-list-item { color: var(--text-color); }

/* ─── Модалки: светлое окно, тёмный скрам ─── */
.r-modal { background: #fffdf8 !important; border-color: #e8e2cf !important; }
.r-modal-title { color: #101828; }
.r-modal-close { color: #4a5568; }

/* ─── Шиммер загрузки ─── */
.r-skeleton {
    background: linear-gradient(90deg, #e9e4d2 0%, #f6f2e6 50%, #e9e4d2 100%) !important;
}
.conf-bar { background: #e9e4d2 !important; }

/* ─── Донат/прогресс и мелочь ─── */
.date-nav button { color: var(--text-color); }
.g-stat-bar, .anz-forecast-conf-bar, .pred-prob-track, .ng-curve-track {
    background: #e9e4d2;
}
.odd-tag { background: #eef1f7; color: #4a5568; }
.profit-table th, .profit-table thead th,
.form-table thead th { background: #f4f1e6; color: #4a5568; }
.profit-table th, .profit-table td,
.form-table th, .form-table td { border-bottom-color: #e9e4d2; }
