/**
 * Canlı Maç Sonuçları Page CSS
 * Template: page-templates/canli-mac-sonuclari.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;
}

/* ===== Container ===== */
.cms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== Header ===== */
.cms-header {
    background: #3a6f8f;
    color: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cms-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cms-title span {
    font-size: 20px;
}

/* ===== Filters ===== */
.cms-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cms-filter {
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
}

.cms-filter:hover {
    background: rgba(255,255,255,0.25);
}

.cms-filter:focus {
    outline: none;
    background: rgba(255,255,255,0.25);
}

.cms-filter option {
    background: #2c3e50;
    color: #fff;
    padding: 8px;
}

/* ===== Matches Container ===== */
.cms-matches {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ===== League Header ===== */
.league-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.league-header::before {
    content: "⚽";
    font-size: 20px;
}

/* ===== Match Card ===== */
.match-card {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.match-card:hover {
    background: linear-gradient(to right, #f8fafc 0%, #ffffff 100%);
    transform: translateX(5px);
    box-shadow: inset 4px 0 0 #e74c3c;
}

.match-card:last-child {
    border-bottom: none;
}

/* ===== Match Content Grid ===== */
.match-content {
    display: grid;
    grid-template-columns: 2fr auto 2fr;
    align-items: center;
    gap: 25px;
}

/* ===== Teams ===== */
.match-team {
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-team-home {
    justify-content: flex-end;
    text-align: right;
}

.match-team-away {
    justify-content: flex-start;
    text-align: left;
}

.team-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #64748b;
    flex-shrink: 0;
}

.team-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    line-height: 1.4;
}

/* ===== Match Center ===== */
.match-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.match-score {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 3px;
    line-height: 1;
}

.match-score.live {
    color: #ef4444;
    animation: pulse 2s infinite;
}

/* ===== Status Badges ===== */
.match-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-live {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    animation: livePulse 2s infinite;
}

.status-finished {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #fff;
}

.status-upcoming {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6);
    }
}

/* ===== Match Time ===== */
.match-time {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* ===== Loading ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ===== Dark Mode ===== */
body.dark-mode .cms-header {
    background: #2c5060;
}

body.dark-mode .cms-filter {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

body.dark-mode .cms-filter:hover,
body.dark-mode .cms-filter:focus {
    background: rgba(255,255,255,0.15);
}

body.dark-mode .cms-filter option {
    background: #1a2a35;
    color: #fff;
}

body.dark-mode .cms-matches {
    background: var(--dark-bg-secondary, #1a1a1a);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

body.dark-mode .league-header {
    background: linear-gradient(135deg, #1a2530 0%, #242f38 100%);
}

body.dark-mode .match-card {
    border-bottom-color: var(--dark-border, #2a2a2a);
}

body.dark-mode .match-card:hover {
    background: linear-gradient(to right, var(--dark-bg-tertiary, #252525) 0%, var(--dark-bg-secondary, #1a1a1a) 100%);
    box-shadow: inset 4px 0 0 #f87171;
}

body.dark-mode .team-logo {
    background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
    color: #888;
}

body.dark-mode .team-name {
    color: var(--dark-text-primary, #e0e0e0);
}

body.dark-mode .match-score {
    color: var(--dark-text-primary, #ffffff);
}

body.dark-mode .match-score.live {
    color: #f87171;
}

body.dark-mode .status-live {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.5);
}

body.dark-mode .status-finished {
    background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
}

body.dark-mode .status-upcoming {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

body.dark-mode .match-time {
    color: var(--dark-text-secondary, #888);
}

body.dark-mode .loading {
    color: var(--dark-text-secondary, #888);
}

body.dark-mode .loading-spinner {
    border-color: #333;
    border-top-color: #f87171;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .cms-container {
        padding: 10px;
    }
    
    .match-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .match-center {
        order: -1;
    }
    
    .match-team {
        justify-content: center !important;
        text-align: center !important;
    }
    
    .match-score {
        font-size: 28px;
    }
    
    .team-name {
        font-size: 15px;
    }
    
    .cms-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cms-title {
        font-size: 16px;
    }
    
    .cms-filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    .league-header {
        font-size: 14px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .cms-title {
        font-size: 15px;
    }
    
    .cms-title span {
        font-size: 18px;
    }
    
    .match-score {
        font-size: 24px;
    }
    
    .team-name {
        font-size: 14px;
    }
    
    .team-logo {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .match-status {
        font-size: 10px;
        padding: 5px 12px;
    }
}