/* ═══════════════════════════════════════════
   SkyLegion Leaderboard — CSS
   Palette : fond orange #e8935a, cartes marron #2d0e00,
             or #f5c220, texte clair #fff / #fde8c0
   ═══════════════════════════════════════════ */

/* ── Page wrapper ── */
.sl-lb-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 60px;
    font-family: var(--sl-font, 'Nunito', sans-serif);
}

/* ── Hero banner (style Vote du site) ── */
.sl-lb-hero {
    background: #2d0e00;
    border-radius: 16px;
    padding: 32px 32px 28px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.sl-lb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(245,194,32,.08) 0%, transparent 70%);
    pointer-events: none;
}

.sl-lb-hero-orb { display: none; }

.sl-lb-hero-title {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sl-lb-hero-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f5c220;
    flex-shrink: 0;
}

.sl-lb-hero-title i { display: none; }

.sl-lb-hero-sub {
    color: #f5c220;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    padding-left: 20px;
}

/* ── Notice ── */
.sl-lb-notice {
    background: rgba(245,194,32,.1);
    border: 1.5px solid rgba(245,194,32,.25);
    border-radius: 12px;
    padding: 16px 20px;
    color: #5a2500;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Tabs (switcher entre classements) ── */
.sl-lb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sl-lb-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    border: 1.5px solid rgba(45,14,0,.2);
    background: rgba(45,14,0,.07);
    color: rgba(45,14,0,.6);
    transition: all .2s;
}

.sl-lb-tab:hover {
    background: rgba(45,14,0,.13);
    color: #2d0e00;
    transform: translateY(-1px);
}

.sl-lb-tab.active {
    background: #2d0e00;
    border-color: #2d0e00;
    color: #f5c220;
    box-shadow: 0 4px 14px rgba(45,14,0,.25);
}

/* ── Panel ── */
.sl-lb-panel { display: none; }
.sl-lb-panel.active { display: block; }

/* ── Card (style cartes du site) ── */
.sl-lb-card {
    background: rgba(255,255,255,.45);
    border: 1.5px solid rgba(45,14,0,.1);
    border-radius: 16px;
    overflow: hidden;
}

/* ── Card header ── */
.sl-lb-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1.5px solid rgba(45,14,0,.08);
}

.sl-lb-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #2d0e00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.sl-lb-card-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.sl-lb-card-title {
    font-size: 1rem;
    font-weight: 900;
    color: #2d0e00;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sl-lb-card-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5c220;
    flex-shrink: 0;
}

/* ── Période selector ── */
.sl-lb-period-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 20px;
    border-bottom: 1.5px solid rgba(45,14,0,.07);
    background: rgba(45,14,0,.03);
}

.sl-lb-period-btn {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid rgba(45,14,0,.15);
    background: transparent;
    color: rgba(45,14,0,.5);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}

.sl-lb-period-btn:hover {
    background: rgba(45,14,0,.07);
    color: #2d0e00;
}

.sl-lb-period-btn.active {
    background: #2d0e00;
    border-color: #2d0e00;
    color: #f5c220;
    box-shadow: 0 2px 8px rgba(45,14,0,.2);
}

.sl-lb-period-panel { display: none; }
.sl-lb-period-panel.active { display: block; }

/* ── Liste joueurs ── */
.sl-lb-list {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sl-lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(45,14,0,.04);
    border: 1px solid rgba(45,14,0,.07);
    transition: all .18s;
}

.sl-lb-row:hover {
    background: rgba(45,14,0,.08);
    transform: translateX(3px);
}

/* Top 3 */
.sl-lb-row--1 {
    background: rgba(245,194,32,.13);
    border-color: rgba(245,194,32,.35);
}
.sl-lb-row--2 {
    background: rgba(192,192,192,.13);
    border-color: rgba(192,192,192,.35);
}
.sl-lb-row--3 {
    background: rgba(180,100,40,.09);
    border-color: rgba(180,100,40,.22);
}

/* ── Rang ── */
.sl-lb-rank {
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.sl-lb-medal { font-size: 1.4rem; line-height: 1; }

.sl-lb-rank-num {
    font-size: .8rem;
    font-weight: 900;
    color: rgba(45,14,0,.35);
}

/* ── Joueur ── */
.sl-lb-player {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sl-lb-head {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    image-rendering: pixelated;
    flex-shrink: 0;
    border: 1.5px solid rgba(45,14,0,.1);
}

.sl-lb-name {
    font-weight: 800;
    font-size: .92rem;
    color: #2d0e00;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Valeur ── */
.sl-lb-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.sl-lb-score {
    font-size: 1rem;
    font-weight: 900;
    color: #2d0e00;
}

.sl-lb-unit {
    font-size: .7rem;
    font-weight: 800;
    color: rgba(45,14,0,.4);
    text-transform: uppercase;
}

/* ── Empty / Error ── */
.sl-lb-empty,
.sl-lb-error {
    text-align: center;
    padding: 28px 20px;
    font-weight: 700;
}

.sl-lb-empty {
    color: rgba(45,14,0,.35);
}

.sl-lb-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    opacity: .35;
}

.sl-lb-error {
    color: #b91c1c;
    background: rgba(239,68,68,.06);
    border-radius: 10px;
    margin: 14px;
    font-size: .85rem;
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .sl-lb-hero-title { font-size: 1.4rem; }
    .sl-lb-hero { padding: 22px 18px; }
    .sl-lb-score { font-size: .9rem; }
    .sl-lb-name { font-size: .82rem; }
    .sl-lb-period-btn { font-size: .72rem; padding: 4px 10px; }
}
