/* Simple Leaderboards CSS */

.nav-links a.active {
    color: #f39c12 !important;
    font-weight: bold;
}

.leaderboards-page {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 4rem;
    background: linear-gradient(45deg, #f39c12, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-header p {
    font-size: 1.3rem;
    color: #bdc3c7;
}

.ladder-selector {
    margin-bottom: 50px;
}

.ladder-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ladder-tab {
    background: linear-gradient(145deg, #34495e, #2c3e50);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    color: #ffffff;
}

.ladder-tab:hover {
    border-color: #f39c12;
    transform: translateY(-3px);
}

.ladder-tab.active {
    background: linear-gradient(145deg, #f39c12, #d4af37);
    border-color: #f39c12;
    color: #2c3e50;
}

.tab-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tab-icon {
    font-size: 2rem;
}

.tab-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.tab-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.tab-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.current-ladder-info {
    margin-bottom: 50px;
}

.ladder-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 5px;
}

.stat-label {
    color: #2c3e50;
    font-weight: bold;
}

.leaderboard-table {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.leaderboard-table h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
}

.table-container {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.table-header {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: #ffffff;
    display: grid;
    grid-template-columns: 60px 1fr 120px 80px 80px 100px;
    padding: 20px 15px;
    font-weight: bold;
}

.table-body {
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 80px 80px 100px;
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: center;
}

.table-row:hover {
    background: linear-gradient(90deg, rgba(243, 156, 18, 0.1), transparent);
    transform: translateX(5px);
}

.row-rank {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

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

.player-avatar {
    width: 35px;
    height: 35px;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid #f39c12;
}

.player-name {
    font-weight: bold;
    color: #2c3e50;
}

.row-elo {
    font-weight: bold;
    color: #f39c12;
    font-size: 1.1rem;
}

.row-wins { color: #27ae60; font-weight: bold; }
.row-losses { color: #e74c3c; font-weight: bold; }
.row-winrate { color: #3498db; font-weight: bold; }

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    gap: 15px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #ecf0f1;
    border-top: 3px solid #f39c12;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .ladder-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .ladder-tab {
        width: 100%;
        max-width: 300px;
    }
    
    .ladder-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 40px 1fr 80px 60px 60px;
        font-size: 0.8rem;
    }
    
    .row-winrate {
        display: none;
    }
}