/* ========================================================== */
/* 🏟️ LİG DETAY SAYFASI - MODERN TASARIM                      */
/* ========================================================== */

/* 1. HEADER BANNER (Hero Section) */
.lig-header-banner {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 2rem;
}

.lig-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, #09090b 10%, rgba(9, 9, 11, 0.4) 100%);
    z-index: 1;
}

.lig-logo-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #18181b;
    border: 4px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.lig-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lig-logo-circle i {
    font-size: 3.5rem;
    color: #52525b;
}

.fw-900 {
    font-weight: 900;
}

.hover-white:hover {
    color: #fff !important;
}

/* ========================================================== */
/* 🌟 MODERN HAFTANIN TAKIMI (TOTW) KART TASARIMI             */
/* ========================================================== */

/* Kartın Dış Çerçevesi */
.totw-showcase-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    margin-left: auto;
    margin-right: auto;
}

/* Modal Arkaplanı ve Tahta */
.totw-board-wrapper {
    padding: 0;
    background: #0f172a; /* Koyu lacivert zemin */
}

.totw-board {
    /* Saha görseli biraz karartılmış */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/arkaplan1.png');
    background-size: cover;
    background-position: center;
    border: none;
    box-shadow: none;
    border-radius: 0;
    aspect-ratio: 16/9;
    max-width: 100% !important;
    margin: 0;
}

/* Grid Yapısı (Esnek Düzen) */
.totw-formation-grid {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Dikeyde ortala */
    align-items: center;
    padding: 10px 0;
    height: 100%;
    gap: 1rem; /* ( ! ) Satırlar arası dikey boşluk */
}

.totw-row {
    display: flex;
    justify-content: center;
    width: 100%;
    /* ( ! ) Kartlar arası yatay boşluk genişletildi. 
       Kart 90px, Scale 1.2 -> 108px olur. 
       60px boşluk birbirine değmemesi için yeterlidir. */
    gap: 60px; 
}

/* --- OYUNCU KARTI (CARD STYLE) --- */
.totw-player-card {
    width: 90px; /* ( ! ) Daha da küçültüldü (Kompakt) */
    background: rgba(255, 255, 255, 0.1); /* Cam Efekti */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: default; /* Tıklanabilir hissi vermesin */
}

.totw-player-card:hover {
    transform: scale(1.15); /* ( ! ) Büyüme efekti */
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    z-index: 100; /* ( ! ) Her zaman en üstte kalır */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Kart Üst Bilgi (Numara ve Takım) */
.card-header-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-position-num {
    font-family: 'Impact', sans-serif;
    font-size: 0.9rem; /* ( ! ) Küçültüldü */
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.card-team-logo {
    width: 16px; /* ( ! ) Küçültüldü */
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}

/* Oyuncu Avatarı */
.card-avatar-box {
    width: 42px; /* ( ! ) Küçültüldü */
    height: 42px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    margin-bottom: 4px;
    position: relative;
}

/* İsim */
.card-player-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.75rem; /* ( ! ) Küçültüldü */
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* MVP ÖZEL TASARIMI (ALTIN) */
.totw-player-card.mvp-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(0, 0, 0, 0.6));
    border: 1px solid #fbbf24; /* Çerçeve inceltildi */
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    /* MVP kartı varsayılan olarak diğerlerinden %10 büyük */
    transform: scale(1.1); 
}

.totw-player-card.mvp-card:hover {
    /* Hover olduğunda %25 büyür */
    transform: scale(1.25); 
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.7);
}

.mvp-card .card-position-num { color: #fbbf24; }
.mvp-card .card-avatar-box { border-color: #fbbf24; color: #fbbf24; }
.mvp-card .card-player-name { color: #fbbf24; }

.mvp-badge {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

/* 3. İÇERİK KARTLARI (Haberler ve Liste Kartları) */
.bg-dark-card {
    background-color: #18181b;
    border: 1px solid #27272a;
}

.hover-lift {
    transition: transform 0.2s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
}

.card-img-top-wrapper {
    position: relative;
    overflow: hidden;
}

.card-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 4. SEZON LİSTESİ */
.season-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    transition: all 0.2s;
}

.season-card:hover {
    background-color: #27272a;
    border-color: #3f3f46;
}

.season-icon {
    width: 40px;
    height: 40px;
    background: #27272a;
    color: #a1a1aa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    /* Mobilde yatay boşluklar daha dar */
    .totw-row { gap: 30px; } 
    
    /* Kart boyutu biraz daha küçülür */
    .totw-player-card { width: 80px; padding: 4px; }
    .card-avatar-box { width: 36px; height: 36px; font-size: 0.8rem; }
    .card-player-name { font-size: 0.65rem; }
    .card-position-num { font-size: 0.8rem; }
    .card-team-logo { width: 14px; height: 14px; }
    
    /* MVP kartı mobilde fazla taşmasın */
    .totw-player-card.mvp-card { transform: scale(1.05); }
    .totw-player-card.mvp-card:hover { transform: scale(1.15); }
}