/* ============================================
   OUDIFY — League System Styles
   ============================================ */

/* League Banner */
.league-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-4);
    border: 1px solid;
}

.league-banner__info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.league-banner__icon {
    font-size: 2rem;
}

.league-banner__name {
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--text-primary);
}

.league-banner__week {
    margin-top: 2px;
}

.league-banner__top {
    font-weight: 600;
}

/* Leaderboard Rows */
.leaderboard-row--promote {
    border-left: 3px solid #4ade80;
    background: rgba(74, 222, 128, 0.04);
}

.leaderboard-row--demote {
    border-left: 3px solid #ef4444;
    background: rgba(239, 68, 68, 0.04);
}

.leaderboard-row--me {
    border-left: 3px solid var(--accent-primary) !important;
    background: rgba(212, 165, 116, 0.08) !important;
    font-weight: 600;
}

.leaderboard-empty {
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

/* Loading state */
.leaderboard-loading {
    text-align: center;
    padding: var(--space-6);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spinner-spin 0.6s linear infinite;
}

@keyframes spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Zone legend */
.leaderboard-legend {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    padding: var(--space-3) 0;
    margin-top: var(--space-2);
}

.legend-item {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* League Badge */
.league-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Leaderboard You — rank */
.leaderboard-you__rank {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(212, 165, 116, 0.15);
    color: var(--accent-primary);
    font-weight: 700;
}