/* ============================================================
   CALLS-LEADERBOARD.CSS — Classement hebdo / mensuel des calls
   Scoped sous body.theme-luv (réutilise les tokens de calls.css)
   ============================================================ */

body.theme-luv {
    --cl-gold:   #ffce4d;
    --cl-silver: #d8dde6;
    --cl-bronze: #d98d64;
}

/* Sous-menu Calls / Classement ──────────────────────────────*/
body.theme-luv .calls-subnav {
    display: inline-flex;
    gap: 6px;
    margin-top: 18px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--luv-line);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}
body.theme-luv .calls-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    font-family: var(--luv-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--luv-text-dim);
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease;
}
body.theme-luv .calls-subnav-link:hover {
    color: var(--luv-text);
    background: rgba(255, 255, 255, 0.04);
}
body.theme-luv .calls-subnav-link.active {
    color: #1a0a00;
    background: var(--luv-orange);
}
body.theme-luv .calls-subnav-link.active:hover {
    background: var(--luv-orange-2);
}

/* Section ──────────────────────────────────────────────────*/
body.theme-luv .cl-section {
    padding: 20px 20px 80px;
    position: relative;
    z-index: 1;
}
body.theme-luv .cl-container {
    max-width: 1180px;
    margin: 0 auto;
}

/* Toolbar : tabs + countdown ───────────────────────────────*/
body.theme-luv .cl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
body.theme-luv .cl-period-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: var(--luv-card);
    border: 1px solid var(--luv-line);
    border-radius: 999px;
}
body.theme-luv .cl-period-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: none;
    background: transparent;
    border-radius: 999px;
    color: var(--luv-text-dim);
    font-family: var(--luv-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}
body.theme-luv .cl-period-tab:hover { color: var(--luv-text); }
body.theme-luv .cl-period-tab.active {
    color: #1a0a00;
    background: var(--luv-orange);
}

body.theme-luv .cl-countdown-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: var(--luv-card);
    border: 1px solid var(--luv-line);
    border-radius: var(--luv-r-md);
}
body.theme-luv .cl-countdown-label {
    font-family: var(--luv-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--luv-text-mute);
}
body.theme-luv .cl-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-variant-numeric: tabular-nums;
    font-family: var(--luv-font-mono);
    color: var(--luv-text);
    font-weight: 700;
    font-size: 15px;
}
body.theme-luv .cl-countdown span {
    min-width: 22px;
    display: inline-block;
    text-align: right;
}
body.theme-luv .cl-countdown small {
    font-size: 10px;
    color: var(--luv-text-mute);
    font-weight: 600;
    margin-right: 6px;
}
body.theme-luv .cl-countdown small:last-of-type { margin-right: 0; }

/* Loading / empty ──────────────────────────────────────────*/
body.theme-luv .cl-loading {
    padding: 60px 20px;
    text-align: center;
    color: var(--luv-text-mute);
    font-family: var(--luv-font-body);
}
body.theme-luv .cl-spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--luv-line);
    border-top-color: var(--luv-orange);
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: callsSpin 0.9s linear infinite;
}

/* Pire call ────────────────────────────────────────────────*/
body.theme-luv .cl-worst {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(110, 28, 52, 0.10));
    border: 1px solid rgba(230, 57, 70, 0.35);
    border-radius: var(--luv-r-lg);
    padding: 18px 22px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}
body.theme-luv .cl-worst::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(230, 57, 70, 0.18), transparent 55%);
    pointer-events: none;
    z-index: 0;
}
body.theme-luv .cl-worst-header,
body.theme-luv .cl-worst-card,
body.theme-luv .cl-worst-empty {
    position: relative;
    z-index: 1;
}
body.theme-luv .cl-worst-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
body.theme-luv .cl-worst-emoji {
    font-size: 36px;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
body.theme-luv .cl-worst-titles { min-width: 0; }
body.theme-luv .cl-worst-title {
    font-family: var(--luv-font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--luv-text);
    letter-spacing: 0.02em;
}
body.theme-luv .cl-worst-title span {
    color: var(--luv-red);
    text-transform: lowercase;
}
body.theme-luv .cl-worst-sub {
    font-family: var(--luv-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--luv-text-mute);
}
body.theme-luv .cl-worst-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--luv-line);
    border-radius: var(--luv-r-md);
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    cursor: default;
}
body.theme-luv .cl-worst-game-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--luv-r-sm);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--luv-line-strong);
    flex-shrink: 0;
}
body.theme-luv .cl-worst-info { min-width: 0; }
body.theme-luv .cl-worst-game {
    font-family: var(--luv-font-body);
    font-weight: 700;
    font-size: 15px;
    color: var(--luv-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.theme-luv .cl-worst-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
body.theme-luv .cl-worst-avatar-wrap img,
body.theme-luv .cl-worst-avatar-wrap .cl-worst-avatar-fallback {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
body.theme-luv .cl-worst-avatar-wrap .cl-worst-avatar-fallback {
    background: linear-gradient(135deg, var(--luv-red), #8c1d28);
    color: #fff;
    display: flex;
    align-items: center;
    font-family: var(--luv-font-heading);
    font-weight: 800;
    font-family: var(--luv-font-display);
    font-size: 10px;
}
body.theme-luv .cl-worst-username {
    font-family: var(--luv-font-mono);
    font-size: 12px;
    color: var(--luv-text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.theme-luv .cl-worst-amount {
    text-align: right;
    white-space: nowrap;
}
body.theme-luv .cl-worst-amount-val {
    font-family: var(--luv-font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 22px;
    color: var(--luv-red);
}
body.theme-luv .cl-worst-amount-mult {
    font-family: var(--luv-font-mono);
    font-size: 10px;
    color: var(--luv-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
body.theme-luv .cl-worst-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed var(--luv-line);
    border-radius: var(--luv-r-md);
    color: var(--luv-text-dim);
    font-family: var(--luv-font-body);
    font-size: 13px;
}
body.theme-luv .cl-worst-empty span { font-size: 22px; line-height: 1; }

/* Boards grid ──────────────────────────────────────────────*/
body.theme-luv .cl-boards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}
body.theme-luv .cl-board {
    background: var(--luv-card);
    border: 1px solid var(--luv-line);
    border-radius: var(--luv-r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
body.theme-luv .cl-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--luv-line);
}
body.theme-luv .cl-board-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--luv-font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--luv-text);
}
body.theme-luv .cl-board-title svg { color: var(--luv-orange); }
body.theme-luv .cl-board-hint {
    font-family: var(--luv-font-mono);
    font-size: 11px;
    color: var(--luv-text-mute);
}
body.theme-luv .cl-board-body { padding: 6px 0; }

/* Empty ────────────────────────────────────────────────────*/
body.theme-luv .cl-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--luv-text-mute);
    font-family: var(--luv-font-body);
    font-size: 13px;
}
body.theme-luv .cl-empty svg {
    color: var(--luv-text-mute);
    opacity: 0.5;
    margin-bottom: 10px;
}
body.theme-luv .cl-empty p { margin: 0; }

/* Rows ─────────────────────────────────────────────────────*/
body.theme-luv .cl-rows {
    display: flex;
    flex-direction: column;
}
body.theme-luv .cl-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--luv-line);
    transition: background 0.15s ease;
    min-width: 0;
}
body.theme-luv .cl-row:last-child { border-bottom: none; }
body.theme-luv .cl-row:hover { background: rgba(255, 138, 31, 0.05); }
body.theme-luv .cl-rank {
    font-family: var(--luv-font-display);
    font-size: 18px;
    color: var(--luv-text-mute);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
body.theme-luv .cl-row[data-rank="1"] .cl-rank { color: var(--cl-gold); }
body.theme-luv .cl-row[data-rank="2"] .cl-rank { color: var(--cl-silver); }
body.theme-luv .cl-row[data-rank="3"] .cl-rank { color: var(--cl-bronze); }

body.theme-luv .cl-row[data-rank="1"] {
    background: linear-gradient(90deg, rgba(255, 206, 77, 0.10), transparent 65%);
}
body.theme-luv .cl-row[data-rank="2"] {
    background: linear-gradient(90deg, rgba(216, 221, 230, 0.06), transparent 65%);
}
body.theme-luv .cl-row[data-rank="3"] {
    background: linear-gradient(90deg, rgba(217, 141, 100, 0.07), transparent 65%);
}

body.theme-luv .cl-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
body.theme-luv .cl-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--luv-line-strong);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
body.theme-luv .cl-avatar-fallback {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--luv-orange), var(--luv-orange-deep));
    display: flex;
    font-family: var(--luv-font-heading);
    font-weight: 800;
    justify-content: center;
    color: #1a0a00;
    font-family: var(--luv-font-display);
    font-size: 14px;
    flex-shrink: 0;
}
body.theme-luv .cl-user-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
body.theme-luv .cl-username {
    font-family: var(--luv-font-body);
    font-weight: 700;
    font-size: 14px;
    color: var(--luv-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.theme-luv .cl-userline {
    font-family: var(--luv-font-mono);
    font-size: 11px;
    color: var(--luv-text-mute);
}

body.theme-luv .cl-value-cell {
    min-width: 0;
    max-width: 45vw;
}
body.theme-luv .cl-value {
    font-family: var(--luv-font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 16px;
    color: var(--luv-text);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.theme-luv .cl-value.positive { color: var(--luv-green); }
body.theme-luv .cl-value.negative { color: var(--luv-red); }
body.theme-luv .cl-value-sub {
    display: block;
    font-size: 10px;
    color: var(--luv-text-mute);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Info block ───────────────────────────────────────────────*/
body.theme-luv .cl-info {
    background: var(--luv-card);
    border: 1px solid var(--luv-line);
    border-radius: var(--luv-r-lg);
    padding: 24px 26px;
}
body.theme-luv .cl-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--luv-font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--luv-text);
    margin: 0 0 16px;
    letter-spacing: 0.3px;
}
body.theme-luv .cl-info-title svg { color: var(--luv-orange); }
body.theme-luv .cl-info-list {
    margin: 0;
    padding-left: 20px;
    color: var(--luv-text-dim);
    font-size: 14px;
    line-height: 1.7;
}
body.theme-luv .cl-info-list li { margin-bottom: 4px; }
body.theme-luv .cl-info-list strong { color: var(--luv-orange); }

/* Responsive ───────────────────────────────────────────────*/
@media (max-width: 860px) {
    body.theme-luv .cl-boards {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    body.theme-luv .cl-toolbar { justify-content: center; }
    body.theme-luv .cl-section { padding: 16px 12px 60px; }
    body.theme-luv .cl-worst { padding: 14px 14px; }
    body.theme-luv .cl-worst-emoji { font-size: 28px; }
    body.theme-luv .cl-worst-title { font-size: 15px; }
    body.theme-luv .cl-worst-sub { font-size: 10px; }
    body.theme-luv .cl-worst-card {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 10px 12px;
    }
    body.theme-luv .cl-worst-game-img { width: 52px; height: 52px; }
    body.theme-luv .cl-worst-game { font-size: 13px; }
    body.theme-luv .cl-worst-amount-val { font-size: 18px; }
    body.theme-luv .cl-row {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 14px;
    }
    body.theme-luv .cl-avatar,
    body.theme-luv .cl-avatar-fallback { width: 30px; height: 30px; flex-shrink: 0; }
    body.theme-luv .cl-user { gap: 8px; }
    body.theme-luv .cl-username { font-size: 13px; }
    body.theme-luv .cl-userline { font-size: 10px; }
    body.theme-luv .cl-value { font-size: 13px; }
    body.theme-luv .cl-value-sub { font-size: 9px; }
    body.theme-luv .cl-board-header { padding: 14px 16px; }
    body.theme-luv .cl-board-title { font-size: 11px; }
    body.theme-luv .cl-board-hint { display: none; }
    body.theme-luv .calls-subnav-link { padding: 8px 14px; font-size: 12px; }
    body.theme-luv .cl-info { padding: 18px 18px; }
    body.theme-luv .cl-info-list { font-size: 13px; padding-left: 16px; }
}

/* ── Cibles tactiles ≥44px sur mobile (audit UI/UX 06/2026) ── */
@media (max-width: 768px) {
    body.theme-luv .cl-period-tab {
        min-height: 44px;
    }
}
