@import url('https://fonts.googleapis.com/css2?family=Alice&family=Cinzel:wght@400;700&family=Space+Mono:wght@400;700&family=Great+Vibes&display=swap');

/* Gold Foil Styles */
/* STATIC ONLY - DO NOT ANIMATE */
.bg-gold-foil {
    background: linear-gradient(120deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    animation: none !important;
    transition: none !important;
    background-size: 100% !important;
    /* Prevents background shifting */
}

/* STATIC ONLY - DO NOT ANIMATE */
.text-gold-foil {
    background: linear-gradient(120deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.5));
    animation: none !important;
    transition: none !important;
    background-size: 100% !important;
    /* Prevents background shifting */
}

body {
    font-family: 'Space Mono', monospace;
}

h1,
h2,
h3,
.serif {
    font-family: 'Cinzel', serif;
}

.alice {
    font-family: 'Alice', serif;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.hidden-view {
    display: none !important;
}

.animate-bounce-slow {
    animation: float 3s ease-in-out infinite;
}

.animate-fadeIn {
    animation: pulse-slow 0.5s ease-out forwards;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

/* Leaderboard Styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Scoped h1 for leaderboard to preserve gradient */
.leaderboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FACC15 0%, #EA580C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.back-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #f3f4f6;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-btn {
    background: #1a102e;
    border: 1px solid #A855F7;
    color: #f3f4f6;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Space Mono', monospace;
}

.filter-btn.active {
    background: #A855F7;
    font-weight: 600;
    color: white;
}

.leaderboard-list {
    background: #1a102e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-item:hover {
    background: rgba(168, 85, 247, 0.1);
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    width: 40px;
    color: #9ca3af;
    font-family: 'Cinzel', serif;
}

.rank-1 {
    color: #FFD700;
}

.rank-2 {
    color: #C0C0C0;
}

.rank-3 {
    color: #CD7F32;
}

.user-info {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #A855F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
    color: white;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.points {
    font-weight: 700;
    color: #FACC15;
    font-size: 1.2rem;
    font-family: 'Space Mono', monospace;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}