/* ============================================================
   ÖZELLİK 4 — Liderlik Tablosu Stilleri
   wwwroot/css/og-leaderboard.css (YENİ DOSYA)
   ============================================================ */

.lb-page-wrapper {
    background: var(--og-page-bg);
    min-height: 100vh;
    padding: 40px 0;
    transition: background 0.3s;
}

.lb-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

.lb-header {
    text-align: center;
    margin-bottom: 32px;
}

.lb-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--og-text-primary);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.lb-sub {
    color: var(--og-text-muted);
    font-size: 14px;
    margin: 0;
}

/* Sekmeler */
.lb-tabs {
    display: flex;
    gap: 4px;
    background: var(--og-card-inner-bg);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.lb-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lb-tab:hover {
    color: #ccc;
    background: rgba(255,255,255,0.03);
}

.lb-tab.active {
    background: var(--og-xp-primary);
    color: #fff;
    font-weight: 600;
}

/* Liste */
.lb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lb-row {
    display: grid;
    grid-template-columns: 44px 44px 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--og-card-bg);
    border: 1px solid var(--og-card-border);
    border-radius: 12px;
    transition: all 0.2s;
}

.lb-row:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

/* Top 3 vurguları */
.lb-rank-gold {
    background: linear-gradient(135deg, rgba(239,159,39,0.12), var(--og-card-hover));
    border-color: var(--og-gold);
}

.lb-rank-silver {
    background: linear-gradient(135deg, rgba(180,178,169,0.1), rgba(180,178,169,0.04));
    border-color: rgba(180,178,169,0.3);
}

.lb-rank-bronze {
    background: linear-gradient(135deg, rgba(186,117,23,0.1), var(--og-card-hover));
    border-color: var(--og-bronze);
}

/* Sen satırı */
.lb-current-user {
    border-color: var(--og-xp-primary) !important;
    background: linear-gradient(135deg, var(--og-xp-bg), var(--og-card-hover)) !important;
}

.lb-outside {
    margin-top: 8px;
}

.lb-divider {
    text-align: center;
    color: #444;
    padding: 8px 0;
    font-size: 20px;
    letter-spacing: 4px;
}

/* Sıralama */
.lb-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #888;
}

.lb-rank-gold .lb-rank { color: #EF9F27; font-size: 18px; }
.lb-rank-silver .lb-rank { color: #B4B2A9; }
.lb-rank-bronze .lb-rank { color: #BA7517; }

/* Avatar */
.lb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #2a2a32;
}

.lb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #888;
}

/* Info */
.lb-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lb-username {
    font-size: 15px;
    font-weight: 600;
    color: var(--og-text-primary);
    text-decoration: none;
}

.lb-username:hover {
    color: #AFA9EC;
}

.lb-meta {
    font-size: 11px;
    color: #666;
    display: flex;
    gap: 8px;
}

.lb-level {
    color: var(--og-xp-primary);
    font-weight: 600;
}

/* "Sen" etiketi */
.lb-you-badge {
    background: var(--og-xp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
}

/* XP */
.lb-xp {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.lb-xp-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--og-xp-primary);
}

.lb-rank-gold .lb-xp-value { color: #EF9F27; }
.lb-rank-silver .lb-xp-value { color: #CECECE; }
.lb-rank-bronze .lb-xp-value { color: #BA7517; }

.lb-xp-label {
    font-size: 10px;
    color: #666;
    letter-spacing: 1px;
}

.lb-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* ============================================================
   KİLİTLİ SAYFA (Lv 1 kullanıcılar için)
   ============================================================ */
.lb-locked-container {
    max-width: 480px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.lb-locked-icon {
    color: #534AB7;
    margin-bottom: 20px;
    opacity: 0.8;
}

.lb-locked-title {
    font-size: 28px;
    color: var(--og-text-primary);
    margin: 0 0 8px;
}

.lb-locked-sub {
    color: #888;
    font-size: 15px;
    margin: 0 0 32px;
}

.lb-locked-progress {
    background: var(--og-card-bg);
    border: 1px solid var(--og-card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.lb-locked-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.lb-locked-bar {
    height: 8px;
    background: var(--og-progress-track);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.lb-locked-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--og-xp-primary), var(--og-xp-text));
    border-radius: 4px;
    transition: width 0.6s;
}

.lb-locked-needed {
    font-size: 14px;
    color: #aaa;
    margin: 0;
}

.lb-locked-needed strong {
    color: var(--og-xp-primary);
}

.lb-locked-hint {
    background: rgba(83,74,183,0.08);
    border: 1px solid rgba(83,74,183,0.2);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
}

.lb-locked-hint p {
    color: #ccc;
    font-size: 14px;
    margin: 0 0 12px;
}

.lb-locked-cta {
    display: inline-block;
    background: var(--og-xp-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.lb-locked-cta:hover {
    background: #6B62C9;
}

/* ============================================================
   MOBIL
   ============================================================ */
@media (max-width: 600px) {
    .lb-row {
        grid-template-columns: 36px 36px 1fr auto;
        padding: 10px 12px;
        gap: 10px;
    }
    .lb-avatar { width: 36px; height: 36px; }
    .lb-username { font-size: 13px; }
    .lb-xp-value { font-size: 15px; }
    .lb-you-badge { display: none; }
}

/* Profil kartı mini lb */
.mini-lb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.mini-lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    font-size: 13px;
}

.mini-lb-current {
    background: rgba(83,74,183,0.1);
    border: 1px solid rgba(83,74,183,0.2);
}

.mini-lb-medal { font-size: 16px; width: 20px; text-align: center; }
.mini-lb-rank { font-weight: 700; color: #888; width: 20px; text-align: center; }

.mini-lb-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.mini-lb-avatar-fallback { 
    width: 24px; height: 24px; border-radius: 50%; background: #2a2a32; 
    display: flex; align-items: center; justify-content: center; font-size: 10px; color: #666; 
}

.mini-lb-name { flex: 1; color: #eee; text-decoration: none; font-weight: 600; }
.mini-lb-xp { color: #AFA9EC; font-weight: 700; font-size: 11px; }

.mini-lb-self { margin-top: 12px; border-style: dashed; }
