﻿/* ============================================
   Standings.css - تنسيقات صفحة جدول الترتيب
   ============================================ */

.standings-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;
    }

/* Group Standings */
.standings-group {
    margin-bottom: 50px;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 25px;
    border-radius: 16px;
}

    .group-header.group-a {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
        border-right: 4px solid #fbbf24;
    }

    .group-header.group-b {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
        border-left: 4px solid #22c55e;
    }

    .group-header i {
        font-size: 28px;
        color: #fbbf24;
    }

    .group-header h2 {
        font-size: 24px;
        margin: 0;
        color: #fff;
        flex: 1;
    }

.group-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #94a3b8;
}

/* Standings Table */
.standings-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .standings-table th {
        text-align: right;
        padding: 15px 12px;
        background: rgba(0, 0, 0, 0.3);
        color: #fbbf24;
        font-weight: 600;
        border-bottom: 2px solid rgba(251, 191, 36, 0.3);
    }

    .standings-table td {
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: #cbd5e1;
    }

    .standings-table tr:hover {
        background: rgba(251, 191, 36, 0.05);
    }

    .standings-table .rank {
        font-weight: bold;
        width: 50px;
        text-align: center;
    }

    .standings-table .player-name {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 500;
    }

.player-avatar {
    width: 32px;
    height: 32px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .player-avatar i {
        font-size: 16px;
        color: #fbbf24;
    }

.goalkeeper-badge {
    background: rgba(34, 197, 94, 0.2);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    margin-right: 8px;
}

    .goalkeeper-badge i {
        margin-left: 3px;
    }

.standings-table .points {
    font-weight: bold;
    color: #fbbf24;
    font-size: 18px;
}

/* Rank Colors */
tr.rank-1 {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), transparent);
}

tr.rank-2 {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.15), transparent);
}

tr.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), transparent);
}

tr.rank-1 .rank {
    color: #fbbf24;
    font-weight: bold;
}

/* Overall Stats */
.overall-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

    .stat-card i {
        font-size: 40px;
        color: #fbbf24;
    }

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    display: block;
}

.stat-label {
    font-size: 12px;
    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 .group-header h2 {
    color: #0f172a;
}

body.light-mode .standings-table-wrapper {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .standings-table th {
    background: #f8fafc;
    color: #f59e0b;
}

body.light-mode .standings-table td {
    color: #334155;
    border-bottom-color: #e2e8f0;
}

body.light-mode .standings-table tr:hover {
    background: #fef9e3;
}

body.light-mode .stat-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-mode .stat-value {
    color: #0f172a;
}

/* Responsive */
@media (max-width: 768px) {
    .standings-table th,
    .standings-table td {
        padding: 8px;
        font-size: 12px;
    }

    .player-avatar {
        width: 24px;
        height: 24px;
    }

        .player-avatar i {
            font-size: 12px;
        }

    .standings-table .points {
        font-size: 14px;
    }

    .overall-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .group-header {
        padding: 12px 20px;
    }

        .group-header h2 {
            font-size: 18px;
        }
}
