﻿/* ============================================
   Matches.css - تنسيقات صفحة المباريات
   ============================================ */

.matches-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.05));
    border-radius: 30px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

    .page-header i {
        font-size: 60px;
        color: #fbbf24;
        margin-bottom: 15px;
    }

    .page-header h1 {
        font-size: 32px;
        margin: 0 0 10px;
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .page-header p {
        color: #94a3b8;
        font-size: 16px;
    }

/* Filters Bar */
.filters-bar {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: rgba(30, 41, 59, 0.6);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .filter-group label {
        color: #94a3b8;
        font-size: 14px;
    }

.filter-select {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .filter-select:hover {
        border-color: #fbbf24;
    }

/* Rounds Navigation */
.rounds-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.round-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #cbd5e1;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .round-btn:hover {
        background: rgba(251, 191, 36, 0.2);
        border-color: #fbbf24;
        color: #fbbf24;
        transform: translateY(-2px);
    }

    .round-btn.active {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: #0f172a;
        border-color: transparent;
        font-weight: bold;
    }

/* Match Cards */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.match-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.2);
    transition: all 0.3s ease;
}

    .match-card:hover {
        transform: translateY(-5px);
        border-color: #fbbf24;
        box-shadow: 0 10px 25px rgba(251, 191, 36, 0.15);
    }

    /* Status Styles */
    .match-card.status-1 {
        border-left: 4px solid #fbbf24;
    }

    .match-card.status-2 {
        border-left: 4px solid #22c55e;
    }

    .match-card.status-3 {
        border-left: 4px solid #f97316;
    }

    .match-card.status-4 {
        border-left: 4px solid #ef4444;
    }

    .match-card.status-5 {
        border-left: 4px solid #6b7280;
    }

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 10px;
}

.match-round, .match-group {
    font-size: 12px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.match-status-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .match-status-badge.status-1-badge {
        background: rgba(251, 191, 36, 0.2);
        color: #fbbf24;
    }

    .match-status-badge.status-2-badge {
        background: rgba(34, 197, 94, 0.2);
        color: #22c55e;
    }

    .match-status-badge.status-3-badge {
        background: rgba(249, 115, 22, 0.2);
        color: #f97316;
    }

    .match-status-badge.status-4-badge {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }

    .match-status-badge.status-5-badge {
        background: rgba(107, 114, 128, 0.2);
        color: #9ca3af;
    }

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
}

.team {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.team-home {
    justify-content: flex-start;
}

.team-away {
    justify-content: flex-end;
    direction: ltr;
}

.team-avatar i {
    font-size: 48px;
    color: #fbbf24;
}

.team-info {
    text-align: center;
}

.team-name {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.team-role {
    font-size: 10px;
    color: #94a3b8;
}

.team-score {
    font-size: 28px;
    font-weight: bold;
    color: #fbbf24;
    min-width: 50px;
    text-align: center;
}

.match-vs {
    font-size: 14px;
    color: #94a3b8;
    font-weight: bold;
    margin: 0 15px;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.match-date {
    font-size: 12px;
    color: #94a3b8;
}

    .match-date i {
        margin-left: 5px;
    }

.match-details-link {
    font-size: 12px;
    color: #fbbf24;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

    .match-details-link:hover {
        gap: 8px;
        color: #f59e0b;
    }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 25px;
}

    .empty-state i {
        font-size: 60px;
        color: #94a3b8;
        margin-bottom: 20px;
    }

    .empty-state h3 {
        font-size: 24px;
        margin-bottom: 10px;
        color: #fff;
    }

    .empty-state p {
        color: #94a3b8;
    }

/* Light Mode */
body.light-mode .page-header {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.03));
}

    body.light-mode .page-header p {
        color: #64748b;
    }

body.light-mode .filters-bar {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .filter-select {
    background: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
}

body.light-mode .round-btn {
    background: #ffffff;
    color: #475569;
    border-color: #e2e8f0;
}

    body.light-mode .round-btn:hover {
        background: #fef9e3;
        border-color: #fbbf24;
        color: #f59e0b;
    }

    body.light-mode .round-btn.active {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        color: #0f172a;
    }

body.light-mode .match-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-mode .team-name {
    color: #0f172a;
}

body.light-mode .empty-state {
    background: #f8fafc;
}

    body.light-mode .empty-state h3 {
        color: #0f172a;
    }

/* Responsive */
@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }

    .match-teams {
        flex-direction: column;
        gap: 20px;
    }

    .team {
        width: 100%;
        justify-content: space-between;
    }

    .team-away {
        flex-direction: row-reverse;
    }

    .match-vs {
        margin: 0;
    }

    .filters-bar {
        border-radius: 20px;
        padding: 15px;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
    }

    .match-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Stats Summary */
.stats-summary {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 12px 25px;
    text-align: center;
    min-width: 120px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

    .stat-badge i {
        font-size: 20px;
        color: #fbbf24;
        display: block;
        margin-bottom: 5px;
    }

    .stat-badge span {
        font-size: 24px;
        font-weight: bold;
        color: #fff;
        display: block;
    }

    .stat-badge small {
        font-size: 11px;
        color: #94a3b8;
    }

/* Light Mode */
body.light-mode .stat-badge {
    background: #ffffff;
    border-color: #e2e8f0;
}

    body.light-mode .stat-badge span {
        color: #0f172a;
    }