/* ==========================================
   OFFEYES — LEADERBOARD STYLESHEET
   ========================================== */

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* PODIUM (TOP 3) */
.podium-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 60px;
    min-height: 260px;
}

.podium-empty {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 1.2rem;
    padding: 40px;
    width: 100%;
}

.podium-card {
    background-color: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 220px;
}

.podium-card:hover {
    transform: translateY(-8px);
}

.podium-card.rank-1 {
    height: 280px;
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 12px 40px rgba(250, 204, 21, 0.15), inset 0 0 20px rgba(250, 204, 21, 0.05);
    z-index: 3;
}

.podium-card.rank-2 {
    height: 240px;
    border-color: rgba(156, 163, 175, 0.4);
    box-shadow: 0 8px 32px rgba(156, 163, 175, 0.1);
    z-index: 2;
}

.podium-card.rank-3 {
    height: 220px;
    border-color: rgba(180, 83, 9, 0.4);
    box-shadow: 0 8px 32px rgba(180, 83, 9, 0.1);
    z-index: 1;
}

.podium-rank-badge {
    position: absolute;
    top: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border: 2px solid var(--bg-base);
}

.rank-1 .podium-rank-badge { background: linear-gradient(135deg, #fde047 0%, #eab308 100%); color: #422006; }
.rank-2 .podium-rank-badge { background: linear-gradient(135deg, #f3f4f6 0%, #9ca3af 100%); color: #111827; }
.rank-3 .podium-rank-badge { background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%); color: #fffbeb; }

.podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: var(--bg-surface-active);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    margin-top: 12px;
    color: var(--text-primary);
    border: 2px solid rgba(255,255,255,0.1);
}

.rank-1 .podium-avatar { width: 80px; height: 80px; font-size: 2.2rem; border-color: rgba(250, 204, 21, 0.5); }

.podium-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.podium-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.podium-elo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: auto;
}

.podium-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    width: 100%;
    justify-content: space-around;
}

.podium-stats strong {
    color: var(--text-primary);
}


/* LIST (4-100) */
.leaderboard-list {
    background-color: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 80px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.list-header {
    display: flex;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background-color: rgba(0,0,0,0.2);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lh-rank { width: 60px; text-align: center; }
.lh-player { flex: 1; }
.lh-stats { 
    display: flex; 
    gap: 32px; 
    width: 320px; 
    justify-content: flex-end; 
    padding-right: 16px;
}
.lh-stats span { width: 60px; text-align: right; }

.list-body {
    display: flex;
    flex-direction: column;
}

.list-row {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.list-row:hover {
    background-color: var(--bg-surface-hover);
}

.list-row:last-child {
    border-bottom: none;
}

.row-rank {
    width: 60px;
    text-align: center;
    font-weight: 800;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.row-player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.row-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--bg-surface-active);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-primary);
}

.row-name-wrap {
    display: flex;
    flex-direction: column;
}

.row-name {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-flag {
    width: 16px; height: 11px; border-radius: 2px;
}

.row-level {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.row-stats {
    display: flex;
    gap: 32px;
    width: 320px;
    justify-content: flex-end;
    padding-right: 16px;
    align-items: center;
}

.stat-item {
    width: 60px;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-weight: 700;
    font-size: 0.95rem;
}

.stat-lbl {
    display: none; /* Only show on mobile */
}

.elo-val { color: var(--accent); font-weight: 800; }
.winrate-val { color: #22c55e; }

/* MY RANK STICKY BAR */
.my-rank-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background-color: rgba(9, 10, 15, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    z-index: 100;
    padding: 16px 0;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.my-rank-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.mr-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    border-right: 1px solid var(--border);
    padding-right: 24px;
}

.mr-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.mr-rank-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.mr-player {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 24px;
}

.mr-avatar {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px var(--accent-muted);
}

.mr-info {
    display: flex;
    flex-direction: column;
}

.mr-name {
    font-weight: 800;
    font-size: 1.1rem;
}

.mr-elo {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.mr-btn {
    background-color: var(--bg-surface-active);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.mr-btn:hover {
    background-color: var(--border-hover);
    color: #fff;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .podium-section {
        align-items: center;
        gap: 12px;
    }
    .podium-card { width: 30%; padding: 16px 8px; }
    .podium-card.rank-1 { height: 220px; }
    .podium-card.rank-2 { height: 190px; }
    .podium-card.rank-3 { height: 180px; }
    
    .podium-avatar { width: 48px; height: 48px; font-size: 1.4rem; }
    .rank-1 .podium-avatar { width: 60px; height: 60px; font-size: 1.8rem; }
    
    .podium-stats { display: none; }
    
    .hide-mobile { display: none !important; }
    .lh-stats, .row-stats { width: auto; gap: 16px; }
    
    .my-rank-content { flex-direction: column; gap: 16px; text-align: center; }
    .mr-left { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 12px; width: 100%; }
    .mr-player { padding-left: 0; width: 100%; justify-content: center; }
    .mr-actions { width: 100%; display: flex; justify-content: center; }
}
