/* UEFA Avrupa Ligi Arşiv Teması - 2024-25 */

/* 1. Genel Konteyner ve Sola Yaslama */
.uel-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 850px;
    margin: 20px 0;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    overflow: hidden;
}

/* 2. Başlık Bandı (H3/Summary) */
.uel-header {
    background: linear-gradient(90deg, #3d1a04 0%, #c14d08 100%);
    color: #ffffff !important;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
}

.uel-header::after {
    content: '[+]';
    font-family: monospace;
}

details[open] .uel-header::after {
    content: '[-]';
}

details summary {
    list-style: none;
    outline: none;
}

details summary::-webkit-details-marker {
    display: none;
}

/* 3. Kaydırma İpucu (Sadece Mobil) */
.scroll-hint {
    display: none;
    background: #252525;
    color: #aaa;
    font-size: 11px;
    padding: 5px 10px;
    text-align: right;
    border-bottom: 1px solid #333;
}

/* 4. Tablo Yapısı */
.uel-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.uel-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #121212;
    min-width: 600px; /* Mobilde sıkışmayı önleyen alt sınır */
}

.uel-table th {
    background-color: #252525;
    color: #ffa500;
    padding: 12px 10px;
    text-align: center;
    border-bottom: 2px solid #c14d08;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.uel-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #2a2a2a;
    vertical-align: middle;
}

/* 5. Takım Bilgileri ve Logolar */
.team-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-logo {
    width: 25px !important;
    height: 25px !important;
    flex-shrink: 0;
    object-fit: contain;
}

.team-info {
    display: flex;
    flex-direction: column;
}

.team-name {
    font-size: 0.95rem;
}

.country-name {
    font-size: 0.75rem;
    color: #888;
}

/* 6. WINNER (KAZANAN) VURGUSU - Masaüstü Garantili */
.uel-table tbody tr td.winner {
    background-color: #1e2530 !important; /* Koyu Mavi/Gri Arkaplan */
    border-left: 4px solid #ff8c00 !important; /* Turuncu Çizgi */
}

.uel-table tbody tr td.winner .team-name {
    color: #ff8c00 !important; /* Takım İsmi Turuncu */
    font-weight: 900 !important;
}

/* 7. Skor ve Genel Hücreler */
.score-cell {
    text-align: center;
    font-weight: bold;
    color: #fff;
}

.total-score {
    background-color: #1a1a1a;
    color: #ffcc00;
}

/* 8. Makale Font Ayarları (UEL-H3 ve UEL-P) */
.uel-h3-mobile {
    color: #ff8c00;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    margin: 20px 0 15px 0;
}

.uel-p-mobile {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* 9. --- MOBİL ÖZEL AYARLAR --- */
@media screen and (max-width: 600px) {
    .uel-header { font-size: 0.85rem; padding: 10px; }
    .scroll-hint { display: block; }
    
    .uel-h3-mobile { font-size: 1.1rem !important; }
    .uel-p-mobile, .uel-p-mobile strong, .uel-p-mobile font { 
        font-size: 0.85rem !important; 
    }

    .team-logo { display: none !important; } /* Mobilde logolar gizli */
    
    .team-name { font-size: 0.75rem; }
    .country-name { font-size: 0.65rem; }
    .uel-table th { font-size: 0.7rem; }
    .score-cell { font-size: 0.75rem; }
}
/* ANA KAPSAYICI: Kutuları yan yana dizen sihirli dokunuş */
.representatives-row {
    display: flex;
    flex-wrap: wrap;
    /* Kutular arası boşluğu biraz daraltalım ki yer açılsın */
    gap: 15px; 
    justify-content: center;
    background-color: #000;
    padding: 10px;
    /* Satırın sayfa içinde çok yayılmaması için */
    width: 100%;
    margin: 0 auto;
}

    /* KUTU STANDARTI */
.team-fixture-box {
    flex: 1;
    /* Masaüstünde 3 tane yan yana gelmesi için min-width değerini biraz düşürüyoruz */
    min-width: 300px; 
    /* Kutuların çok devasa olmaması için max-width ekliyoruz */
    max-width: 380px; 
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

    /* Üst Bantlar */
    .team-header-gs { background-color: #A90432; color: #FDB912; padding: 10px; text-align: center; font-weight: bold; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
    .team-header-fb { background-color: #002244; color: #FFD700; padding: 10px; text-align: center; font-weight: bold; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }

    /* Koyu Tema İçerik */
    .fixture-row-dark { display: flex; background-color: #000; border-bottom: 1px solid #222; color: #eee; }
    .fixture-title-dark { background-color: #1a1a1a; color: #ffffff; font-weight: bold; text-align: center; font-size: 14px; border-bottom: 2px solid #333; width: 100%; display: flex; }
    .fixture-col { flex: 1; padding: 10px; font-size: 13px; border-right: 1px solid #222; }
    .fixture-col:last-child { border-right: none; }

    /* Sonuç Renkleri */
    .res-g { color: #00FF00; font-weight: bold; } /* Yeşil Galibiyet */
    .res-m { color: #FF3333; font-weight: bold; } /* Kırmızı Mağlubiyet */
    .res-b { color: #AAAAAA; font-weight: bold; } /* Gri Beraberlik */


.team-header-bjk { background-color: #000000; color: #ffffff; padding: 10px; text-align: center; font-weight: bold; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border-bottom: 1px solid #333; }

/* Puan Durumu Tablo Konteyner */
.puan-durumu-container {
    width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    border-radius: 12px; /* Oval köşeler */
    border: 1px solid #333;
    background-color: #000;
}

.uel-puan-tablo {
    width: 100%;
    border-collapse: collapse;
    color: #eee;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
}

/* Başlık Satırı */
.uel-puan-tablo th {
    background-color: #1a1a1a;
    color: #FDB912;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #333;
}

/* Hücreler */
.uel-puan-tablo td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #222;
}

/* Takım ismi sola yaslı */
.uel-puan-tablo td.takim-ad {
    text-align: left;
    font-weight: bold;
}

/* Renk Kodları */
.sir-1-8 { border-left: 5px solid #c7f209; }   /* Son 16 */
.sir-9-24 { border-left: 5px solid #09cdef; }  /* Play-off */
.sir-25-36 { border-left: 5px solid #ff3333; } /* Elendi */

/* Mobilde Sütun Gizleme */
@media screen and (max-width: 600px) {
    .mobile-hide {
        display: none !important;
    }
    .uel-puan-tablo {
        font-size: 12px;
    }
}

/* Dipnot Alanı */
.puan-notlar {
    margin-top: 15px;
    padding: 15px;
    background: #111;
    border-radius: 8px;
    font-size: 13px;
    color: #ccc;
    line-height: 1.6;
}
.dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }


.uel-puan-tablo td.takim-ad {
    text-align: left;
    font-weight: bold;
    display: flex; /* Logo ve ismi yan yana tutar */
    align-items: center; /* Dikeyde ortalar */
    gap: 12px; /* Logo ile isim arasındaki boşluk */
    padding: 12px 15px; /* Hücreyi biraz ferahlatır */
    white-space: nowrap; /* İsim ve logonun alt satıra geçmesini kesinlikle engeller */
}
.uel-puan-tablo td.takim-ad img {
    width: 34px; /* Logoları ciddi oranda büyüttük */
    height: 34px;
    object-fit: contain;
    background-color: #ffffff; /* Renk tavsiyem aşağıda, şimdilik beyaz yapalım */
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0; /* Logonun küçülmesini engeller */
    border: 2px solid #444; /* Etrafına hafif bir çerçeve */
    box-shadow: 0 0 5px rgba(0,0,0,0.5); /* Derinlik katar */
}


/* Playoff Konteyner */
.playoff-container {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}

/* Başlık satırı fontu ve boşluğu */
.playoff-header {
    display: flex; 
    background: #1a1a1a; 
    color: #FDB912; 
    font-weight: bold; 
    padding: 12px; 
    border-bottom: 2px solid #333; 
    text-align: center;
    font-size: 14px; /* Masaüstü başlık fontu */
}

/* Eşleşme Satırı */
.playoff-match-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #222;
    padding: 10px;
    text-align: center;
}

/* Sütun Genişlikleri */
.p-col { flex: 2; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; }
.p-col-skor { flex: 0.8; font-size: 13px; color: #ccc; }
.p-col-skor-total { flex: 0.8; font-weight: bold; color: #FDB912; }

/* Kazanan Vurgusu */
.winner { color: #fff !important; font-weight: bold; }

/* Playoff Logo Standartı (Senin istediğin beyaz daire) */
.p-col img {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    object-fit: contain;
}

/* ============================================================
    UEFA AVRUPA LİGİ PLAY-OFF - TERTEMİZ VERSİYON
   ============================================================ */

/* 1. Açılır Kapanır Başlık */
.tur-detay summary.tur-baslik {
    list-style: none; cursor: pointer; padding: 15px;
    background: #1a1a1a; color: #FDB912; font-weight: bold;
    border: 1px solid #333; position: relative; padding-left: 45px;
}
.tur-detay summary.tur-baslik::before {
    content: '+'; position: absolute; left: 15px; font-size: 22px; color: #FDB912;
}
.tur-detay[open] summary.tur-baslik::before { content: '-'; }
/* Playoff Satır Düzeni */
.playoff-match-row {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #222;
    padding: 12px 5px;
    background: #000;
}

.p-col-ana {
    flex: 6; /* İsim ve logo alanına daha fazla yer verdik */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Takım alanı sarmalayıcıları (Bitişik nizamı çözen gap burası) */
.t-sol-wrap, .t-sag-wrap {
    width: 240px; /* Biraz genişlettik yer açılsın */
    display: flex;
    align-items: center;
    gap: 15px; /* Takım adı ve logo arasına 15px nefes payı koyduk */
}

.t-sol-wrap { justify-content: flex-end; }
.t-sag-wrap { justify-content: flex-start; }

/* Ortadaki VS / işareti için boşluk */
.vs { 
    width: 40px; 
    text-align: center; 
    color: #555; 
    font-weight: bold;
    margin: 0 10px; /* Sağına soluna boşluk verdik */
}

/* --- MOBİL ÖZEL AYARLARI (TEK DOKUNUŞ) --- */
@media (max-width: 768px) {
    /* Başlık fontlarını küçültme */
    .playoff-header div { 
        font-size: 10px !important; 
    }

    /* Takım isimleri, VS ve Skor fontlarını küçültme */
    .t-ad-fix, .vs, .p-col-skor, .p-col-skor-total { 
        font-size: 11px !important; 
    }

    /* Mobilde o bitişikliği engellemek için minimum genişliği kapatıyoruz */
    .t-sol-wrap, .t-sag-wrap { 
        width: auto !important; 
        flex: 1; 
        gap: 5px; /* Mobilde yer dar olduğu için boşluğu biraz azalttık ama bitişik değil */
    }

    /* Mobilde VS arasını daraltalım yer açılsın */
    .vs { width: 20px; margin: 0 5px; }
}
/* KAZANAN ÇERÇEVESİ (Hizayı bozmayan oval yapı) */
.winner-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(253, 185, 18, 0.15) !important;
    border: 1.5px solid #FDB912 !important;
    border-radius: 30px;
    padding: 4px 10px;
    color: #fff !important;
}

/* Skor Sütunları (Sabit Genişlik) */
.p-col-skor { width: 60px; text-align: center; color: #aaa; font-size: 13px; }
.p-col-skor-total { width: 60px; text-align: center; font-weight: bold; color: #FDB912; }

/* Kutu içindeki yazıların rengi her zaman parlak olsun */
.winner-box span {
    color: #ffffff !important;
}

/* Elenen (Normal) Takımlar Sönük Kalsın */
.t-sol, .t-sag {
    color: #888;
    font-weight: bold;
}

/* 4. Logolar */
.p-col-ana img {
    width: 32px; height: 32px; background: #fff;
    border-radius: 50%; padding: 3px; object-fit: contain; flex-shrink: 0;
}

/* Bizimkilerin Renkleri (Elenseler de bu renkte kalırlar) */
.gs-text { color: #FDB912 !important; }
.fb-text { color: #1e90ff !important; }

/* Skorlar */
.p-col-skor { flex: 0.8; text-align: center; color: #aaa; font-size: 13px; }
.p-col-skor-total { flex: 0.8; text-align: center; font-weight: bold; color: #FDB912; }

/* 5. Mobil Ayar */
@media (max-width: 768px) {
    .p-col-ana img { display: none !important; }
    .t-sol, .t-sag { width: auto !important; flex: 1; font-size: 12px; padding: 0 5px !important; }
    .p-col-skor, .p-col-skor-total { font-size: 11px; flex: 0.7; }
}