/**
 * En Değerli Genç Yetenekler Sayfası Stilleri
 * Mor/Purple Tema (#8b5cf6) - Dark Mode Destekli
 */

/* =================================================================
   1. TEMEL SIFIRLAMA VE GİZLEME
   ================================================================= */

/* Tüm gereksiz alanları gizle */
body .site-breadcrumb,
body .breadcrumb,
body .page-header,
body .entry-header,
body .entry-title,
body h1.entry-title,
body .page-title,
body header.entry-header,
body .ast-archive-description,
body .archive-header,
body .page-banner,
body .hero-section {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Container padding sıfırla */
body .site-content,
body .ast-container,
body #content,
body .content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Sidebar gizle */
body .sidebar,
body aside,
body #secondary,
body .widget-area {
    display: none !important;
}

/* Content genişlet */
body .content-area,
body .site-main,
body main,
body #primary {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Entry content padding sıfırla */
body .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* =================================================================
   2. SAYFA BAŞLIĞI (MOR TEMA)
   ================================================================= */

.evy-page-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
    padding: 15px 0;
    margin: 0 0 30px 0;
    box-sizing: border-box;
}

.evy-page-header-inner {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.evy-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.evy-title-icon {
    font-size: 20px;
}

/* =================================================================
   3. ANA CONTAINER
   ================================================================= */

.evy-container {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =================================================================
   4. TABLO CONTAINER
   ================================================================= */

.evy-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* =================================================================
   5. TABLO STİLLERİ
   ================================================================= */

.evy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* Tablo Başlık */
.evy-table thead {
    background: linear-gradient(135deg, #1a3a4a 0%, #0f2833 100%) !important;
}

.evy-table th {
    padding: 8px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #1a3a4a 0%, #0f2833 100%) !important;
}

.evy-table th.player-col {
    text-align: left;
    padding-left: 15px;
}

/* DEĞER Sütunu - Mor Gradient */
.evy-table th.value-col {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
    width: 100px;
}

/* Tablo Satırları */
.evy-table tbody tr {
    border-left: 4px solid transparent;
    transition: all 0.15s ease;
}

.evy-table tbody tr:hover {
    background: #f8fafc;
}

.evy-table td {
    padding: 6px 8px;
    text-align: center;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.evy-table td.rank-cell {
    font-weight: 700;
    color: #64748b;
    width: 50px;
}

.evy-table td.player-cell {
    text-align: left;
    padding-left: 15px;
}

.evy-table .player-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
}

.evy-table td.value-cell {
    font-weight: 800;
    font-size: 16px;
    color: #8b5cf6;
    background: #faf5ff;
}

/* =================================================================
   6. TOP 3 SIRALAMA (ALTIN, GÜMÜŞ, BRONZ)
   ================================================================= */

/* 🥇 1. Sıra - Altın */
.evy-table tbody tr:nth-child(1) {
    border-left-color: #fbbf24;
}

.evy-table tbody tr:nth-child(1) td.rank-cell {
    color: #fbbf24;
}

/* 🥈 2. Sıra - Gümüş */
.evy-table tbody tr:nth-child(2) {
    border-left-color: #c0c0c0;
}

.evy-table tbody tr:nth-child(2) td.rank-cell {
    color: #94a3b8;
}

/* 🥉 3. Sıra - Bronz */
.evy-table tbody tr:nth-child(3) {
    border-left-color: #cd7f32;
}

.evy-table tbody tr:nth-child(3) td.rank-cell {
    color: #cd7f32;
}

/* =================================================================
   7. GÜNCELLEME BİLGİSİ
   ================================================================= */

.evy-update-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    color: #666;
}

.update-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =================================================================
   8. LOADING STATE
   ================================================================= */

.loading-cell {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* =================================================================
   9. DARK MODE STİLLERİ
   ================================================================= */

body.dark-mode .evy-page-header {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

body.dark-mode .evy-container {
    color: #e2e8f0;
}

body.dark-mode .evy-table-container {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Dark Mode - Tablo Başlık */
body.dark-mode .evy-table thead {
    background: linear-gradient(135deg, #1e3a4a 0%, #0d2433 100%) !important;
}

body.dark-mode .evy-table th {
    background: linear-gradient(135deg, #1e3a4a 0%, #0d2433 100%) !important;
    color: #ffffff !important;
}

/* Dark Mode - DEĞER Sütunu */
body.dark-mode .evy-table th.value-col {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
}

/* Dark Mode - Tablo Satırları */
body.dark-mode .evy-table tbody tr {
    background: #1a1a1a;
}

body.dark-mode .evy-table tbody tr:hover {
    background: #262626;
}

body.dark-mode .evy-table td {
    color: #cbd5e1;
    border-bottom: 1px solid #2d2d2d;
}

body.dark-mode .evy-table td.rank-cell {
    color: #94a3b8;
}

body.dark-mode .evy-table .player-name {
    color: #f1f5f9;
}

body.dark-mode .evy-table td.value-cell {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.15);
}

/* Dark Mode - Top 3 Renkleri Aynı Kalır */
body.dark-mode .evy-table tbody tr:nth-child(1) td.rank-cell {
    color: #fbbf24;
}

body.dark-mode .evy-table tbody tr:nth-child(2) td.rank-cell {
    color: #c0c0c0;
}

body.dark-mode .evy-table tbody tr:nth-child(3) td.rank-cell {
    color: #cd7f32;
}

/* Dark Mode - Güncelleme Bilgisi */
body.dark-mode .evy-update-info {
    background: #262626;
    border-top: 1px solid #2d2d2d;
    color: #94a3b8;
}

body.dark-mode .loading-cell {
    color: #94a3b8;
}

/* =================================================================
   10. RESPONSIVE TASARIM
   ================================================================= */

@media (max-width: 1200px) {
    .evy-page-header-inner,
    .evy-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {
    .evy-page-header {
        padding: 12px 0;
        margin: 0 0 15px 0;
    }
    
    .evy-page-header-inner,
    .evy-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .evy-page-header-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .evy-title {
        font-size: 14px;
        flex-wrap: wrap;
        justify-content: center;
        line-height: 1.3;
    }
    
    .evy-title-icon {
        font-size: 16px;
    }
    
    .evy-table-container {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible;
    }
    
    /* Tabloyu gizle */
    .evy-table thead {
        display: none;
    }
    
    .evy-table {
        width: 100% !important;
        border-collapse: separate;
        border-spacing: 0 8px;
    }
    
    /* Her satır kart - TEK SATIRDA YAN YANA */
    .evy-table tbody tr {
        display: grid;
        grid-template-columns: 30px 1fr auto auto;
        grid-template-rows: auto;
        background: #ffffff;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        border-left: none !important;
        gap: 12px;
        align-items: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    /* Sıra numarası */
    .evy-table tbody td.rank-cell {
        grid-column: 1;
        font-size: 20px !important;
        font-weight: 800;
        padding: 0 !important;
        padding-right: 8px !important;
        text-align: center;
    }
    
    .evy-table tbody tr:nth-child(1) td.rank-cell {
        color: #fbbf24 !important;
    }
    
    .evy-table tbody tr:nth-child(2) td.rank-cell {
        color: #c0c0c0 !important;
    }
    
    .evy-table tbody tr:nth-child(3) td.rank-cell {
        color: #cd7f32 !important;
    }
    
    .evy-table tbody td.rank-cell {
        color: #cbd5e1 !important;
    }
    
    /* Oyuncu adı */
    .evy-table tbody td.player-cell {
        grid-column: 2;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .evy-table .player-name {
        font-size: 14px !important;
        font-weight: 700;
        color: #1e293b !important;
        line-height: 1.3;
    }
    
    .evy-table .player-team {
        display: none !important;
    }
    
    /* Takım adı - Görünür */
    .evy-table tbody td:nth-child(3) {
        grid-column: 3;
        display: block !important;
        font-size: 12px !important;
        color: #64748b !important;
        white-space: nowrap;
        padding: 0 !important;
    }
    
    /* Değer */
    .evy-table tbody td.value-cell {
        grid-column: 4;
        font-size: 14px !important;
        font-weight: 700;
        color: #10b981 !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: right !important;
        border-top: none !important;
        white-space: nowrap;
    }
    
    /* Yaş ve Ülke - Gizli */
    .evy-table tbody td:nth-child(5),
    .evy-table tbody td:nth-child(6) {
        display: none !important;
    }
    
    .evy-update-info {
        padding: 10px 15px;
        font-size: 11px;
        background: #f8f9fa;
        border-radius: 8px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .evy-page-header {
        padding: 10px 0;
        margin: 0 0 12px 0;
    }
    
    .evy-page-header-inner,
    .evy-container {
        padding: 0 12px !important;
    }
    
    .evy-title {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .evy-title-icon {
        font-size: 15px;
    }
    
    .evy-table {
        border-spacing: 0 6px;
    }
    
    .evy-table tbody tr {
        grid-template-columns: 35px 1fr auto;
        padding: 12px;
        border-radius: 10px;
        gap: 3px 10px;
    }
    
    .evy-table tbody td.rank-cell {
        font-size: 22px !important;
    }
    
    .evy-table .player-name {
        font-size: 15px !important;
    }
    
    .evy-table tbody td:nth-child(3) {
        font-size: 11px !important;
    }
    
    .evy-table tbody td.value-cell {
        font-size: 16px !important;
    }
    
    .evy-update-info {
        padding: 8px 12px;
        font-size: 10px;
        margin-top: 12px;
    }
    
    .update-dot {
        width: 6px;
        height: 6px;
    }
}

/* Dark Mode - Mobil Liste */
@media (max-width: 768px) {
    body.dark-mode .evy-table tbody tr {
        background: #2d3748;
        border: 1px solid #1a202c;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    body.dark-mode .evy-table .player-name {
        color: #f7fafc !important;
    }
    
    body.dark-mode .evy-table tbody td:nth-child(3) {
        color: #94a3b8 !important;
    }
    
    body.dark-mode .evy-table tbody td.value-cell {
        color: #10b981 !important;
    }
    
    body.dark-mode .evy-update-info {
        background: #262626;
        color: #94a3b8;
    }
}