/* --- LEADERBOARD V3.0 - "Season Timeline" Theme --- */

:root {
    --lb-bg: #111827;
    --lb-card-bg: rgba(31, 41, 55, 0.4);
    --lb-card-hover: rgba(55, 65, 81, 0.6);
    --lb-border: rgba(255, 255, 255, 0.08);
    --lb-primary: #FDBA74; /* Apricot */
    --lb-secondary: #5EEAD4; /* Cyan */
    --lb-text: #F3F4F6;
    --lb-text-muted: #9CA3AF;
    
    --font-heading: 'Raligo', sans-serif;
    --font-body: 'Strenx', sans-serif;
}

body {
    background-color: var(--lb-bg);
    color: var(--lb-text);
    font-family: var(--font-body);
}

/* Hero */
.leaderboard-hero {
    padding: 8rem 1.5rem 2rem;
    text-align: center;
    background: radial-gradient(circle at top, #1F2937 0%, var(--lb-bg) 70%);
    position: relative;
}
.season-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid rgba(94, 234, 212, 0.2);
    color: var(--lb-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.leaderboard-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--lb-text);
    margin-bottom: 0.5rem;
}

/* Season Timeline Selector */
.season-timeline-wrapper {
    margin: -30px auto 40px; /* Overlap hero */
    max-width: 900px;
    padding: 0 1rem;
}
.season-track {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--lb-border);
    padding: 8px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}
.season-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--lb-text-muted);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    text-align: center;
}
.season-btn:hover { background: rgba(255,255,255,0.03); color: var(--lb-text); }
.season-btn.active {
    background: rgba(94, 234, 212, 0.1);
    border-color: rgba(94, 234, 212, 0.3);
    color: var(--lb-secondary);
    box-shadow: 0 0 15px rgba(94, 234, 212, 0.1);
}

/* Wrapper */
.leaderboard-wrapper { max-width: 1000px; margin: 0 auto 5rem; padding: 0 1.5rem; }

/* Controls */
.controls-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem;
    color: var(--lb-text-muted);
    font-size: 0.9rem;
}
.search-wrapper { position: relative; width: 100%; max-width: 300px; }
.search-wrapper i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; opacity: 0.5; }
.search-wrapper input {
    width: 100%;
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid var(--lb-border);
    padding: 10px 10px 10px 36px;
    border-radius: 8px;
    color: var(--lb-text);
    outline: none;
    transition: 0.3s;
}
.search-wrapper input:focus { border-color: var(--lb-primary); background: rgba(31, 41, 55, 0.6); }

/* List Styles */
.list-header {
    display: grid; grid-template-columns: 60px 2fr 1.5fr 1fr;
    padding: 1rem 1.5rem;
    color: var(--lb-text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--lb-border);
}

.leaderboard-list { list-style: none; padding: 0; }
.leaderboard-list li {
    display: grid; grid-template-columns: 60px 2fr 1.5fr 1fr;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--lb-card-bg);
    border: 1px solid transparent;
    border-bottom: 1px solid var(--lb-border);
    transition: all 0.2s;
    margin-bottom: 4px;
    border-radius: 8px;
}
.leaderboard-list li:hover {
    background: var(--lb-card-hover);
    transform: translateX(5px);
    border-color: rgba(255,255,255,0.1);
}

.member-info { font-weight: 600; color: var(--lb-text); font-size: 1rem; }
.specialty-badge {
    font-size: 0.8rem; color: var(--lb-text-muted);
    background: rgba(0,0,0,0.2); padding: 4px 10px; border-radius: 4px;
}
.points-val { font-weight: bold; color: var(--lb-primary); font-family: monospace; font-size: 1.1rem; }
.rank-num { color: var(--lb-text-muted); font-family: monospace; }

/* Zero State */
.zero-state {
    text-align: center; padding: 4rem 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 16px; margin-bottom: 2rem;
    border: 1px dashed var(--lb-border);
}
.zero-icon { 
    width: 50px; height: 50px; margin: 0 auto 1rem; 
    background: rgba(94, 234, 212, 0.1); color: var(--lb-secondary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.zero-state h3 { font-family: var(--font-heading); margin-bottom: 0.5rem; color: var(--lb-text); }
.zero-state p { color: var(--lb-text-muted); font-size: 0.9rem; }

@media (max-width: 768px) {
    .list-header, .leaderboard-list li { grid-template-columns: 40px 1fr auto; }
    .desktop-only { display: none; }
    .controls-bar { flex-direction: column-reverse; gap: 1rem; align-items: flex-start; }
    .search-wrapper { max-width: 100%; }
}