﻿/* ============================================
   MatchDetails.css - تنسيقات صفحة تفاصيل المباراة
   ============================================ */

.match-details-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* رأس المباراة */
.match-header-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    text-align: center;
}

.match-header-badge {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.match-group {
    background: rgba(251, 191, 36, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: #fbbf24;
}

.match-round {
    background: rgba(34, 197, 94, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: #22c55e;
}

.match-teams-large {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.team-large {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.team-home {
    justify-content: flex-start;
}

.team-away {
    justify-content: flex-end;
    direction: ltr;
}

.team-avatar-large i {
    font-size: 60px;
    color: #fbbf24;
}

.team-info-large {
    text-align: center;
}

.team-name-large {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.team-role {
    font-size: 11px;
    color: #94a3b8;
}

.team-score-large {
    font-size: 36px;
    font-weight: bold;
    color: #fbbf24;
    min-width: 70px;
}

.match-vs-large {
    font-size: 18px;
    color: #94a3b8;
    font-weight: bold;
}

.match-date-large {
    font-size: 14px;
    color: #94a3b8;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* تشكيلة الفريقين */
.lineups-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fbbf24;
}

    .section-title i {
        font-size: 24px;
        color: #fbbf24;
    }

    .section-title h2 {
        font-size: 22px;
        margin: 0;
        color: #fff;
    }

.lineups-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.lineup-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lineup-header {
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.lineup-captain-avatar i {
    font-size: 32px;
    color: #fbbf24;
    margin-bottom: 8px;
}

.lineup-header h3 {
    font-size: 18px;
    margin: 5px 0;
    color: #fbbf24;
}

.lineup-role {
    font-size: 11px;
    color: #94a3b8;
}

.lineup-players {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
}

.player-avatar-small i {
    font-size: 16px;
    color: #94a3b8;
}

.player-name-small {
    flex: 1;
    font-size: 14px;
    color: #e2e8f0;
}

.player-goals .goal-icon {
    background: rgba(251, 191, 36, 0.2);
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 11px;
    color: #fbbf24;
}

    .player-goals .goal-icon i {
        margin-left: 4px;
    }

/* قائمة الهدافين */
.goalscorers-section {
    margin-bottom: 40px;
}

.goalscorers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.goalscorer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
}

.goalscorer-avatar i {
    font-size: 28px;
    color: #fbbf24;
}

.goalscorer-info {
    flex: 1;
}

.goalscorer-name {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.goalscorer-team {
    font-size: 11px;
    color: #94a3b8;
}

.goalscorer-count {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(251, 191, 36, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
}

    .goalscorer-count i {
        font-size: 12px;
        color: #fbbf24;
    }

    .goalscorer-count span {
        font-size: 16px;
        font-weight: bold;
        color: #fbbf24;
    }

/* زر العودة */
.back-to-matches {
    text-align: center;
    margin-top: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .back-btn:hover {
        transform: translateX(-5px);
        box-shadow: 0 5px 20px rgba(251, 191, 36, 0.4);
        gap: 12px;
    }

/* Light Mode */
body.light-mode .match-header-card,
body.light-mode .lineup-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-mode .team-name-large,
body.light-mode .section-title h2 {
    color: #0f172a;
}

body.light-mode .player-name-small {
    color: #334155;
}

body.light-mode .goalscorer-name {
    color: #0f172a;
}

body.light-mode .goalscorer-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .match-teams-large {
        flex-direction: column;
        gap: 20px;
    }

    .team-large {
        width: 100%;
        justify-content: center;
    }

    .team-away {
        flex-direction: row-reverse;
    }

    .lineups-grid {
        grid-template-columns: 1fr;
    }

    .team-name-large {
        font-size: 18px;
    }

    .team-score-large {
        font-size: 28px;
    }
}
