/* MAÇ ANALİZLERİ VE KADRO TASARIM CSS DOSYASI (match-styles.css) */

.match-lineups-container {
    background-color: #111111;
    color: #ffffff;
    padding: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 12px;
    max-width: 900px;
    margin: 20px auto;
    border: 1px solid #222222;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lineups-header-main {
    color: #FFD700;
    text-align: center;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 12px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.6em;
    font-weight: bold;
}

/* Div Tabanlı Yan Yana Kolon Düzeni (Flexbox) */
.lineups-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: space-between;
}

.team-lineup-box {
    flex: 1;
    min-width: 320px;
    background-color: #161616;
    border-radius: 14px; /* Şık Oval Köşeler */
    padding: 20px;
    border: 1px solid #2a2a2a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-lineup-box:hover {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

/* Takımların Renk Tonlarına Göre Üst Çizgi */
.aus-box {
    border-top: 4px solid #002b7f; /* Avustralya Koyu Mavi */
}

.tur-box {
    border-top: 4px solid #e30a17; /* Türkiye Kırmızısı */
}

.team-title-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #1f1f1f;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #333333;
}

.team-flag {
    width: 32px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.team-name {
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffffff;
}

.section-divider-title {
    color: #FFD700; /* Vurgulu Altın Sarısı */
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 1px solid #333333;
    padding-bottom: 5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-divider-title.m-top {
    margin-top: 25px;
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #1d1d1d;
    border-radius: 8px; /* Oval Satırlar */
    border: 1px solid #262626;
}

/* Zebra Çizgili Satırlar İçin */
.player-row:nth-child(even) {
    background-color: #222222;
}

.player-number {
    color: #FFD700; /* Altın Sarısı Dakika/Numara */
    font-weight: bold;
    font-size: 1.05em;
    width: 35px;
    display: inline-block;
}

.player-name {
    color: #e0e0e0;
    font-size: 0.98em;
}

.yedek-list .player-name {
    color: #b5b5b5; /* Yedekler için hafif mat beyaz */
}

.market-value-badge {
    background-color: #1f1f1f;
    border: 1px solid #FFD700;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    font-size: 0.95em;
}

.gold-highlight {
    color: #FFD700;
    font-weight: bold;
}

/* Mobil Cihazlar İçin Otomatik Alt Alta Geçme Ayarı */
@media (max-width: 768px) {
    .lineups-wrapper {
        flex-direction: column;
    }
    .team-lineup-box {
        width: 100%;
    }
}

/* PUAN DURUMU GÖRSEL KAPSAYICISI */
.group-table-img-container {
    max-width: 900px;
    margin: 25px auto;
    padding: 10px;
    background-color: #111111;
    border-radius: 12px; /* Kadrolarla uyumlu oval köşeler */
    border: 1px solid #222222;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden; /* Köşelerden taşmayı önler */
}

.responsive-group-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Masaüstünde hafif ve şık bir odaklanma efekti */
@media (min-width: 769px) {
    .responsive-group-img:hover {
        transform: scale(1.01);
        box-shadow: 0 0 12px rgba(227, 10, 23, 0.2); /* Türkiye kırmızısı hafif ışıma */
    }
}

/* Mobil cihazlar için ekstra güvenli alan */
@media (max-width: 768px) {
    .group-table-img-container {
        padding: 5px;
        margin: 15px 10px;
    }
}

/* MAÇTAN ÖNEMLİ ANLAR (TIMELINE) TASARIMI */
.match-timeline-container {
    background-color: #111111;
    color: #ffffff;
    padding: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 12px;
    max-width: 900px;
    margin: 20px auto;
    border: 1px solid #222222;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.timeline-header {
    color: #FFD700;
    text-align: center;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 12px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.5em;
    font-weight: bold;
}

/* Zaman Tüneli Ana Gövde */
.timeline-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Ortadaki Dikey Çizgi */
.timeline-body::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333333;
    transform: translateX(-50%);
}

/* Zaman Tüneli Satırı */
.timeline-row {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Sol ve Sağ Bloklar */
.timeline-left, .timeline-right {
    width: 45%;
    display: flex;
    flex-direction: column;
}

.timeline-left {
    text-align: right;
    justify-content: flex-end;
    padding-right: 20px;
}

.timeline-right {
    text-align: left;
    justify-content: flex-start;
    padding-left: 20px;
    margin-left: auto;
}

/* Ortadaki Dakika Rozeti */
.timeline-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #222222;
    color: #FFD700;
    font-weight: bold;
    font-size: 0.9em;
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid #444444;
    min-width: 35px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Olay İçerik Kutuları */
.event-card {
    background-color: #161616;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #262626;
    display: inline-block;
    max-width: 100%;
}

/* Olay Tiplerine Göre İkon ve Renk Düzenleri */
.event-goal {
    border-left: 3px solid #00ff00;
    font-weight: bold;
}
.timeline-left .event-goal {
    border-left: none;
    border-right: 3px solid #00ff00;
}

.event-sub {
    border-left: 3px solid #ffaa00;
    font-size: 0.95em;
}
.timeline-left .event-sub {
    border-left: none;
    border-right: 3px solid #ffaa00;
}

.event-card.yellow-card {
    border-left: 3px solid #ffff00;
}

/* Detay Yazıları */
.assist-text {
    font-size: 0.85em;
    color: #888888;
    display: block;
    margin-top: 2px;
}

.sub-in { color: #2ecc71; font-weight: bold; }
.sub-out { color: #e74c3c; }

/* Mobil Cihazlar İçin Tam Uyum */
@media (max-width: 768px) {
    .timeline-body::before {
        left: 35px;
    }
    .timeline-badge {
        left: 35px;
        transform: translateX(-50%);
    }
    .timeline-row {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 70px;
        width: auto;
    }
    .timeline-left, .timeline-right {
        width: 100%;
        text-align: left;
        padding: 0;
    }
    .timeline-left {
        margin-bottom: 0;
    }
    .timeline-left .event-goal, .timeline-left .event-sub {
        border-right: none;
        border-left: 3px solid #00ff00;
    }
    .timeline-left .event-sub {
        border-left: 3px solid #ffaa00;
    }
}
/* ZAMAN TÜNELİ YEREL İKON AYARLARI */
.timeline-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
    margin-left: 2px;
    display: inline-block;
}

/* MAÇ İSTATİSTİKLERİ GÖRSEL ŞÖLEN TASARIMI */
.stats-main-container {
    background-color: #111111;
    color: #ffffff;
    padding: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 12px;
    max-width: 900px;
    margin: 20px auto;
    border: 1px solid #222222;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.stats-section-title {
    color: #FFD700;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 1px solid #333333;
    padding-bottom: 6px;
    margin: 30px 0 15px 0;
    text-transform: uppercase;
}

/* Topla Oynama Özel Alanı */
.possession-wrapper {
    background-color: #161616;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #2a2a2a;
    text-align: center;
    margin-bottom: 25px;
}

.possession-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 12px;
}

.possession-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.possession-value {
    font-size: 1.6em;
    font-weight: bold;
    min-width: 70px;
}

.possession-value.team-left { color: #ffffff; text-align: right; }
.possession-value.team-right { color: #2ecc71; text-align: left; } /* Üstün olan yeşil */

.possession-progress-track {
    flex: 1;
    height: 16px;
    background-color: #2c3e50; /* Sağ takımın rengi (Türkiye %72) */
    border-radius: 10px;
    overflow: hidden;
    display: flex;
}

.possession-progress-fill {
    height: 100%;
    background-color: #95a5a6; /* Sol takımın rengi (Avustralya %28) */
    width: 28%;
}

/* Satır İstatistikleri Düzeni */
.stat-row-item {
    margin-bottom: 18px;
}

.stat-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.stat-number-box {
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 30px;
    text-align: center;
    background-color: #1f1f1f;
    color: #ffffff;
    border: 1px solid #333333;
}

/* Veride üstün olan takıma parlak yeşil arka plan kutusu */
.stat-number-box.winner-highlight {
    background-color: #00ff66 !important;
    color: #000000 !important;
    border-color: #00ff66 !important;
}

.stat-name-text {
    color: #b5b5b5;
    font-weight: 500;
}

/* Çift Yönlü İlerleme Çubukları */
.stat-bars-wrapper {
    display: flex;
    width: 100%;
    gap: 10px;
}

.bar-half-left, .bar-half-right {
    flex: 1;
    height: 8px;
    background-color: #222222;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    position: absolute;
    top: 0;
    border-radius: 4px;
}

/* Sol takımın çubuğu sağa doğru dolar */
.bar-half-left .bar-fill {
    right: 0;
    background-color: #00ff66; /* Standart yeşil bar rengi */
}

/* Sağ takımın çubuğu sola doğru dolar */
.bar-half-right .bar-fill {
    left: 0;
    background-color: #14f36c; /* Standart yeşil bar rengi */
}

/* Eğer bir takım bariz ezici üstünse barı daha belirgin yapmak için pasif taraf rengi */
.bar-half-left .bar-fill.passive, .bar-half-right .bar-fill.passive {
    background-color: #2c3e50;
}

/* Mobil için küçük yazı boyutu optimizasyonu */
@media (max-width: 480px) {
    .stat-name-text { font-size: 0.85em; }
    .stat-number-box { font-size: 0.85em; padding: 2px 6px; }
}
