/* Classic Leaderboard Overlay */
.classic-leaderboard-overlay {
    position: fixed;
    top: 70px;
    /* Height of navbar approx */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: flex-start;
    /* Align to top of this container */
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
    padding-top: 0;
    /* Already pushed down by top */
    animation: fadeIn 0.3s ease;
}

.classic-leaderboard-content {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    height: 100%;
    /* Fill the available space */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.classic-leaderboard-content .leaderboard-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Re-use existing leaderboard styles where possible, but ensure specific overrides if needed */
.classic-leaderboard-content .leaderboard-header {
    background: #f0f9ff;
    /* Light blue for classic */
}

.classic-leaderboard-content .leaderboard-header h3 {
    color: #0369a1;
}

.classic-leaderboard-content .leaderboard-user-stat {
    background: #e0f2fe;
    border-color: #bae6fd;
}

.classic-leaderboard-content .leaderboard-user-stat .stat-label {
    color: #0369a1;
}

.classic-leaderboard-content .leaderboard-user-stat .stat-value {
    color: #0284c7;
}

.classic-leaderboard-content .leaderboard-table tr:nth-child(1) td {
    background: #fff7ed;
    color: #9a3412;
}

/* Close button for leaderboards */
.leaderboard-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    transition: all 0.2s;
    border-radius: 0.25rem;
}

.leaderboard-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1e293b;
}

/* Tabs */
.leaderboard-tabs {
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.tab-button {
    background: transparent;
    border: none;
    border-radius: 999px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.025em;
}

.tab-button:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
}

.tab-button.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Collectible Image Style */
.fact-image-wrapper {
    display: inline-block;
    max-width: 100%;
    position: relative;
    padding: 0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow:
        0 0 0 4px #ffffff,
        0 0 0 5px #e2e8f0,
        0 10px 25px -5px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.fact-image-collectible {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    background-color: #fff;
    position: relative;
    z-index: 1;
    display: block;
}

/* Shine Effect - Subtle Holo Card Sheen */
.shine-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Holographic gradient */
    background: linear-gradient(115deg,
            transparent 20%,
            rgba(255, 255, 255, 0.3) 40%,
            rgba(255, 0, 255, 0.2) 45%,
            /* Magenta tint */
            rgba(0, 255, 255, 0.2) 50%,
            /* Cyan tint */
            rgba(255, 255, 0, 0.2) 55%,
            /* Yellow tint */
            rgba(255, 255, 255, 0.3) 60%,
            transparent 80%);
    background-size: 250% 250%;
    background-position: 0% 0%;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: color-dodge;
    opacity: 0;
    border-radius: 0.75rem;
    animation: holo-sheen 7s ease-in-out infinite;
}

@keyframes holo-sheen {

    0%,
    70% {
        background-position: 150% 150%;
        opacity: 0;
    }

    80% {
        opacity: 0.8;
    }

    90% {
        background-position: -50% -50%;
        opacity: 0;
    }

    100% {
        background-position: -50% -50%;
        opacity: 0;
    }
}