/* Leaderboard Widget Styles */

.leaderboard-widget {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.leaderboard-header {
    background: linear-gradient(135deg, #002D72 0%, #004494 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-rank-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.rank-label {
    opacity: 0.9;
}

.rank-value {
    font-size: 20px;
    font-weight: 700;
    color: #FF5910;
}

.rank-total {
    opacity: 0.8;
    font-size: 12px;
}

.leaderboard-tabs {
    display: flex;
    background: #f1f3f4;
    padding: 10px;
    gap: 8px;
    overflow-x: auto;
}

.leaderboard-tab {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    background: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.leaderboard-tab:hover {
    background: #e8eaed;
    transform: translateY(-2px);
}

.leaderboard-tab.active {
    background: #002D72;
    color: white;
}

.tab-icon {
    font-size: 20px;
}

.tab-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-content {
    padding: 20px;
}

.leaderboard-table-container {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: #f8f9fa;
}

.leaderboard-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5f6368;
    border-bottom: 2px solid #e8eaed;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: #f8f9fa;
}

.leaderboard-table tbody tr.current-user {
    background: #e6f4ea;
    border-left: 4px solid #34A853;
}

.leaderboard-table tbody tr.current-user:hover {
    background: #d4edda;
}

.leaderboard-table td {
    padding: 16px;
    font-size: 14px;
    color: #202124;
}

.rank-cell {
    font-weight: 700;
    width: 80px;
}

.rank-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    background: #f1f3f4;
    color: #5f6368;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    font-size: 14px;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    color: white;
    font-size: 14px;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #B8733E 100%);
    color: white;
    font-size: 14px;
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e8eaed;
}

.player-name {
    font-weight: 600;
}

.points-cell {
    font-weight: 700;
    color: #FF5910;
    font-size: 16px;
}

.predictions-cell,
.correct-cell,
.total-cell {
    color: #5f6368;
    text-align: center;
}

.accuracy-cell {
    color: #34A853;
    font-weight: 600;
}

.leaderboard-empty {
    text-align: center;
    padding: 60px 20px;
    color: #5f6368;
}

.leaderboard-empty p {
    font-size: 16px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .leaderboard-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .leaderboard-tabs {
        flex-direction: column;
    }

    .leaderboard-tab {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
    }

    .player-cell {
        min-width: 120px;
    }

    .player-avatar {
        width: 28px;
        height: 28px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 8px;
        font-size: 12px;
    }

    .points-cell {
        font-size: 14px;
    }
}
