/* Galatasaray Arşiv Kartı Tasarımı */
.gs-archive-card {
    border: 1px solid #333;
    padding: 25px;
    border-radius: 12px;
    background-color: #0b0b0b; /* Siyah arka plana uyumlu koyu gri/siyah */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.gs-archive-card h2 {
    color: #A90432; /* Parçalı Kırmızı */
    margin-top: 0;
    border-bottom: 2px solid #FDB912;
    padding-bottom: 10px;
    display: inline-block;
    font-size: 28px;
}

.gs-archive-card p {
    font-size: 18px; /* Masaüstü boyutu */
    line-height: 1.8;
    color: #e0e0e0; /* Siyah üzerinde göz yormayan açık gri */
    margin-top: 15px;
}

/* Mobil Uyumluluk (Responsive) */
@media (max-width: 768px) {
    .gs-archive-card {
        padding: 15px;
    }
    
    .gs-archive-card h2 {
        font-size: 22px;
    }
    
    .gs-archive-card p {
        font-size: 15px; /* Mobilde daha küçük font */
        line-height: 1.6;
    }
}


/* H3 Başlık Stili */
.gs-archive-card h3 {
    color: #FDB912; /* Galatasaray Sarısı */
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-left: 4px solid #A90432; /* Sol tarafa kırmızı bir şerit */
    padding-left: 15px;
}

/* Görsel Kutuları İçin Sabitleyici */
.img-float-right, .img-float-left {
    width: 30%; /* Max-width yerine direkt width vererek zorluyoruz */
    height: auto;
    margin-bottom: 15px;
    border: 2px solid #d9fd16;
    padding: 5px;
    cursor: pointer;
    box-sizing: border-box; /* Padding ve border'ı %25'in içine dahil eder */
}

.img-float-right {
    float: right;
    margin-left: 20px;
}

.img-float-left {
    float: left;
    margin-right: 20px;
}

/* Resmin kendisinin kutudan taşmasını engelle */
.img-float-right img, .img-float-left img {
    width: 100% !important;
    height: auto;
    display: block;
}

/* MOBİL AYARI: Mobilde yine tam ekran olsun */
@media (max-width: 768px) {
    .img-float-right, .img-float-left {
        width: 100%; 
        float: none;
        margin: 0 auto 20px auto;
    }
}
/* Altyazı Stili */
.img-caption {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    text-align: center;
    margin-top: 5px;
    display: block;
}

/* Modal (Büyütme Ekranı) Arka Planı */
/* Modal Arka Planı ve Blur Efekti */
.gs-modal {
    display: none; 
    position: fixed; 
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Siyahlık azaltıldı, site daha belirgin */
    backdrop-filter: blur(12px); /* Efsanevi bulanıklık efekti burada */
    -webkit-backdrop-filter: blur(12px); /* Safari desteği */
}

/* Resim Boyutu ve Ortalama */
.gs-modal-content {
    margin: auto;
    display: block;
    /* Önemli: Genişliği ve yüksekliği başlangıçta kısıtlamıyoruz */
    width: auto !important; 
    height: auto !important;
    min-width: 50vw; /* Çok küçük resimler bile ekranın yarısını kaplasın */
    max-width: 95vw; /* Ekran genişliğinin %95'ine kadar büyüsün */
    max-height: 90vh; /* Ekran yüksekliğinin %90'ına kadar büyüsün */
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    border: 3px solid #FDB912;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    object-fit: contain;
}

/* Kapatma Butonu (X) */
.gs-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    text-shadow: 0 0 10px #000;
}
/* Mobilde bazı sütunları gizle ve fontu küçült */
@media (max-width: 600px) {
    .hide-mobile {
        display: none !important;
    }
    .gs-table-mobile {
        font-size: 11px !important; /* Mobilde yazı fontu küçüldü */
    }
    .gs-table-mobile th, .gs-table-mobile td {
        padding: 6px 4px !important; /* Hücre boşlukları daraltıldı */
    }
}




    .gs-player-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 15px;
        padding: 10px 0;
    }

    .player-card-horizontal {
        display: flex;
        align-items: center;
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
        border: 2px solid #FDB912;
        border-left: 6px solid #A90432;
        border-radius: 10px;
        padding: 12px;
        color: white;
        font-family: sans-serif;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        min-height: 100px; /* Kart boyu sabit kalsın */
    }

    .player-img-wrap {
        flex: 0 0 80px;
        height: 200px;
        border-radius: 8px;
        overflow: hidden;
        border: 1.5px solid #FDB912;
        margin-right: 12px;
    }

    .player-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .player-content {
        flex: 1;
        min-width: 0;
    }

    .player-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* İsim uzarsa aşağı kayabilsin diye */
        border-bottom: 1px solid rgba(253,185,18,0.2);
        padding-bottom: 3px;
        gap: 5px;
    }

    .player-name {
        color: #FDB912;
        font-size: 1.1rem; /* Masaüstü boyutu */
        font-weight: bold;
        text-transform: uppercase;
        margin: 0;
        line-height: 1.1;
    }

    .player-role {
        font-size: 0.6rem;
        background: #A90432;
        color: #fff;
        padding: 2px 5px;
        border-radius: 3px;
        white-space: nowrap; /* Rol hep tek satır kalsın */
    }

    .player-bio {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-top: 6px;
        color: #ddd;
        font-style: italic;
    }

    /* MOBİL DÜZENLEMELER */
    @media (max-width: 480px) {
        .player-name {
            font-size: 0.95rem; /* Mobilde isimler küçülsün */
        }
        .player-bio {
            font-size: 0.75rem;
        }
        .gs-player-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 350px) {
        .player-card-horizontal {
            flex-direction: column;
            text-align: center;
        }
        .player-img-wrap {
            margin-right: 0;
            margin-bottom: 8px;
        }
        .player-header {
            flex-direction: column;
            align-items: center;
        }
    }


/* MAÇ ARŞİVİ ANA TASARIMI */
.sezon-arsivi {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sezon-arsivi summary {
    padding: 15px;
    background: #A90432;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #FDB912;
}

.sezon-arsivi summary::-webkit-details-marker { display: none; }
.sezon-arsivi summary::after { content: '[+]'; color: #FDB912; font-family: monospace; }
.sezon-arsivi[open] summary::after { content: '[-]'; }

.mac-listesi {
    padding: 5px;
    background: #111;
}

/* YENİ MAÇ KARTI TASARIMI (GRID) */
.match-card {
    display: grid;
    grid-template-columns: 85px 110px 1fr 65px 75px 40px;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid #333;
    color: #ddd;
    transition: background 0.3s;
}

.match-card:hover { background: #1a1a1a; }
.match-card:last-child { border-bottom: none; }

/* Turnuva Renk Şeritleri (Sol kenar) */
.HAZTUR { border-left: 4px solid #28a745; } /* Hazırlık - Yeşil */
.TSL { border-left: 4px solid #007bff; }    /* Süper Lig - Mavi */
.UCL { border-left: 4px solid #f1c40f; }    /* Şampiyonlar Ligi - Altın */
.ZTK { border-left: 4px solid #e67e22; }    /* Türkiye Kupası - Turuncu */

/* Turnuva Renkleri ve Yazı Uyumu */
.HAZTUR { border-left: 4px solid #28a745; } 
.HAZTUR .match-type { color: #28a745; } /* Hazırlık - Yeşil */

.TSL { border-left: 4px solid #007bff; }    
.TSL .match-type { color: #007bff; }    /* Süper Lig - Mavi */

.UCL { border-left: 4px solid #f1c40f; }    
.UCL .match-type { color: #f1c40f; }    /* Şampiyonlar Ligi - Altın */

.ZTK { border-left: 4px solid #e67e22; }    
.ZTK .match-type { color: #e67e22; }    /* Türkiye Kupası - Turuncu */

.match-date { color: #888; font-size: 0.8rem; }
.match-type { font-weight: bold; font-size: 0.75rem; color: #bbb; }
.match-teams { font-size: 0.95rem; }
.match-teams b { color: #FDB912; font-weight: bold; }
.match-score { font-weight: bold; text-align: center; color: #fff; font-size: 1rem; }
.match-iy { color: #666; font-size: 0.8rem; text-align: center; }

/* G/B/M Renkleri */
.res-G { color: #2ecc71; font-weight: bold; text-align: center; }
.res-B { color: #f1c40f; font-weight: bold; text-align: center; }
.res-M { color: #e74c3c; font-weight: bold; text-align: center; }

/* MOBİL UYUMLULUK (Responsive) */
@media (max-width: 650px) {
    .match-card {
        grid-template-columns: 1fr 65px 35px; /* Sadece Takımlar, Skor ve Sonuç */
        gap: 5px;
        padding: 15px 8px;
    }
    .hide-m { display: none; } /* Tarih, Tür ve IY mobilde gizlenir */
    .match-teams { font-size: 0.85rem; line-height: 1.2; }
    .match-score { font-size: 0.9rem; }
}

/* İSTATİSTİK TASARIMI */
/* İSTATİSTİK TASARIMI - YAN YANA GÖRÜNÜM */
/* ESNEK İSTATİSTİK GRID SİSTEMİ */
.stats-container {
    padding: 15px;
    background: #111;
    display: grid;
    gap: 20px;
    align-items: start;
    margin-bottom: 10px;
}

/* 3'lü Satır Düzeni (Masaüstü) */
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 2'li Satır Düzeni (Masaüstü) */
.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* MOBİL AYAR: Tüm gridler telefonda tek sütun olur */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); } /* Tablette 2'ye düşer */
}

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; } /* Mobilde tam ekran */
}

.stats-card {
    background: #1d1d1d;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    height: 100%;
}
.stats-card h4 {
    color: #FDB912;
    margin-top: 0;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    font-size: 1rem;
}

.stat-item {
    margin-bottom: 12px;
}



.stat-bar-bg {
    background: #333;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
}

/* Sonuç Renkleri */
.bg-g { background: #2ecc71; }
.bg-b { background: #f1c40f; }
.bg-m { background: #e74c3c; }

.small-note {
    font-size: 0.75rem;
    color: #888;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}
/* Skor kutucuklarının daralınca bozulmasını engeller */
/* Başlığın tüm satırı kaplamasını sağlar */
.full-width {
    grid-column: 1 / -1; /* Baştan sona kadar yayıl */
    padding: 0 5px;
}

/* Önceki hatayı önlemek için skor kutusu sabitlemesi */
.score-badge {
    background: #444;
    color: #FDB912;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
    font-size: 0.9rem;
    display: inline-block;
    white-space: nowrap;
    min-width: 55px;
    text-align: center;
}

/* İsim ve skor kutusu arasındaki mesafe */
.stat-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* PARLAK ALTIN SARISI YÖNLENDİRME KUTUSU */
/* GÖRSEL DESTEKLİ YÖNLENDİRME KUTUSU */
.icerik-yonlendirme {
    background: #FDB912;
    border-left: 6px solid #ff0000; /* YouTube vurgusu için kırmızı şerit */
    margin: 25px 0;
    padding: 12px; /* Resim gelince iç boşluğu biraz daralttık */
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden; /* Resim köşelerden taşmasın */
}

.icerik-yonlendirme:hover {
    background: #ffc738;
    transform: scale(1.02);
}

.yonlendirme-resim {
    width: 100px; /* Küçük kapak resmi genişliği */
    height: 65px; /* Standart 16:9 oranına yakın */
    border-radius: 4px;
    object-fit: cover; /* Resmi kutuya sığdırır, bozmaz */
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    flex-shrink: 0; /* Mobilde resmin ezilmesini önler */
}

.yonlendirme-metin {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.yonlendirme-ust {
    font-size: 0.75rem;
    color: #333;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.yonlendirme-baslik {
    font-size: 1rem;
    color: #000;
    font-weight: bold;
    line-height: 1.2;
    /* Uzun başlıklar için 2 satır sınırı */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobil Ayarı */
@media (max-width: 600px) {
    .yonlendirme-resim {
        width: 80px;
        height: 50px;
    }
    .yonlendirme-baslik {
        font-size: 0.9rem;
    }
}
.yonlendirme-icon {
    font-size: 30px;
    flex-shrink: 0;
}



/* Mobil Ayarı */
@media (max-width: 600px) {
    .icerik-yonlendirme {
        padding: 15px;
    }
}