/**
 * Asist Krallığı Page CSS
 * Template: page-templates/asist-kralligi.php
 *
 * @package News_Theme
 * @version 1.0.0
 */

/* ===== SCROLL FIX - MASAÜSTÜ ===== */
/* OVERFLOW VE SCROLL SORUNUNU ÇÖZEN DÜZELTME */

/* HTML ve Body - Scroll için gerekli ayarlar */
html {
    height: 100%;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

body {
    min-height: 100vh !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
}

/* Site Main - Flex grow ile genişlesin */
body .site-main {
    flex: 1 1 auto !important;
    display: block !important;
    min-height: 70vh !important;
    width: 100% !important;
}

/* Footer - Her zaman sayfanın en altına */
body .site-footer {
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
}

/* Container'lara yeterli yükseklik */
.ak-container {
    min-height: 600px;
    padding-bottom: 80px;
}

/* ===== Layout Overrides ===== */
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;
}

body .site-content,
body .ast-container,
body #content,
body .content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body .sidebar,
body aside,
body #secondary,
body .widget-area {
    display: none !important;
}

body .content-area,
body main,
body #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Site-main için özel flexbox ayarları - ÜST KURALLARI EZMESİN */
body .site-main {
    flex: 1 1 auto !important;
}

body .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== Page Header ===== */
.ak-page-header {
    background: linear-gradient(135deg, #1e6f9f 0%, #134e6f 100%);
    color: #fff;
    padding: 15px 0;
    margin: 0 0 30px 0;
    box-sizing: border-box;
}

.ak-page-header-inner {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ak-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.ak-title-icon {
    font-size: 20px;
}

.ak-league-select {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 180px;
}

.ak-league-select option {
    background: #1e6f9f;
    color: #fff;
}

/* ===== Container ===== */
.ak-container {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Table Container ===== */
.ak-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ===== Table ===== */
.ak-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ak-table thead {
    background: #2c3e50 !important;
}

.ak-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: #2c3e50 !important;
}

.ak-table th.player-col {
    text-align: left;
    padding-left: 15px;
}

.ak-table th.asist-col {
    color: #fff;
    font-weight: 700;
    background: #f39c12 !important;
    color: #000;
    width: 55px;
}

.ak-table tbody tr {
    border-left: 4px solid transparent;
    transition: all 0.15s ease;
}

.ak-table tbody tr:hover {
    background: #f8fafc;
}

.ak-table td {
    padding: 6px 8px;
    text-align: center;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.ak-table td.rank-cell {
    font-weight: 700;
    color: #64748b;
    width: 50px;
}

.ak-table td.player-cell {
    text-align: left;
    padding-left: 15px;
}

.ak-table .player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ak-table .player-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
}

.ak-table .team-name {
    font-size: 12px;
    color: #64748b;
}

.ak-table td.assists-cell {
    font-weight: 800;
    font-size: 16px;
    color: #1e6f9f;
    background: #fffbeb;
}

/* Top 3 - Gold, Silver, Bronze */
.ak-table tbody tr:nth-child(1) {
    border-left-color: #fbbf24;
}

.ak-table tbody tr:nth-child(1) td.rank-cell {
    color: #fbbf24;
}

.ak-table tbody tr:nth-child(2) {
    border-left-color: #94a3b8;
}

.ak-table tbody tr:nth-child(2) td.rank-cell {
    color: #94a3b8;
}

.ak-table tbody tr:nth-child(3) {
    border-left-color: #cd7f32;
}

.ak-table tbody tr:nth-child(3) td.rank-cell {
    color: #cd7f32;
}

/* ===== Update Info ===== */
.ak-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; }
}

/* ===== Loading ===== */
.loading-cell {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* ===== Dark Mode ===== */
body.dark-mode .ak-page-header {
    background: linear-gradient(135deg, #1a4d6b 0%, #0f2f40 100%);
}

body.dark-mode .ak-league-select {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

body.dark-mode .ak-league-select option {
    background: #1a4d6b;
    color: #fff;
}

body.dark-mode .ak-table-container {
    background: var(--dark-bg-secondary, #1a1a1a);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

body.dark-mode .ak-table thead {
    background: linear-gradient(135deg, #1a3a4a 0%, #0f2833 100%) !important;
}

body.dark-mode .ak-table th {
    background: linear-gradient(135deg, #1a3a4a 0%, #0f2833 100%) !important;
    color: var(--dark-text-primary, #ffffff) !important;
}

body.dark-mode .ak-table th.asist-col {
    background: linear-gradient(135deg, #d68910 0%, #b8740d 100%) !important;
    color: #000 !important;
}

body.dark-mode .ak-table tbody tr {
    background: var(--dark-bg-secondary, #1a1a1a);
}

body.dark-mode .ak-table tbody tr:hover {
    background: var(--dark-bg-tertiary, #252525);
}

body.dark-mode .ak-table td {
    color: var(--dark-text-secondary, #b0b0b0);
    border-bottom: 1px solid var(--dark-border, #2a2a2a);
}

body.dark-mode .ak-table td.rank-cell {
    color: var(--dark-text-secondary, #888);
}

body.dark-mode .ak-table td.player-cell {
    color: var(--dark-text-primary, #e0e0e0);
}

body.dark-mode .ak-table .player-name {
    color: var(--dark-text-primary, #e0e0e0);
}

body.dark-mode .ak-table .team-name {
    color: var(--dark-text-secondary, #888);
}

body.dark-mode .ak-table td.assists-cell {
    color: #4299e1;
    background: rgba(66, 153, 225, 0.1);
}

/* Dark Mode - Top 3 Colors */
body.dark-mode .ak-table tbody tr:nth-child(1) {
    border-left-color: #fbbf24;
}

body.dark-mode .ak-table tbody tr:nth-child(1) td.rank-cell {
    color: #fbbf24;
}

body.dark-mode .ak-table tbody tr:nth-child(2) {
    border-left-color: #c0c0c0;
}

body.dark-mode .ak-table tbody tr:nth-child(2) td.rank-cell {
    color: #c0c0c0;
}

body.dark-mode .ak-table tbody tr:nth-child(3) {
    border-left-color: #cd7f32;
}

body.dark-mode .ak-table tbody tr:nth-child(3) td.rank-cell {
    color: #cd7f32;
}

/* Dark Mode - Update Info */
body.dark-mode .ak-update-info {
    background: var(--dark-bg-primary, #0d0d0d);
    border-top: 1px solid var(--dark-border, #2a2a2a);
    color: var(--dark-text-secondary, #888);
}

body.dark-mode .update-dot {
    background: #4ade80;
}

body.dark-mode .loading-cell {
    color: var(--dark-text-secondary, #888);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .ak-page-header-inner,
    .ak-container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .ak-page-header {
        padding: 12px 0;
        margin: 0 0 15px 0;
    }
    
    .ak-page-header-inner,
    .ak-container {
        width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    .ak-page-header-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .ak-title {
        font-size: 14px;
    }
    
    .ak-league-select {
        width: 100%;
        font-size: 13px;
    }
    
    .ak-table-container {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible;
    }
    
    .ak-table thead {
        display: none;
    }
    
    .ak-table {
        width: 100% !important;
        border-collapse: separate;
        border-spacing: 0 8px;
    }
    
    /* TEK SATIRDA YAN YANA - 6 SÜTUN */
    .ak-table tbody tr {
        display: grid;
        grid-template-columns: 30px 1fr auto auto 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);
    }
    
    .ak-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;
    }
    
    .ak-table tbody td.player-cell {
        grid-column: 2;
        padding: 0 !important;
        text-align: left;
    }
    
    .ak-table .player-info {
        display: block;
    }
    
    .ak-table .player-name {
        font-size: 14px !important;
        font-weight: 700;
    }
    
    .ak-table .team-name {
        display: none !important;
    }
    
    /* Takım - göster */
    .ak-table tbody td:nth-child(3) {
        grid-column: 3 !important;
        font-size: 11px !important;
        color: #64748b !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    /* Asist sayısı - TURUNCU VURGULU */
    .ak-table tbody td.assists-cell {
        grid-column: 4;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #000 !important;
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
        padding: 4px 8px !important;
        border-radius: 6px !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    
    /* Maç sayısı */
    .ak-table tbody td:nth-child(5) {
        grid-column: 5 !important;
        font-size: 11px !important;
        color: #334155 !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    /* Gol sayısı */
    .ak-table tbody td:nth-child(6) {
        grid-column: 6 !important;
        font-size: 11px !important;
        color: #334155 !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    /* Gizle: Diğer sütunlar */
    .ak-table .hide-mobile,
    .ak-table tbody td:nth-child(7) {
        display: none !important;
    }
    
    .ak-update-info {
        padding: 10px 15px;
        font-size: 11px;
        margin-top: 15px;
    }
}

/* Dark Mode - Mobil */
@media (max-width: 768px) {
    body.dark-mode .ak-table tbody tr {
        background: #2d3748;
        border: 1px solid #1a202c;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    body.dark-mode .ak-table .player-name {
        color: #f7fafc !important;
    }
    
    body.dark-mode .ak-table .team-name {
        color: #94a3b8 !important;
    }
    
    body.dark-mode .ak-table tbody td.assists-cell {
        color: #4299e1 !important;
    }
}

@media (max-width: 480px) {
    .ak-page-header {
        padding: 10px 0;
    }
    
    .ak-page-header-inner,
    .ak-container {
        padding: 0 12px !important;
    }
    
    .ak-title {
        font-size: 13px;
    }
    
    .ak-title-icon {
        font-size: 15px;
    }
    
    .ak-table tbody tr {
        padding: 10px;
        gap: 6px;
    }
    
    .ak-table tbody td.rank-cell {
        font-size: 18px !important;
    }
    
    .ak-table .player-name {
        font-size: 13px !important;
    }
    
    .ak-table .team-name {
        font-size: 11px !important;
    }
    
    .ak-table tbody td.assists-cell {
        font-size: 13px !important;
    }
}