/* Leaderboard styling — matches the cyan/pink WebStories theme.
   Lives in its own stylesheet so the section is easy to find / iterate on. */

.leaderboard-box {
    max-width: 760px;
    margin: 48px auto 24px;
    padding: 24px 22px 22px;
    background: linear-gradient(155deg, rgba(195,108,148,0.10) 0%, rgba(107,247,255,0.08) 100%);
    border: 1px solid rgba(195,108,148,0.35);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(107,247,255,0.06);
    color: #fff;
}

.leaderboard-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.leaderboard-head h2 {
    margin: 0;
    color: #6bf7ff;
    font-family: 'Fredoka One', cursive;
    letter-spacing: 0.04em;
    text-shadow: 0 0 14px rgba(107,247,255,0.35);
}

.leaderboard-tabs {
    display: inline-flex;
    gap: 4px;
    background: rgba(0,0,0,0.25);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(195,108,148,0.25);
}

.lb-tab {
    background: transparent;
    color: #d6c8e3;
    border: none;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85em;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.lb-tab:hover { color: #fff; }

.lb-tab.active {
    background: linear-gradient(135deg, #6bf7ff 0%, #C36C94 100%);
    color: #1d1234;
    box-shadow: 0 4px 14px rgba(107,247,255,0.3);
}

.leaderboard-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 42px 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(195,108,148,0.18);
    border-radius: 12px;
    transition: transform 0.18s, background 0.18s;
}

.leaderboard-item:hover { transform: translateX(3px); background: rgba(255,255,255,0.07); }

.leaderboard-item.lb-rank-1 {
    background: linear-gradient(90deg, rgba(255,215,0,0.15) 0%, rgba(195,108,148,0.08) 100%);
    border-color: rgba(255,215,0,0.45);
    box-shadow: 0 0 24px rgba(255,215,0,0.18) inset;
}

.leaderboard-item.lb-rank-2 {
    background: rgba(192,192,192,0.10);
    border-color: rgba(192,192,192,0.4);
}

.leaderboard-item.lb-rank-3 {
    background: rgba(205,127,50,0.10);
    border-color: rgba(205,127,50,0.4);
}

.lb-rank {
    font-family: 'Fredoka One', cursive;
    font-size: 1.4em;
    color: #6bf7ff;
    text-align: center;
}

.lb-rank-1 .lb-rank { color: #ffd700; text-shadow: 0 0 14px rgba(255,215,0,0.55); }
.lb-rank-2 .lb-rank { color: #c0c0c0; }
.lb-rank-3 .lb-rank { color: #cd7f32; }

.lb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #2a1840;
    border: 2px solid rgba(107,247,255,0.4);
}

.lb-name {
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-name:hover { color: #6bf7ff; }

.lb-stats {
    text-align: right;
    font-family: 'Open Sans', sans-serif;
}

.lb-amount {
    color: #6bf7ff;
    font-weight: 700;
    font-size: 1.05em;
}

.lb-meta {
    color: #a89cb5;
    font-size: 0.75em;
    margin-top: 2px;
}

.leaderboard-empty {
    text-align: center;
    color: #a89cb5;
    padding: 20px 12px;
    font-family: 'Open Sans', sans-serif;
}

.leaderboard-empty .lb-cta-link { color: #6bf7ff; font-weight: 700; text-decoration: none; }
.leaderboard-empty .lb-cta-link:hover { text-decoration: underline; }

.leaderboard-cta {
    text-align: center;
    margin: 18px 0 0;
}

.lb-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #C36C94 0%, #6bf7ff 100%);
    color: #1d1234;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    transition: transform 0.18s, box-shadow 0.18s;
}

.lb-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(195,108,148,0.4);
}

@media (max-width: 680px) {
    .leaderboard-box { margin: 30px 12px 16px; padding: 18px 14px 16px; }
    .leaderboard-head h2 { font-size: 1.2em; }
    .lb-tab { padding: 6px 11px; font-size: 0.78em; }
    .leaderboard-item { grid-template-columns: 32px 36px 1fr auto; gap: 8px; padding: 8px 10px; }
    .lb-avatar { width: 36px; height: 36px; }
    .lb-rank { font-size: 1.15em; }
    .lb-amount { font-size: 0.95em; }
}
