/* ==========================================================================
   Görünüm: Saha
   Çim saha estetiği: biçilmiş çim şeritli koyu yeşil kenar çubuğu, tebeşir çizgisi
   incelikte kenarlıklar, skor tabelası gibi koyu başlıklı ve tabular rakamlı tablolar,
   sarı kart (amber) vurguları. Koyu mod "gece maçı": projektör altında koyu çim.
   <html data-ui="pitch" data-bs-theme="light|dark">
   ========================================================================== */

html[data-ui="pitch"] {
    --font-sans: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;

    --surface-0: #f4f1e8;          /* tebeşir kâğıdı */
    --surface-1: #ffffff;
    --surface-2: #eef0e4;
    --surface-3: #e3e8d6;
    --surface-0-rgb: 244, 241, 232;
    --surface-1-rgb: 255, 255, 255;
    --surface-2-rgb: 238, 240, 228;
    --input-bg: #ffffff;
    --sidebar-bg: #14532d;

    --text: #14231a;
    --text-rgb: 20, 35, 26;
    --text-2: #4a5a4f;
    --text-3: #66756a;

    --border: #dcdfcf;
    --border-strong: #b9c2a8;
    --pop: #f5b301;                /* sarı kart */
    --pop-text: #1c1500;

    --accent: #15803d;
    --accent-rgb: 21, 128, 61;
    --accent-strong: #166534;
    --accent-soft: rgba(21, 128, 61, 0.11);
    --accent-text: #166534;
    --accent-gradient: linear-gradient(135deg, #15803d 0%, #1f9a4f 100%);

    --success: #15803d; --success-soft: rgba(21, 128, 61, 0.12);
    --warning: #a16207; --warning-soft: rgba(245, 179, 1, 0.2);
    --danger: #c62828;  --danger-soft: rgba(198, 40, 40, 0.1);
    --info: #0b6fa8;    --info-soft: rgba(11, 111, 168, 0.11);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-sm: 0 1px 0 rgba(20, 83, 45, 0.08);
    --shadow: 0 1px 0 rgba(20, 83, 45, 0.06), 0 10px 24px -16px rgba(20, 83, 45, 0.35);
    --shadow-lg: 0 24px 48px -22px rgba(20, 83, 45, 0.45);
    --ring: 0 0 0 3px rgba(245, 179, 1, 0.55);
}

html[data-ui="pitch"][data-bs-theme="dark"] {
    --surface-0: #0c1511;
    --surface-1: #121e18;
    --surface-2: #172620;
    --surface-3: #1f3128;
    --surface-0-rgb: 12, 21, 17;
    --surface-1-rgb: 18, 30, 24;
    --surface-2-rgb: 23, 38, 32;
    --input-bg: #0f1a15;
    --sidebar-bg: #0a2214;

    --text: #ecf5ee;
    --text-rgb: 236, 245, 238;
    --text-2: #b3c7ba;
    --text-3: #8aa294;

    --border: rgba(190, 230, 205, 0.14);
    --border-strong: rgba(190, 230, 205, 0.28);

    --accent: #15803d;
    --accent-rgb: 21, 128, 61;
    --accent-strong: #166534;
    --accent-soft: rgba(74, 222, 128, 0.14);
    --accent-text: #86efac;
    --accent-gradient: linear-gradient(135deg, #15803d 0%, #1f9a4f 100%);

    --success: #4ade80; --success-soft: rgba(74, 222, 128, 0.15);
    --warning: #fbbf24; --warning-soft: rgba(251, 191, 36, 0.16);
    --danger: #ff7b7b;  --danger-soft: rgba(255, 123, 123, 0.15);
    --info: #6cc3f5;    --info-soft: rgba(108, 195, 245, 0.15);

    --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 12px 28px -16px rgba(0, 0, 0, 0.75);
    --shadow-lg: 0 28px 56px -24px rgba(0, 0, 0, 0.9);
}

/* --- Zemin: çok silik biçilmiş çim şeritleri --- */
html[data-ui="pitch"] body {
    background-image: repeating-linear-gradient(90deg, rgba(21, 128, 61, 0.035) 0, rgba(21, 128, 61, 0.035) 64px, transparent 64px, transparent 128px);
    background-attachment: fixed;
}
html[data-ui="pitch"][data-bs-theme="dark"] body {
    background-image: repeating-linear-gradient(90deg, rgba(74, 222, 128, 0.03) 0, rgba(74, 222, 128, 0.03) 64px, transparent 64px, transparent 128px);
}

/* --- Kenar çubuğu: çim şeritleri + tebeşir orta daire; değişkenler yalnızca menü içinde yeniden tanımlanır --- */
html[data-ui="pitch"] .app-sidebar {
    --text: #f1faf3;
    --text-2: #c5e3cd;
    --text-3: #a9d2b6;
    --border: rgba(255, 255, 255, 0.14);
    --surface-2: rgba(255, 255, 255, 0.07);
    --accent-soft: rgba(255, 255, 255, 0.12);
    --accent-text: #ffffff;
    color: var(--text);
    border-right: 3px solid rgba(255, 255, 255, 0.55);   /* yan çizgi */
    background:
        radial-gradient(circle at 50% 100%, transparent 70px, rgba(255, 255, 255, 0.16) 71px, rgba(255, 255, 255, 0.16) 73px, transparent 74px),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 56px, transparent 56px, transparent 112px),
        var(--sidebar-bg);
}
html[data-ui="pitch"] .app-brand { border-bottom: 1px dashed var(--border); }
html[data-ui="pitch"] .app-brand-logo { background: rgba(255, 255, 255, 0.14); box-shadow: none; }
html[data-ui="pitch"] .app-brand-name { font-weight: 700; letter-spacing: -0.01em; }
html[data-ui="pitch"] .app-brand-tag { color: var(--text-3); }
html[data-ui="pitch"] .app-nav-section { color: var(--text-3); letter-spacing: 0.14em; }
html[data-ui="pitch"] .app-nav-link { position: relative; color: var(--text-2); }
html[data-ui="pitch"] .app-nav-link i { color: var(--text-3); }
html[data-ui="pitch"] .app-nav-link:hover { color: var(--text); }
html[data-ui="pitch"] .app-nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.14); }
html[data-ui="pitch"] .app-nav-link.active i { color: var(--pop); }
html[data-ui="pitch"] .app-nav-link.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--pop);
}

/* --- Üst çubuk: tebeşir çizgisi --- */
html[data-ui="pitch"] .app-topbar { border-bottom: 2px solid var(--border-strong); }
html[data-ui="pitch"] .avatar { background: var(--accent); }

/* --- Tipografi: skor tabelası --- */
html[data-ui="pitch"] .page-header-title,
html[data-ui="pitch"] .home-hero-title,
html[data-ui="pitch"] .auth-card h1,
html[data-ui="pitch"] .modal-title {
    font-weight: 700;
    letter-spacing: -0.025em;
}
html[data-ui="pitch"] .page-header-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.05rem); }
html[data-ui="pitch"] .page-header-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 4px;
    margin-top: 6px;
    border-radius: 2px;
    background: var(--pop);
}
html[data-ui="pitch"] .table,
html[data-ui="pitch"] .standings-table,
html[data-ui="pitch"] .stat-card,
html[data-ui="pitch"] .grid-table { font-variant-numeric: tabular-nums; }
html[data-ui="pitch"] .page-header-icon,
html[data-ui="pitch"] .entity-icon,
html[data-ui="pitch"] .stat-card-icon { background: var(--accent-soft); color: var(--accent-text); border-radius: 10px; }

/* --- Kartlar: tebeşir çizgisi kenar, skor kartı şeridi --- */
html[data-ui="pitch"] .card,
html[data-ui="pitch"] .modern-card,
html[data-ui="pitch"] .stat-card,
html[data-ui="pitch"] .quick-link,
html[data-ui="pitch"] .feature-card,
html[data-ui="pitch"] .toolbar,
html[data-ui="pitch"] .filter-tools-bar {
    border: 1px solid var(--border-strong) !important;
}
html[data-ui="pitch"] .stat-card { border-left: 4px solid var(--accent) !important; }
html[data-ui="pitch"] .card-interactive:hover,
html[data-ui="pitch"] .quick-link:hover {
    border-color: var(--accent) !important;
    transform: translateY(-2px);
}
html[data-ui="pitch"] .modal-content,
html[data-ui="pitch"] .dropdown-menu { border: 1px solid var(--border-strong) !important; }

/* --- Düğmeler: düz çim yeşili, sarı odak halkası --- */
html[data-ui="pitch"] .btn { font-weight: 600; letter-spacing: 0.01em; }
html[data-ui="pitch"] .btn-primary,
html[data-ui="pitch"] .btn-accent { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22); }
html[data-ui="pitch"] .btn-primary:hover,
html[data-ui="pitch"] .btn-accent:hover { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22); transform: translateY(-1px); }
html[data-ui="pitch"] .btn-primary:active,
html[data-ui="pitch"] .btn-accent:active { box-shadow: none; transform: translateY(1px); }
html[data-ui="pitch"] .view-btn.active { background: var(--pop); color: var(--pop-text); }

/* --- Form alanları --- */
html[data-ui="pitch"] .form-control,
html[data-ui="pitch"] .form-select,
html[data-ui="pitch"] .input-group-text { border-color: var(--border-strong); }

/* --- Tablo: koyu çim skor tabelası başlığı --- */
html[data-ui="pitch"] .table thead th {
    background: #14532d !important;
    color: #f1faf3 !important;
    border-bottom: 3px solid var(--pop);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}
html[data-ui="pitch"][data-bs-theme="dark"] .table thead th { background: #0f3a21 !important; }

/* --- Bildirim ve rozet --- */
html[data-ui="pitch"] .custom-toast { border-left-width: 6px !important; }
html[data-ui="pitch"] .badge,
html[data-ui="pitch"] .status-pill,
html[data-ui="pitch"] .stat-badge { border-radius: 999px; }
