﻿/* ============================================
   Default.Cards.css - الكروت المختلفة
   ============================================ */

/* Group Leaders Section */
.group-leaders {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.leader-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 25px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

    .leader-card::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.group-a-leader {
    border-right: 5px solid #fbbf24;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    position: relative;
}

    .group-a-leader::after {
        content: 'A';
        position: absolute;
        top: 15px;
        left: 20px;
        font-size: 40px;
        font-weight: bold;
        opacity: 0.1;
        color: #fbbf24;
        font-family: monospace;
    }

.group-b-leader {
    border-left: 5px solid #fbbf24;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    position: relative;
}

    .group-b-leader::after {
        content: 'B';
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 40px;
        font-weight: bold;
        opacity: 0.1;
        color: #fbbf24;
        font-family: monospace;
    }

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.25);
    border-color: #fbbf24;
}

.leader-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #0f172a;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
    transition: all 0.3s ease;
}

.leader-card:hover .leader-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.6);
}

.leader-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.leader-group {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.leader-name {
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.leader-points {
    font-size: 16px;
    color: #cbd5e1;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

    .leader-points strong {
        font-size: 32px;
        color: #fbbf24;
        font-weight: bold;
        margin-left: 5px;
    }

/* Trophy Animation */
@keyframes trophyGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    }
}

.leader-icon i {
    animation: trophyGlow 2s ease-in-out infinite;
}

/* Champions Row */
.champions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.champion-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 25px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(251, 191, 36, 0.3);
    min-height: 140px;
}

    .champion-card:hover {
        transform: translateY(-5px);
        border-color: #fbbf24;
        box-shadow: 0 15px 35px rgba(251, 191, 36, 0.2);
    }

    .champion-card.overall-leader {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
        border-left: 5px solid #fbbf24;
    }

    .champion-card.top-scorer {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1));
        border-right: 5px solid #22c55e;
    }

.champion-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #0f172a;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.top-scorer .champion-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.champion-info {
    flex: 1;
}

.champion-title {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.champion-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.overall-leader .champion-name {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.top-scorer .champion-name {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.champion-points {
    font-size: 14px;
    color: #94a3b8;
}

    .champion-points strong {
        font-size: 20px;
        font-weight: bold;
        margin-left: 5px;
    }

.overall-leader .champion-points strong {
    color: #fbbf24;
}

.top-scorer .champion-points strong {
    color: #22c55e;
}

.champion-medal {
    font-size: 60px;
    opacity: 0.15;
    position: absolute;
    bottom: 5px;
    right: 15px;
    pointer-events: none;
}

/* Goalkeepers Leaderboard */
.goalkeepers-container {
    margin-top: 40px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border-radius: 25px;
    padding: 25px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.goalkeepers-header {
    text-align: center;
    margin-bottom: 25px;
}

    .goalkeepers-header i {
        font-size: 40px;
        color: #fbbf24;
        margin-bottom: 10px;
    }

    .goalkeepers-header h3 {
        font-size: 24px;
        margin: 0 0 5px 0;
        color: #fbbf24;
    }

    .goalkeepers-header p {
        color: #94a3b8;
        font-size: 14px;
    }

.goalkeepers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.goalkeeper-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

    .goalkeeper-card:hover {
        transform: translateY(-3px);
        border-color: #fbbf24;
        background: rgba(251, 191, 36, 0.1);
    }

.goalkeeper-rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0f172a;
    font-size: 18px;
}

.goalkeeper-card.rank-1 .goalkeeper-rank {
    background: linear-gradient(135deg, #FFD700, #F59E0B);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.goalkeeper-card.rank-2 .goalkeeper-rank {
    background: linear-gradient(135deg, #C0C0C0, #808080);
}

.goalkeeper-card.rank-3 .goalkeeper-rank {
    background: linear-gradient(135deg, #CD7F32, #B45309);
}

.goalkeeper-info {
    flex: 1;
}

.goalkeeper-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.goalkeeper-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.goalkeeper-points {
    text-align: left;
}

    .goalkeeper-points strong {
        font-size: 24px;
        font-weight: bold;
        color: #fbbf24;
        display: block;
        line-height: 1;
    }

/* Group Standings */
.group-standings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.group-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 20px;
}

.group-title {
    font-size: 18px;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 15px;
    text-align: center;
}

.rank-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
}

/* Rank Colors */
.rank-1 {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: #0f172a;
    font-weight: bold;
}

.rank-2 {
    background: linear-gradient(90deg, #94a3b8, #64748b);
    color: #fff;
}

.rank-3 {
    background: linear-gradient(90deg, #cd7f32, #b45309);
    color: #fff;
}

/* Light Mode Cards */
body.light-mode .leader-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    body.light-mode .leader-card:hover {
        box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2);
        border-color: #fbbf24;
    }

body.light-mode .leader-group {
    color: #64748b;
}

body.light-mode .leader-name {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .leader-points {
    color: #475569;
}

    body.light-mode .leader-points strong {
        color: #f59e0b;
    }

body.light-mode .leader-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

body.light-mode .champion-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    body.light-mode .champion-card:hover {
        border-color: #fbbf24;
        box-shadow: 0 10px 25px rgba(251, 191, 36, 0.15);
    }

body.light-mode .champion-title {
    color: #64748b;
}

body.light-mode .champion-points {
    color: #475569;
}

body.light-mode .goalkeepers-container {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-mode .goalkeepers-header p {
    color: #64748b;
}

body.light-mode .goalkeeper-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

    body.light-mode .goalkeeper-card:hover {
        background: #fef9e3;
        border-color: #fbbf24;
    }

body.light-mode .goalkeeper-name {
    color: #0f172a;
}

body.light-mode .goalkeeper-stats {
    color: #64748b;
}

/* Responsive Cards */
@media (max-width: 768px) {
    .group-leaders {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .leader-card {
        padding: 20px;
        gap: 15px;
    }

    .leader-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .leader-name {
        font-size: 20px;
    }

    .leader-points strong {
        font-size: 24px;
    }

    .champions-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .champion-card {
        padding: 20px;
        min-height: 120px;
    }

    .champion-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .champion-name {
        font-size: 20px;
    }

    .champion-medal {
        font-size: 50px;
        opacity: 0.1;
    }

    .goalkeepers-grid {
        grid-template-columns: 1fr;
    }

    .goalkeeper-card {
        padding: 12px;
    }

    .goalkeeper-name {
        font-size: 14px;
    }

    .goalkeeper-points strong {
        font-size: 20px;
    }
}

/* Overall Leader & Top Scorer - Same as Group Leaders */
.overall-leader {
    border-right: 5px solid #fbbf24 !important;
    border-left: none !important;
}

.top-scorer {
    border-left: 5px solid #22c55e !important;
    border-right: none !important;
}

.overall-leader .leader-name {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.top-scorer .leader-name {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overall-leader .leader-points strong {
    color: #fbbf24;
}

.top-scorer .leader-points strong {
    color: #22c55e;
}


/* ============================================
   Losers Row - Overall Loser & Lowest Scorer
   ============================================ */

.losers-row {
    margin-bottom: 40px;
}

.overall-loser {
    background: linear-gradient(135deg, #ff4d4d, #b30000) !important;
    border-left: 5px solid #ff0000 !important;
    border-right: none !important;
    position: relative;
    overflow: hidden;
}

    .overall-loser::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 77, 77, 0.3) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

    .overall-loser .leader-icon {
        background: linear-gradient(135deg, #ff4d4d, #b30000) !important;
        box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
    }

    .overall-loser .leader-name {
        background: linear-gradient(135deg, #ffcccc, #ff9999) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    .overall-loser .leader-points strong {
        color: #ff9999 !important;
    }

.lowest-scorer {
    background: linear-gradient(135deg, #ff9966, #cc3300) !important;
    border-right: 5px solid #ff6600 !important;
    border-left: none !important;
    position: relative;
    overflow: hidden;
}

    .lowest-scorer::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 153, 102, 0.3) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

    .lowest-scorer .leader-icon {
        background: linear-gradient(135deg, #ff9966, #cc3300) !important;
        box-shadow: 0 5px 15px rgba(255, 153, 102, 0.4);
    }

    .lowest-scorer .leader-name {
        background: linear-gradient(135deg, #ffe6cc, #ffcc99) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    .lowest-scorer .leader-points strong {
        color: #ffcc99 !important;
    }

    .overall-loser .leader-icon i,
    .lowest-scorer .leader-icon i {
        font-size: 28px;
    }

    /* Animation for losers (optional - slower pulse) */
    .overall-loser .leader-icon i,
    .lowest-scorer .leader-icon i {
        animation: loserPulse 2.5s ease-in-out infinite;
    }

@keyframes loserPulse {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 77, 77, 0.3);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 77, 77, 0.6);
        transform: scale(1.05);
    }
}

.lowest-scorer .leader-icon i {
    animation: loserPulseOrange 2.5s ease-in-out infinite;
}

@keyframes loserPulseOrange {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 153, 102, 0.3);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 15px rgba(255, 153, 102, 0.6);
        transform: scale(1.05);
    }
}

/* Light Mode Losers */
body.light-mode .overall-loser {
    background: linear-gradient(135deg, #ffcccc, #ff9999) !important;
    border-left-color: #ff0000 !important;
}

    body.light-mode .overall-loser .leader-name {
        background: linear-gradient(135deg, #b30000, #ff4d4d) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

body.light-mode .lowest-scorer {
    background: linear-gradient(135deg, #ffe6cc, #ffcc99) !important;
    border-right-color: #ff6600 !important;
}

    body.light-mode .lowest-scorer .leader-name {
        background: linear-gradient(135deg, #cc3300, #ff9966) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

/* Responsive */
@media (max-width: 768px) {
    .losers-row {
        margin-bottom: 30px;
    }
}

/* ============================================
   Group Top Scorers Row
   ============================================ */

.group-scorers-row {
    margin-bottom: 40px;
}

.group-a-scorer {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-right: 5px solid #fbbf24 !important;
    border-left: none !important;
}

.group-b-scorer {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-left: 5px solid #fbbf24 !important;
    border-right: none !important;
}

.group-a-scorer .leader-name,
.group-b-scorer .leader-name {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.group-a-scorer .leader-points strong,
.group-b-scorer .leader-points strong {
    color: #fbbf24;
}

/* Light Mode */
body.light-mode .group-a-scorer,
body.light-mode .group-b-scorer {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-mode .group-a-scorer:hover,
body.light-mode .group-b-scorer:hover {
    border-color: #fbbf24;
}

body.light-mode .group-a-scorer .leader-name,
body.light-mode .group-b-scorer .leader-name {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .group-scorers-row {
        margin-bottom: 30px;
    }
}


/* تثبيت حجم الخط في جميع الكروت */
.leader-name,
.champion-name,
.overall-leader .leader-name,
.top-scorer .leader-name,
.overall-loser .leader-name,
.lowest-scorer .leader-name,
.group-a-leader .leader-name,
.group-b-leader .leader-name,
.group-a-scorer .leader-name,
.group-b-scorer .leader-name {
    font-size: 16px !important;
}