/*
 * MacKolik Fikstür CSS - Modern Versiyon
 * Mobil uyumlu, şık ve kullanışlı arayüz tasarımı
 */

/* ---------- GENEL STIL TANIMLARI ---------- */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-bg: #f0f7ff;
    --secondary-color: #0f172a;
    --secondary-light: #334155;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-bg: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --border-radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light-bg);
    color: var(--gray-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Güzel bir kaydırma çubuğu */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ---------- NAVBAR STILI ---------- */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-bottom: none;
    border-radius: var(--border-radius) !important;
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.3rem;
}

.navbar-brand i {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.logo {
    width: 200px;
}

/* Mobil cihazlar için ortalama */
@media (max-width: 767.98px) {
    .logo {
        width: 40%;
    }
}

/* ---------- SOL MENÜ STILI ---------- */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1rem;
    background-color: var(--secondary-color);
    border-bottom: none;
    color: var(--white);
    font-weight: 600;
}

.card-header h5 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 0.5rem;
    font-size: 0.9em;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 50%;
}

/* Liste stilleri */
.list-group-item {
    border-radius: 0 !important;
    border-left: none;
    border-right: none;
    transition: var(--transition);
    padding: 0.8rem 1rem;
    font-weight: 500;
    border-color: var(--gray-200);
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:hover:not(.active):not(.country-header) {
    background-color: var(--primary-bg);
    color: var(--primary-color);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
}

.list-group-item i {
    transition: var(--transition);
}

.list-group-item:hover i {
    transform: translateX(3px);
}

/* Ülke ve lig başlıkları */
.country-header {
    background: linear-gradient(to right, var(--gray-200), #f8fafc);
    padding: 0.7rem 1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    border-color: var(--gray-300);
}

.country-header:hover {
    background-color: var(--gray-100);
}

.country-header .country-link {
    display: flex;
    align-items: center;
    color: var(--gray-700);
    text-decoration: none;
    width: 100%;
}

.country-header .country-link:hover {
    color: var(--primary-color);
}

.country-header .country-link.active {
    color: var(--primary-dark);
    font-weight: 700;
}

.country-header.expanded {
    background: linear-gradient(to right, var(--primary-bg), #f8fafc);
    border-left: 4px solid var(--primary-color);
}

.country-header img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 0.75rem;
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
}

/* Alt ligler için stil */
.list-group-item.ps-4 {
    padding-left: 2.5rem !important;
    font-size: 0.9rem;
    background-color: var(--white);
    position: relative;
}

.list-group-item.ps-4::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background-color: var(--gray-400);
    transform: translateY(-50%);
}

.list-group-item.ps-4:hover::before {
    background-color: var(--primary-color);
}

.list-group-item.ps-4.active::before {
    background-color: var(--white);
}

/* Alt ligler için stil */
.list-group-item.ps-4.active {
    color: #3b3ba6;
    background: #d3e3ff;
    border: none;
}

/* ---------- MAÇ LİSTESİ STILI ---------- */
.league-card {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transform: translateY(0);
    transition: var(--transition);
    overflow: hidden;
}

.league-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.league-header {
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

/* Diğer ligler için farklı stil */
.league-card .card-header[style*="64748b"] {
    background: linear-gradient(to right, var(--gray-600), var(--gray-500)) !important;
}

.league-header img {
    margin-right: 1rem;
    border-radius: 3px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Lig başlığı düzeni — YENİ YAPI: sol sütun = lig adı + İУ/MS istatistik,
   sağ = "Tümünü Seç". Masaüstünde hepsi tek satır (eski görünüm korunur);
   mobilde sol sütun alt alta bölünür (bkz. @media 767.98px). */
.league-header h5.league-h5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.league-header .lig-sol {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}
.league-header .lig-ad-satir {
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Tablo stilleri */
.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    background-color: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    padding: 1rem;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.table > tbody > tr > td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.table > tbody > tr:hover {
    background-color: rgba(235, 235, 239, 0.05);
}

.match-row {
    cursor: pointer;
    transition: var(--transition);
}

.match-row:last-child td {
    border-bottom: none;
}

.match-time {
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    background-color: var(--gray-100);
    padding: 0.4rem 0.6rem;
    border-radius: 0.3rem;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

/* Takım isimleri düzeni */
.match-teams {
    font-weight: 500;
}

.match-teams .d-flex {
    align-items: center;
    position: relative;
}

.team-name {
    flex: 1;
    color: var(--gray-800);
}

.team-name:first-child {
    text-align: right;
    padding-right: 1rem;
}

.team-name:last-child {
    text-align: left;
    padding-left: 1rem;
}

.vs-badge {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    background-color: var(--gray-100);
    margin: 0 0.5rem;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.live-score {
    color: var(--danger-color);
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    background-color: rgba(239, 68, 68, 0.1);
    margin: 0 0.5rem;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
    animation: pulse 2s infinite;
}

.skorboard {
    display: grid;
    width: auto;
    row-gap: 3px;
}

.score {
    color: #000;
    font-size: 1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    background-color: #f0f0f0;
    margin: 0 0.5rem;
    min-width: 60px;
    text-align: center;
}

.scoreiy {
    color: #000;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .skorboard {
        order: 3;
        width: 100%;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* İddaa oranları stili */
.odds-col {
    font-weight: 700;
    color: var(--gray-800);
    background-color: var(--gray-50);
    width: 60px;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    transition: var(--transition);
}

.odds-col:hover {
    background-color: var(--primary-bg);
    color: var(--primary-color);
}

.match-row:hover .odds-col {
    background-color: var(--gray-100);
}

/* Canlı durum stili */
.badge.bg-danger {
    background: linear-gradient(to right, var(--danger-color), #dc2626) !important;
    font-weight: 500;
    padding: 0.4rem 0.7rem;
    letter-spacing: 0.5px;
    border-radius: 2rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    animation: pulse 2s infinite;
}

/* ---------- FİLTRELER STILI ---------- */
.form-check.form-switch {
    padding-left: 2.5rem;
}

.form-check-input {
    height: 1.25rem !important;
    width: 2.25rem !important;
    border-radius: 2rem;
    background-color: var(--gray-300);
    border: none;
    margin-top: 0.2rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-check-label {
    cursor: pointer;
    margin-left: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ---------- FOOTER STILI ---------- */
footer {
    padding: 2rem 0;
    color: var(--gray-500);
    font-size: 0.9rem;
    border-top: 1px solid var(--gray-200);
    margin-top: 3rem;
}

/* ---------- MODAL STILI ---------- */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom: none;
    padding: 1.25rem;
}

.modal-header .btn-close {
    color: var(--white);
    opacity: 0.8;
    filter: brightness(5);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--gray-300);
    border-color: var(--gray-300);
    color: var(--gray-800);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--gray-400);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

/* Tarih seçici input stili */
input[type="date"] {
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
    color: var(--gray-800);
    transition: var(--transition);
    appearance: none;
    background-color: var(--white);
}

input[type="date"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
    outline: none;
}

/* ---------- ANİMASYONLAR ---------- */
.league-card {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- DİĞER UTILITY SINIFLAR ---------- */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

/* ---------- MOBİL UYUMLULUK ---------- */
@media (max-width: 1199.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .team-name {
        font-size: 0.9rem;
    }

    .match-time {
        font-size: 0.8rem;
        min-width: 50px;
    }

    .odds-col {
        width: 50px;
        font-size: 0.9rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
    }

    .nav-item {
        margin-bottom: 0.5rem;
    }

    .col-lg-3 {
        margin-bottom: 2rem;
    }

    .league-header h5 {
        font-size: 1rem;
    }

    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 0.75rem 0.5rem;
    }

    .team-name:first-child {
        padding-right: 0.5rem;
    }

    .team-name:last-child {
        padding-left: 0.5rem;
    }

    .vs-badge, .live-score {
        margin: 0 0.25rem;
        min-width: 30px;
        padding: 0.25rem;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .league-card {
        margin-bottom: 1.25rem;
    }

    /* --- LİG BAŞLIĞI (mobil): İKİ SÜTUN. Sol = lig adı (üst) + İУ/MS istatistik
       (alt) alt alta; sağ = "Tümünü Seç" (biraz küçük). Uzun ad/istatistik SOL
       sütunun içinde, sağ butona kadar YATAY kayar (kullanıcı isteği). --- */
    .league-header {
        padding: .55rem .7rem;
    }
    .league-header h5.league-h5 {
        align-items: center;
        gap: .4rem;
        font-size: .95rem;
    }
    .league-header img {
        margin-right: .5rem;
    }
    .league-header .lig-sol {
        flex-direction: column;
        align-items: flex-start;
        gap: .15rem;
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;   /* içerik sağ butonu itmesin; içeride kaysın */
    }
    .league-header .lig-ad-satir {
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .league-header .lig-ad-satir::-webkit-scrollbar { display: none; }
    .league-header .lig-ad {
        white-space: nowrap;
        font-weight: 600;
    }
    .league-header .lig-istatistik {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 !important;
        font-size: .7rem !important;
        line-height: 1.5;
    }
    .league-header .lig-istatistik::-webkit-scrollbar { display: none; }
    .badge.badge-baslik {
        font-size: .6rem;
    }
    .select-all-btn {
        flex-shrink: 0;
        align-self: center;
        margin-left: .3rem;
        padding: .28rem .5rem;
        font-size: .64rem;
    }

    /* --- MAÇ SATIRI (mobil) = 1. GÖRSEL: orijinal temiz DİKEY yığın (tam ad),
       İY üstte / FT altta skor. Oranlar mobilde GİZLİ — dar ekranda takım
       adlarını harf harf eziyordu; kullanıcı sade görünümü tercih etti. --- */
    .match-teams .d-flex {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
    }
    .team-name {
        text-align: center !important;
        padding: 0 !important;
    }
    .team-name:first-child { order: 1; }
    .vs-badge, .live-score { order: 3; width: 100%; margin: 0.4rem 0; }
    .team-name:last-child { order: 5; }
    /* Oranlar mobilde gizli. !important: oddsSwitch JS'i inline display verse
       bile mobilde gizli kalır → tablo sadece Seç/Saat/Karşılaşma/Durum. */
    .table > thead > tr > th.odds-col,
    .table > tbody > tr > td.odds-col {
        display: none !important;
    }
    .match-time {
        min-width: 44px;
        font-size: .8rem;
    }
}

@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar {
        padding: 0.75rem;
    }

    .navbar-brand i {
        padding: 0.35rem;
    }

    .card-header {
        padding: 0.75rem;
    }

    .list-group-item {
        padding: 0.75rem;
    }

    .league-header {
        padding: 0.75rem 1rem;
    }

    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 0.6rem 0.4rem;
        font-size: 0.9rem;
    }

    .match-time {
        font-size: 0.8rem;
        min-width: 40px;
        padding: 0.25rem;
    }

    .badge.bg-danger {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

#datePickerContainer {
    width: 350px;
    z-index: 9999;
    position: absolute !important;
    /* Sağda kalması için değişiklik burada */
    right: 0 !important; /* Sağa hizala */
    left: auto !important; /* Sol hizalamayı kaldır */
    top: 100%;
    margin-top: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
}

/* Mobil cihazlar için ortalama */
@media (max-width: 767.98px) {
    #datePickerContainer {
        /* Küçük ekranlarda ortala */
        position: fixed !important;
        top: 51% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        right: auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
}
.date-picker-table th, .date-picker-table td {
    padding: 0.25rem;
    font-size: 0.875rem;
}

.date-picker-table button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s;
}

.date-picker-table button:hover {
    background-color: #e9ecef;
}

.date-picker-table button.selected {
    background-color: #0d6efd;
    color: white;
}

.date-picker-table button.included {
    background-color: #cfe2ff;
    color: #084298;
}

.date-picker-table button.today {
    font-weight: bold;
    border: 1px solid #6c757d;
}

/* Tarih aralığı chips stilleri */
.date-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.date-chip {
    background-color: #f0f0f0;
    border-radius: 16px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid #ddd;
}

.date-chip:hover {
    background-color: #e0e0e0;
}

.date-multiselect {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-height: 110px;
    overflow-y: auto;
}

.date-tag {
    background-color: #e7f3ff;
    border: 1px solid #0d6efd;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
}

.date-tag .close {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
}




/*
  MacKolik - Maç Detay Sayfası CSS
  Modern, mobil uyumlu ve kullanıcı dostu bir tasarım
*/

/* ----- Genel Stil ----- */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #0ea5e9;
    --accent-color: #f97316;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --light-gray: #e2e8f0;
    --medium-gray: #94a3b8;
    --dark-gray: #475569;
    --home-team-color: #0284c7;
    --away-team-color: #dc2626;
    --draw-color: #f59e0b;
    --win-color: #22c55e;
    --lose-color: #ef4444;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ----- Header ----- */
.main-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

nav a:hover {
    background-color: var(--light-gray);
}

nav i {
    margin-right: 5px;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.user-actions a {
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

.login-button {
    background-color: var(--primary-color);
    color: white;
}

.login-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* ----- Breadcrumb ----- */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--dark-gray);
}

.breadcrumb a {
    color: var(--dark-gray);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* ----- Match Details Container ----- */
.match-details-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

/* ----- Match Header ----- */
.match-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px 20px;
}

.teams-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.team {
    flex: 1;
}

.team-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 10px;
}

.vs {
    font-size: 24px;
    font-weight: bold;
    padding: 0 20px;
}

/* ----- Tabs ----- */
.tabs-container {
    padding: 20px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 20px;
}

.tabs li {
    margin-right: 5px;
}

.tabs li a {
    display: block;
    padding: 10px 15px;
    color: var(--dark-gray);
    border-bottom: 3px solid transparent;
}

.tabs li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tabs li a i {
    margin-right: 5px;
}



.tab-content.active {
    display: block;
}

/* ----- H2H Stats ----- */
.h2h-stats-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.h2h-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.h2h-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--dark-gray);
}

.team-stats {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.team-name {
    flex: 1;
    font-weight: 500;
}

.progress-bar-container {
    flex: 2;
    height: 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 15px;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
}

.home-bar {
    background-color: var(--home-team-color);
}

.draw-bar {
    background-color: var(--draw-color);
}

.away-bar {
    background-color: var(--away-team-color);
}

.stats-value {
    font-weight: bold;
    width: 30px;
    text-align: right;
}

/* ----- Matches Table ----- */
.h2h-matches {
    margin-top: 30px;
}

.h2h-matches h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--dark-gray);
}

.table-container {
    overflow-x: auto;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
}

.matches-table th,
.matches-table td {
    padding: 12px 15px;
    text-align: left;
}

.matches-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.matches-table tr.odd {
    background-color: var(--background-color);
}

.matches-table .league {
    font-weight: 500;
}

.matches-table .match {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 300px;
}

.home-team, .away-team {
    font-weight: 500;
}

.home-team.winner {
    color: var(--home-team-color);
}

.away-team.winner {
    color: var(--away-team-color);
}

.home-team.draw, .away-team.draw {
    color: var(--draw-color);
}

.matches-table .vs {
    font-size: 12px;
    color: var(--medium-gray);
    padding: 0 10px;
}

.matches-table .score {
    display: inline-block;
    min-width: 68px;
    text-align: center;
    font-weight: 700;
    background: #eef5fc;
    color: #1f5fa6;
    border-radius: 12px;
    padding: 4px 8px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.05);
    white-space: nowrap;
    margin-top: 8px;
}

/* ----- Form ----- */
.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.team-form {
    flex: 1;
    min-width: 300px;
}

.team-form h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.form-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-meter {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.meter-container {
    width: 150px;
    height: 150px;
}

.meter {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.meter-value {
    position: absolute;
    font-size: 18px;
    font-weight: bold;
}

.meter svg {
    transform: rotate(-90deg);
}

.meter-bg {
    fill: none;
    stroke: var(--light-gray);
    stroke-width: 10;
}

.meter-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 10;
    stroke-dasharray: 283;
    transition: stroke-dashoffset 1s ease;
}

.form-matches {
    flex: 2;
    min-width: 300px;
}

.form-matches .match-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.form-matches .match-table th {
    background-color: #f0f0f0;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.form-matches .match-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.form-matches .match-table tr:last-child td {
    border-bottom: none;
}

.form-matches .match-table tr:hover {
    background-color: #f9f9f9;
}

.form-matches .competition {
    width: 35px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.form-matches .date {
    width: 30px;
    color: #666;
    font-size: 14px;
}

.form-matches .opponent {
    font-weight: 500;
    color: #333;
}

.form-matches .score {
    text-align: center;
    font-weight: 600;
    min-width: 40px;
    background: aliceblue !important;
}

.form-matches .result {
    width: 40px;
    text-align: center;
}

.form-matches .result-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.form-matches .win {
    background-color: #4caf50;
}

.form-matches .draw {
    background-color: #ff9800;
}

.form-matches .loss {
    background-color: #f44336;
}

.form-matches .upcoming {
    background-color: #2196f3;
}

.form-matches .inter-name {
    color: #004d98;
    font-weight: 600;
}

.form-matches .legend {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.form-matches .legend-item {
    display: flex;
    align-items: center;
}

.form-matches .league-badge {
    display: inline-block;
    width: 30px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 11px;
    margin-right: 5px;
}

.form-matches .league-ita {
    background-color: #2a89dd;
}

.form-matches .league-smp {
    background-color: #00529b;
}

.form-matches .league-itk {
    background-color: #8a1538;
}

@media (max-width: 600px) {
    .form-matches .match-table th,
    .form-matches .match-table td {
        padding: 10px 8px;
        font-size: 14px;
    }

    .form-matches .date {
        width: 70px;
        font-size: 13px;
    }

    .form-matches .competition {
        width: 40px;
        font-size: 12px;
    }
}

/* ----- Stats & News ----- */
.stats-container, .news-container {
    padding: 20px;
    text-align: center;
}

/* ----- Footer ----- */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ----- Responsive Design ----- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .teams-header {
        flex-direction: column;
        gap: 20px;
    }

    .vs {
        margin: 10px 0;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .h2h-stats-cards {
        flex-direction: column;
    }

    .matches-table .match {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .matches-table .vs {
        display: none;
    }
}

.badge.badge-normal {
    background: #8c7dfd;
}

.badge.badge-baslik {
    background: #ffe494;
    color: black;
}

.league-header .text-muted {
    color: cornsilk !important;
    font-size: 15px;
}

.stats-container {
    padding: 15px;
}

.stats-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #0d6efd;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.stats-section {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.badge-baslik {
    background-color: #566a7f;
    color: white;
    font-weight: normal;
    font-size: 12px;
}

.badge-normal {
    background-color: #6c757d;
    color: white;
    font-weight: normal;
    font-size: 12px;
}

.best-odds {
    background-color: #f0fdf4;
    border-left: 4px solid #16a34a;
}

.best-odds td {
    font-weight: bold !important;
}

.best-odds-section {
    background-color: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #dcfce7;
    padding: 15px;
    margin-bottom: 20px;
}

.best-odds-section .card {
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.best-odds-section .card-header {
    background-color: #16a34a;
    color: white;
    font-weight: 600;
}

.best-odds-badge {
    background-color: #16a34a;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

.success-rate-high {
    color: #16a34a;
    font-weight: bold;
}

.success-rate-medium {
    color: #ca8a04;
    font-weight: bold;
}

.success-rate-low {
    color: #dc2626;
    font-weight: bold;
}

#statsButton {
    display: flex;
    align-items: center;
    background-color: #0ea5e9;
    color: white;
    border: none;
    transition: all 0.3s;
}

#statsButton:hover {
    background-color: #0284c7;
}

#sortSelect {
    width:160px;
}

#statusSelect {
    width:200px;
}

/* Mobil uyumluluk için */
@media (max-width: 576px) {
    #statsButton {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    #sortSelect , #statusSelect {
        width:100% !important;
    }
}

.nav-tabs .nav-link {
    color: #475569;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
    border-bottom: 2px solid #0d6efd;
}



/* İstatistikler Sekmesi için CSS */
.stats-container {
    padding: 15px 0;
    background-color: #f8f9fa;
}

/* İstatistikler Başlık Kısmı */
.stats-container .other-matchs-temp {
    background-color: #fff;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.stats-container .chart-title {
    padding: 12px 15px;
    background: linear-gradient(to right, #1a3a7e, #2c5ebd);
    border-radius: 6px 6px 0 0;
}

.stats-container .chart-other-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-container .clr {
    clear: both;
}

/* MD Elementleri - Genel */
.stats-container .md {
    background-color: #fff;
    border: 1px solid #dde6f0;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.stats-container .md:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* MD Başlıkları */
.stats-container .detail-title {
    padding: 12px 15px;
    background: linear-gradient(to right, #f5f7fa, #e9edf2);
    border-bottom: 1px solid #d8e1ec !important;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.stats-container .detail-title img {
    margin-right: 10px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* MD Tabloları */
.stats-container .md-table3 {
    width: 100%;
    border-collapse: collapse;
}

.stats-container .md-table3 th {
    padding: 10px;
    background-color: #f5f7fa;
    color: #5a6c7e;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 1px solid #e9edf2;
}

.stats-container .md-table3 td {
    padding: 8px 10px;
    vertical-align: middle;
    text-align: center;
    font-size: 13px;
    color: #444;
    border-bottom: 1px solid #eef1f5;
}

.stats-container .md-table3 td:first-child {
    text-align: left;
    font-weight: 600;
}

/* Alternatif Satır Renkleri */
.stats-container .md-table3 tr.alt1 {
    background-color: #ffffff;
}

.stats-container .md-table3 tr.alt2 {
    background-color: #f8fafc;
}

.stats-container .md-table3 tr:hover {
    background-color: #f1f5fa;
}

/* Tablo Başlıkları */
.stats-container .table-header {
    background-color: #e9edf2;
}

/* İlerleme Çubukları */
.stats-container div[style*="border:1px solid #999999"] {
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.stats-container div[style*="background-color:#FC6"] {
    background: linear-gradient(to right, #4a8eff, #2c5ebd) !important;
}

/* İçerde/Dışarda Hücreleri */
.stats-container td[style*="background-color: #eee"] {
    background-color: #f4f7fa !important;
}

/* Oyuncu Tabloları için Özel Stiller */
.stats-container .md-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-container .md-table th {
    padding: 10px;
    background-color: #f5f7fa;
    color: #5a6c7e;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 1px solid #e9edf2;
}

.stats-container .md-table td {
    padding: 8px 10px;
    vertical-align: middle;
    text-align: center;
    font-size: 13px;
    color: #444;
    border-bottom: 1px solid #eef1f5;
}

.stats-container .md-table td:first-child {
    text-align: left;
}

.stats-container .md-table tr:hover {
    background-color: #f1f5fa;
}

/* Oyuncu Pozisyon İkonları */
.stats-container div.K, div.D, div.O, div.F {
    display: inline-block;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    text-align: center;
    font-weight: bold;
    font-size: 11px !important;
    line-height: 22px !important;
    color: white;
    margin: 0 auto;
}

.stats-container div.K { background-color: #3498db !important; } /* Kaleci */
.stats-container div.D { background-color: #2ecc71 !important; } /* Defans */
.stats-container div.O { background-color: #f39c12 !important; } /* Orta Saha */
.stats-container div.F { background-color: #e74c3c !important; } /* Forvet */

/* Mobil Görünüm İyileştirmeleri */
@media (max-width: 768px) {
    .stats-container .md {
        margin-bottom: 20px;
    }

    .stats-container .detail-title {
        padding: 10px;
        font-size: 13px;
    }

    .stats-container .md-table3 th, .md-table td {
        padding: 6px 4px;
        font-size: 12px;
    }

    /* Yatay kaydırma ekle */
    .stats-container .md-table3 {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Görünümü iyileştirmek için bazı sütunları küçült veya gizle */
    .stats-container .md-table3 td:nth-child(3),
    .stats-container .md-table3 th:nth-child(3) {
        display: none;
    }
}

/* Özel İhtiyaçlar için Yardımcı Sınıflar */
.stats-container .success-rate-high { color: #27ae60; font-weight: bold; }
.stats-container .success-rate-medium { color: #f39c12; font-weight: bold; }
.stats-container .success-rate-low { color: #e74c3c; font-weight: bold; }

/* Grafik ve İstatistik Görselleri için Ekstra Stiller */
.stats-container .progress-bar-container {
    height: 12px;
    background-color: #f5f7fa;
    border-radius: 6px;
    overflow: hidden;
    margin: 5px 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.stats-container .progress-bar {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(to right, #4a8eff, #2c5ebd);
}

.stats-container .home-bar { background: linear-gradient(to right, #27ae60, #2ecc71); }
.stats-container .draw-bar { background: linear-gradient(to right, #f39c12, #f1c40f); }
.stats-container .away-bar { background: linear-gradient(to right, #e74c3c, #e84393); }

/* Görsel iyileştirmeler ve ayrıntılar */
.stats-container .md a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.stats-container .md a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Önemli değerleri vurgula */
.stats-container .md td b {
    color: #2c3e50;
}

/* Maç Sonuçlarını Vurgula */
.stats-container .result-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    line-height: 24px;
    color: white;
}

.stats-container .win { background-color: #27ae60; }
.stats-container .draw { background-color: #f39c12; }
.stats-container .loss { background-color: #e74c3c; }
.stats-container .upcoming { background-color: #95a5a6; }









.news-container .teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.news-container .team {
    text-align: center;
    flex: 1;
}

.news-container .team-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.news-container .team-name:first-child {
    text-align: center !important;
    padding-right: inherit !important;
}

.news-container .team-score {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.news-container .vs {
    font-size: 20px;
    font-weight: 600;
    color: #777;
    margin: 0 15px;
}

.news-container .probability-container {
    margin-bottom: 20px;
}

.news-container .probability-bar {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.news-container .probability-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: width 0.8s ease;
}

.news-container .probability-home {
    background: linear-gradient(to right, #4CAF50, #45a049);
}

.news-container .probability-draw {
    background: linear-gradient(to right, #FFC107, #ffb300);
}

.news-container .probability-away {
    background: linear-gradient(to right, #F44336, #e53935);
}

.news-container .probability-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

.news-container .expected-goals {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.news-container .expected-goal-box {
    flex: 1;
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin: 0 5px;
}

.news-container .expected-goal-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.news-container .prediction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.news-container .prediction-item {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
}

.news-container .prediction-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.news-container .prediction-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.news-container .likely-scores {
    display: flex;
    flex-direction: column;
}

.news-container .score-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.news-container .score-row:last-child {
    border-bottom: none;
}

.news-container .score-position {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
}

.news-container .score-result {
    font-size: 20px;
    font-weight: 600;
}

.news-container .score-probability {
    margin-left: auto;
    background-color: #eee;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.news-container .footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #eee;
}

.news-container .disclaimer {
    font-style: italic;
    font-size: 12px;
    margin-top: 10px;
}

.news-container .form-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 2px;
    border-radius: 3px;
}

.news-container .form-G {
    background-color: #4CAF50;
}

.news-container .form-B {
    background-color: #FFC107;
}

.news-container .form-M {
    background-color: #F44336;
}


.h2h-matches > table {
    text-align: left !important;
}



/* Yazı tipi yükleme - İsteğe bağlı */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono:wght@400;500;600&display=swap');