﻿/* ============================================ */
/* بطاقات الرباعي والنهائي - Default.Knockout.css */
/* ============================================ */

.knockout-section {
    margin: 30px 0 20px 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 25px;
    padding: 25px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.final-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.05));
    border: 2px solid #fbbf24;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.15);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

    .section-header h2 {
        font-size: 22px;
        color: #fff;
        margin: 0;
    }

        .section-header h2 i {
            color: #fbbf24;
            margin-left: 10px;
        }

.badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.badge-warning {
    background: #fbbf24;
    color: #0f172a;
}

.badge-danger {
    background: #ef4444;
    color: #fff;
}

.knockout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.match-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

    .match-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .match-card.semi-final {
        border-right: 4px solid #3b82f6;
    }

    .match-card.final {
        border: 2px solid #fbbf24;
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(15, 23, 42, 0.9));
        max-width: 600px;
        margin: 0 auto;
    }

.match-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
}

.match-number {
    color: #94a3b8;
    font-weight: 500;
}

.match-status {
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-1 {
    background: #3b82f6;
    color: #fff;
}

.status-2 {
    background: #22c55e;
    color: #fff;
}

.status-3 {
    background: #f59e0b;
    color: #fff;
}

.status-4 {
    background: #ef4444;
    color: #fff;
}

.status-5 {
    background: #6b7280;
    color: #fff;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.team {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

    .team.home {
        justify-content: flex-start;
    }

    .team.away {
        justify-content: flex-end;
    }

.team-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.team-score {
    font-size: 28px;
    font-weight: bold;
    color: #fbbf24;
    min-width: 40px;
    text-align: center;
}

.match-vs {
    font-size: 14px;
    font-weight: bold;
    color: #64748b;
    padding: 0 15px;
}

.match-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

.match-winner {
    font-size: 14px;
    color: #94a3b8;
}

    .match-winner i {
        color: #fbbf24;
        margin-left: 5px;
    }

/* النهائي */
.final-container {
    display: flex;
    justify-content: center;
}

.final-trophy {
    text-align: center;
    font-size: 48px;
    margin-bottom: 10px;
    animation: trophyGlow 2s ease-in-out infinite;
}

@keyframes trophyGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 30px rgba(251, 191, 36, 0.7);
        transform: scale(1.05);
    }
}

.final-teams .team-name {
    font-size: 20px;
}

.final-teams .team-score {
    font-size: 36px;
}

.final-vs {
    font-size: 18px;
    padding: 0 25px;
}

.final-footer {
    justify-content: space-between;
    padding: 15px 20px 0 20px;
}

.final-status {
    font-size: 14px;
    padding: 5px 18px;
}

.final-winner {
    font-size: 16px;
    color: #fbbf24;
}

    .final-winner i {
        color: #fbbf24;
    }

/* لا توجد مباريات */
.no-matches-message {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    font-size: 16px;
}

    .no-matches-message i {
        font-size: 40px;
        display: block;
        margin-bottom: 15px;
        color: #64748b;
    }

/* Light Mode */
body.light-mode .knockout-section {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-mode .section-header h2 {
    color: #0f172a;
}

body.light-mode .match-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

    body.light-mode .match-card.final {
        background: linear-gradient(135deg, #fef9e3, #ffffff);
    }

body.light-mode .team-name {
    color: #0f172a;
}

body.light-mode .match-number {
    color: #64748b;
}

body.light-mode .match-winner {
    color: #475569;
}

body.light-mode .match-vs {
    color: #94a3b8;
}

body.light-mode .final-winner {
    color: #f59e0b;
}

body.light-mode .final-section {
    background: linear-gradient(135deg, #fef9e3, #ffffff);
    border: 2px solid #f59e0b;
}

body.light-mode .badge-warning {
    background: #f59e0b;
    color: #fff;
}

body.light-mode .badge-danger {
    background: #dc2626;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .knockout-grid {
        grid-template-columns: 1fr;
    }

    .knockout-section {
        padding: 15px;
    }

    .match-card {
        padding: 15px;
    }

    .match-teams {
        flex-wrap: wrap;
        justify-content: center;
    }

    .team {
        flex: 0 0 100%;
        justify-content: center !important;
        gap: 10px;
    }

    .team-name {
        font-size: 14px;
    }

    .team-score {
        font-size: 22px;
        min-width: 30px;
    }

    .match-vs {
        padding: 5px 0;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    .final-teams .team-name {
        font-size: 16px;
    }

    .final-teams .team-score {
        font-size: 28px;
    }

    .final-vs {
        font-size: 14px;
        padding: 5px 0;
    }

    .final-footer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .final-trophy {
        font-size: 36px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

        .section-header h2 {
            font-size: 18px;
        }

    .badge {
        font-size: 12px;
        padding: 4px 12px;
    }
}
