/**
 * Fikstür Page CSS
 * Template: page-templates/fikstur.php
 * 
 * @package News_Theme
 * @version 1.0.0
 */

/* ===== Layout Overrides ===== */
body .sidebar,
body aside,
body #secondary,
body .widget-area {
    display: none !important;
}

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;
}

body .entry-title,
body h1.entry-title,
body .page-title,
body header.entry-header {
    display: none !important;
}

body .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== Page Header ===== */
.fikstur-page-header {
    background: linear-gradient(135deg, #1e6f9f 0%, #134e6f 100%);
    color: #fff;
    padding: 15px 0;
    margin: 0 0 30px 0;
    box-sizing: border-box;
}

.fikstur-page-header-inner {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fikstur-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.fikstur-title-icon {
    font-size: 20px;
}

.fikstur-selects {
    display: flex;
    gap: 12px;
    align-items: center;
}

.fikstur-league-select,
.fikstur-week-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: 150px;
}

.fikstur-league-select option,
.fikstur-week-select option {
    background: #1e6f9f;
    color: #fff;
}

/* ===== Container ===== */
.fikstur-container {
    width: 1140px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Table Container ===== */
.fikstur-table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ===== Table ===== */
.fikstur-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fikstur-table thead {
    background: #2c3e50 !important;
}

.fikstur-table th {
    padding: 12px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #2c3e50 !important;
}

.fikstur-table th.date-col {
    text-align: center;
    width: 120px;
}

.fikstur-table th.time-col {
    text-align: center;
    width: 80px;
}

.fikstur-table th.home-col {
    text-align: right;
    padding-right: 15px;
    width: 200px;
}

.fikstur-table th.score-col {
    background: #1e6f9f !important;
    width: 100px;
    text-align: center;
}

.fikstur-table th.away-col {
    text-align: left;
    padding-left: 15px;
    width: 200px;
}

.fikstur-table th.status-col {
    width: 120px;
}

.fikstur-table tbody tr {
    border-left: 4px solid transparent;
    transition: all 0.15s ease;
}

.fikstur-table tbody tr:hover {
    background: #f8fafc;
}

.fikstur-table td {
    padding: 14px 10px;
    text-align: center;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

/* ===== Table Cells ===== */
.fikstur-table td.date-cell {
    text-align: center;
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
}

.fikstur-table td.time-cell {
    text-align: center;
    font-size: 14px;
    color: #1e6f9f;
    font-weight: 700;
}

.fikstur-table td.home-cell {
    text-align: right;
    padding-right: 15px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.fikstur-table td.away-cell {
    text-align: left;
    padding-left: 15px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.fikstur-table td.score-cell {
    font-weight: 800;
    font-size: 20px;
    color: #1e6f9f;
    background: #f0f9ff;
}

.fikstur-table td.status-cell {
    text-align: center;
}

/* ===== Status Badges ===== */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.finished {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.live {
    background: #fee2e2;
    color: #dc2626;
    animation: pulse 2s infinite;
}

.status-badge.scheduled {
    background: #f3f4f6;
    color: #6b7280;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== Update Info ===== */
.fikstur-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;
}

/* ===== Loading ===== */
.loading-cell {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* ===== Dark Mode ===== */
body.dark-mode .fikstur-page-header {
    background: linear-gradient(135deg, #1a4d6b 0%, #0f2f40 100%);
}

body.dark-mode .fikstur-league-select,
body.dark-mode .fikstur-week-select {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

body.dark-mode .fikstur-league-select option,
body.dark-mode .fikstur-week-select option {
    background: #1a4d6b;
    color: #fff;
}

body.dark-mode .fikstur-table-container {
    background: var(--dark-bg-secondary, #1a1a1a);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

body.dark-mode .fikstur-table thead {
    background: linear-gradient(135deg, #1a3a4a 0%, #0f2833 100%) !important;
}

body.dark-mode .fikstur-table th {
    background: linear-gradient(135deg, #1a3a4a 0%, #0f2833 100%) !important;
    color: var(--dark-text-primary, #ffffff) !important;
}

body.dark-mode .fikstur-table th.score-col {
    background: linear-gradient(135deg, #1e6f9f 0%, #134e6f 100%) !important;
    color: #ffffff !important;
}

body.dark-mode .fikstur-table tbody tr {
    background: var(--dark-bg-secondary, #1a1a1a);
}

body.dark-mode .fikstur-table tbody tr:hover {
    background: var(--dark-bg-tertiary, #252525);
}

body.dark-mode .fikstur-table td {
    color: var(--dark-text-secondary, #b0b0b0);
    border-bottom: 1px solid var(--dark-border, #2a2a2a);
}

body.dark-mode .fikstur-table td.date-cell,
body.dark-mode .fikstur-table td.home-cell,
body.dark-mode .fikstur-table td.away-cell {
    color: var(--dark-text-primary, #e0e0e0);
}

body.dark-mode .fikstur-table td.time-cell {
    color: #4299e1;
}

body.dark-mode .fikstur-table td.score-cell {
    color: #4299e1;
    background: rgba(66, 153, 225, 0.1);
}

/* Dark Mode - Status Badges */
body.dark-mode .status-badge.finished {
    background: rgba(30, 64, 175, 0.2);
    color: #60a5fa;
}

body.dark-mode .status-badge.live {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

body.dark-mode .status-badge.scheduled {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

/* Dark Mode - Update Info */
body.dark-mode .fikstur-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) {
    .fikstur-page-header-inner,
    .fikstur-container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .fikstur-page-header-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .fikstur-selects {
        flex-direction: column;
        width: 100%;
    }
    
    .fikstur-league-select,
    .fikstur-week-select {
        width: 100%;
    }
    
    .fikstur-table th,
    .fikstur-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .fikstur-table .hide-mobile,
    .fikstur-table th.time-col,
    .fikstur-table td.time-cell {
        display: none !important;
    }
    
    .match-display {
        flex-direction: column;
        gap: 8px;
    }
    
    .team-name {
        min-width: auto;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .fikstur-title {
        font-size: 16px;
    }
    
    .fikstur-title-icon {
        font-size: 18px;
    }
    
    .fikstur-table th,
    .fikstur-table td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .fikstur-table td.score-cell {
        font-size: 14px !important;
        line-height: 1 !important;
        padding: 8px 4px !important;
        white-space: nowrap !important;
    }
    
    .status-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}