/* Leaderboard Stats Cards */
.leaderboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.lb-stat-card {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.lb-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lb-stat-icon {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.lb-stat-icon svg {
    width: 28px;
    height: 28px;
}

.lb-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.lb-stat-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Leaderboard Section */
.leaderboard-section {
    margin-top: 8px;
}

.leaderboard-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    padding-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-content {
    min-height: 200px;
}

/* Leaderboard List */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.leaderboard-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.leaderboard-item.top-three {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.leaderboard-rank {
    font-size: 24px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-amount {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.leaderboard-date {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.leaderboard-badge {
    padding: 4px 12px;
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #4338ca;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px !important;
    color: #64748b !important;
    font-weight: 400 !important;
}

.empty-state.error .empty-icon {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Loading Skeleton */
.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.skeleton-item {
    height: 60px;
    background: linear-gradient(
        90deg,
        #e2e8f0 0%,
        #f1f5f9 50%,
        #e2e8f0 100%
    );
    background-size: 200% 100%;
    border-radius: 12px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* MOBILE RESPONSIVE */

@media (max-width: 480px) {
    .leaderboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .lb-stat-card {
        padding: 10px;
    }

    .lb-stat-value {
        font-size: 18px;
    }

    .lb-stat-label {
        font-size: 9px;
    }

    .leaderboard-item {
        padding: 12px;
        gap: 12px;
    }

    .leaderboard-rank {
        font-size: 20px;
        min-width: 32px;
    }

    .leaderboard-amount {
        font-size: 16px;
    }

    /* Button and close button fixes for mobile */
    .modal-footer .btn {
        height: 48px !important;
        min-height: 48px !important;
        font-size: 15px;
    }

    .modal-close {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px;
        min-height: 36px;
    }

    .modal-close svg {
        width: 20px;
        height: 20px;
    }
}

