/* Leaderboard Container */
.leaderboard-page-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Open Sans', sans-serif;
}

/* Tabs Navigation */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.leaderboard-tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #8a8d90;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboard-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.leaderboard-tab-btn.active {
    background: #C0C0C0; /* Ray Silver */
    color: #0f0f11;
    border-color: #C0C0C0;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.2);
}

/* Leaderboard List */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* List Item Card */
.leaderboard-item {
    display: flex;
    align-items: center;
    background: #0f0f11;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 15px 25px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.leaderboard-item:hover {
    transform: translateY(-2px);
    border-color: #C0C0C0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 10px rgba(192, 192, 192, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

/* Rank Badges */
.leaderboard-rank-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #e0e0e0;
    flex-shrink: 0;
    margin-right: 20px;
}

/* Gold, Silver, Bronze */
.leaderboard-item:nth-child(1) .leaderboard-rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffae00);
    border-color: #ffd700;
    color: #0f0f11;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.leaderboard-item:nth-child(2) .leaderboard-rank-badge {
    background: linear-gradient(135deg, #e0e0e0, #a0a0a0);
    border-color: #e0e0e0;
    color: #0f0f11;
    box-shadow: 0 0 12px rgba(224, 224, 224, 0.3);
}

.leaderboard-item:nth-child(3) .leaderboard-rank-badge {
    background: linear-gradient(135deg, #cd7f32, #995c26);
    border-color: #cd7f32;
    color: #0f0f11;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.3);
}

/* Thumbnail */
.leaderboard-thumb-container {
    width: 80px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #121214;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leaderboard-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Details Block */
.leaderboard-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Ensures text truncation works */
}

.leaderboard-title-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 15px;
}

.leaderboard-model-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-manufacturer {
    font-size: 0.85rem;
    color: #8a8d90;
    font-weight: 500;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.leaderboard-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: #C0C0C0;
    font-weight: 600;
    white-space: nowrap;
}

/* Comparative Ratio Bar */
.leaderboard-ratio-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
}

.leaderboard-ratio-bar {
    height: 100%;
    background: rgba(192, 192, 192, 0.35); /* Ray Silver tint */
    border-radius: 2px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.leaderboard-item:nth-child(1) .leaderboard-ratio-bar {
    background: rgba(255, 215, 0, 0.5); /* Gold tint for #1 */
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .leaderboard-item {
        padding: 15px;
    }
    
    .leaderboard-rank-badge {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-right: 12px;
    }
    
    .leaderboard-thumb-container {
        width: 60px;
        height: 40px;
        margin-right: 12px;
    }
    
    .leaderboard-title-line {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 6px;
    }
    
    .leaderboard-value {
        font-size: 1.1rem;
    }
}

.fade-in-list {
    animation: fadeInList 0.4s ease forwards;
}

@keyframes fadeInList {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
