﻿/* ============================================
   PlayedMatches.css - تنسيقات صفحة المباريات المنتهية
   ============================================ */

.played-matches-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 30px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

    .page-header i {
        font-size: 60px;
        color: #22c55e;
        margin-bottom: 15px;
    }

    .page-header h1 {
        font-size: 32px;
        margin: 0 0 10px;
        background: linear-gradient(135deg, #22c55e, #16a34a);
        -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;
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 41, 59, 0.6);
    padding: 8px 20px;
    border-radius: 40px;
}

    .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;
    }

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Match Result Card */
.match-result-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(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

    .match-result-card:hover {
        transform: translateY(-5px);
        border-color: #22c55e;
        box-shadow: 0 10px 25px rgba(34, 197, 94, 0.15);
    }

/* Card Header */
.match-result-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-group-badge {
    background: rgba(251, 191, 36, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #fbbf24;
}

.match-round-badge {
    background: rgba(34, 197, 94, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #22c55e;
}

.match-date-badge {
    font-size: 11px;
    color: #94a3b8;
}

    .match-date-badge i {
        margin-left: 4px;
    }

/* Match Teams */
.match-result-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
}

.result-team {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

    .result-team:first-child {
        justify-content: flex-start;
    }

    .result-team:last-child {
        justify-content: flex-end;
    }

.result-team-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.result-team-score {
    font-size: 28px;
    font-weight: bold;
    color: #22c55e;
    min-width: 50px;
    text-align: center;
}

.result-vs {
    font-size: 14px;
    color: #94a3b8;
    font-weight: bold;
    margin: 0 15px;
}

/* Card Footer */
.match-result-footer {
    text-align: center;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.details-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .details-link:hover {
        gap: 12px;
        color: #f59e0b;
    }

    .details-link i {
        font-size: 14px;
    }

/* 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(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border-color: #e2e8f0;
}

    body.light-mode .page-header p {
        color: #64748b;
    }

body.light-mode .filters-bar .filter-group {
    background: #ffffff;
    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 .match-result-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

    body.light-mode .match-result-card:hover {
        border-color: #22c55e;
    }

body.light-mode .result-team-name {
    color: #0f172a;
}

body.light-mode .match-date-badge {
    color: #64748b;
}

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-result-teams {
        flex-direction: column;
        gap: 20px;
    }

    .result-team {
        width: 100%;
        justify-content: space-between !important;
    }

        .result-team:last-child {
            flex-direction: row-reverse;
        }

    .result-vs {
        margin: 0;
    }

    .match-result-header {
        flex-direction: column;
        text-align: center;
    }

    .filters-bar {
        padding: 0 15px;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-select {
        flex: 1;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .page-header i {
        font-size: 50px;
    }
}
