﻿/* ========================================================= */
/* 🔥 PRO BÜLTEN & İDDAA PROGRAMI TASARIMI 🔥 */
/* ========================================================= */

body {
    background-color: #f8fafc;
}

/* --- ANA YERLEŞİM (GRID/FLEX) --- */
.bulten-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* --- SOL MENÜ (ÜLKELER VE LİGLER) --- */
.bulten-sidebar {
    flex: 0 0 260px; /* Genişlik sabit */
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    position: sticky;
    top: 90px; /* Header'ın altına yapışır */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

    .bulten-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .bulten-sidebar::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

.sidebar-search {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

    .sidebar-search input {
        background: #f1f5f9;
        border: none;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 600;
    }

.league-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.league-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

    .league-item:hover, .league-item.active {
        background: #f8fafc;
        color: #1a1d20;
        border-left: 3px solid #ffcc00;
        padding-left: 12px;
    }

.league-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

/* --- SAĞ İÇERİK (İDDAA BÜLTENİ) --- */
.bulten-main {
    flex: 1;
    min-width: 0; /* Flex taşmasını önler */
}

/* Üst Kontrol Paneli (Tarihler) */
.bulten-toolbar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.date-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.date-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

    .date-pill:hover {
        background: #e2e8f0;
        color: #1a1d20;
    }

    .date-pill.active {
        background: #1a1d20;
        color: #ffcc00;
        border-color: #1a1d20;
    }

/* Lig Başlığı (Zarif Tasarım) */
.match-group-header {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e2e8f0;
    border-bottom: 2px solid #ffcc00;
    font-weight: 800;
    font-size: 0.9rem;
    color: #1a1d20;
    display: flex;
    align-items: center;
    margin-top: 15px;
}

/* --- MAÇ SATIRI (ANASAYFA TARZI SARI KUTULAR) --- */
.match-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

    .match-row:last-child {
        border-radius: 0 0 8px 8px;
        margin-bottom: 15px;
    }

    .match-row:hover {
        background: #f8fafc;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    }

.m-info-col {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.m-time {
    background: #dc3545;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
    text-align: center;
    min-width: 50px;
}

.m-teams {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.m-team {
    font-weight: 800;
    color: #1a1d20;
    font-size: 0.9rem;
}

/* ORAN KUTULARI (ANASAYFA İLE BİREBİR AYNI) */
.m-odds-col {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.odd-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.odd-group-title {
    font-size: 0.65rem;
    color: #1a1d20;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.odd-buttons {
    display: flex;
    gap: 4px;
}

.odd-btn {
    background: #ffcc00; /* Anasayfadaki ikonik sarı */
    color: #1a1d20;
    border-radius: 6px;
    padding: 6px 4px;
    width: 45px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    text-decoration: none;
    border: 1px solid #eab308;
}

    .odd-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(255, 204, 0, 0.4);
        background: #eab308;
    }

.odd-label {
    font-size: 0.6rem;
    font-weight: 700;
    opacity: 0.8;
}

.odd-val {
    font-size: 0.9rem;
    font-weight: 900;
}

.odd-btn.disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* --- MOBİL UYUM --- */
@media (max-width: 991.98px) {
    .bulten-wrapper {
        flex-direction: column;
    }

    .bulten-sidebar {
        display: none;
    }
    /* Mobilde sol menüyü gizleyip üste "Lig Seç" dropdown'ı koyabiliriz */
    .m-odds-col {
        justify-content: flex-start;
        margin-top: 15px;
        width: 100%;
        border-top: 1px dashed #e2e8f0;
        padding-top: 10px;
    }

    .match-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- BÜLTEN ÖZEL TAB (SEKME) TASARIMI --- */
.bulten-custom-tabs {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

    .bulten-custom-tabs .nav-link {
        color: #64748b;
        border: none;
        border-bottom: 3px solid transparent;
        padding: 15px 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 0.85rem;
        font-weight: 800;
        transition: all 0.3s ease;
    }

        .bulten-custom-tabs .nav-link:hover {
            color: #1a1d20;
            border-color: #e2e8f0;
        }

        .bulten-custom-tabs .nav-link.active {
            color: #1a1d20;
            background: transparent;
            border-bottom: 3px solid #ffcc00;
        }

/* ========================================================= */
/* 🔥 BÜLTEN AKORDİYON (GENİŞLETİLMİŞ ORANLAR) TASARIMI 🔥 */
/* ========================================================= */

.match-item-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    transition: all 0.3s ease;
}

    .match-item-wrapper:last-child {
        border-radius: 0 0 8px 8px;
        margin-bottom: 20px;
    }

.match-row {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.match-item-wrapper:hover .match-row {
    background: #f8fafc;
}

/* Akordiyon Açma Butonu */
.btn-expand-odds {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-expand-odds:hover, .btn-expand-odds[aria-expanded="true"] {
        background: #1a1d20;
        color: #ffcc00;
        border-color: #1a1d20;
        transform: rotate(180deg); /* Açıldığında ok döner */
    }

/* Aşağı Açılan Çekmece (İçerik) */
.expanded-odds-panel {
    background: #f8fafc;
    border-top: 1px dashed #cbd5e1;
    padding: 20px;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.02);
}

.expanded-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Detay Oran Kutuları (Daha küçük ve sık) */
.odd-box-sm {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .odd-box-sm .odd-label {
        font-size: 0.65rem;
        color: #64748b;
        font-weight: 700;
        margin-left: 4px;
    }

    .odd-box-sm .odd-val {
        font-size: 0.8rem;
        color: #0f172a;
        font-weight: 800;
        margin-right: 4px;
    }

    .odd-box-sm:hover {
        background: #ffcc00;
        border-color: #ffcc00;
    }

        .odd-box-sm:hover .odd-label, .odd-box-sm:hover .odd-val {
            color: #1a1d20;
        }

/* ========================================================= */
/* 🔥 SOL MENÜ ÜLKE / LİG AKORDİYON TASARIMI 🔥 */
/* ========================================================= */

.country-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
}

.country-group {
    border-bottom: 1px solid #f1f5f9;
}

/* Ülke Başlığı (Tıklanabilir Çekmece) */
.country-header {
    padding: 12px 15px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.85rem;
    color: #1a1d20;
    transition: all 0.2s ease;
}

    .country-header:hover {
        background: #f8fafc;
    }

    /* Çekmece Açıkkenki Görünüm */
    .country-header[aria-expanded="true"] {
        border-left: 3px solid #ffcc00;
        background: #f8fafc;
        padding-left: 12px;
    }

    /* Sağdaki Ok İkonu Animasyonu */
    .country-header .bi-chevron-down {
        transition: transform 0.3s ease;
        font-size: 0.8rem;
        color: #94a3b8;
        stroke-width: 2px;
    }

    .country-header[aria-expanded="true"] .bi-chevron-down {
        transform: rotate(180deg);
        color: #1a1d20;
    }

/* Alt Liste (Ligler) */
.league-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.league-subitem {
    padding: 10px 15px 10px 40px; /* İçeriden başlatarak hiyerarşi hissi verir */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .league-subitem:hover {
        color: #1a1d20;
        background: #f1f5f9;
        padding-left: 45px; /* Hover animasyonu */
    }

/* Sayı Kutucukları */
.country-header .league-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

.league-subitem .league-count {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
}