/* Leaderboard Page Styles */

/* Leaderboard Header */
.leaderboard-header {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 3px solid var(--accent-gold);
}

.leaderboard-header h1 {
    font-family: 'Special Elite', monospace;
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.leaderboard-header h1 i {
    margin-right: 1rem;
}

.leaderboard-header p {
    font-size: 1.2rem;
    color: var(--text-dim);
}

/* Filter Tabs */
.filter-tabs {
    padding: 2rem 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.75rem 2rem;
    background-color: var(--secondary-dark);
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.tab:hover,
.tab.active {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

/* Podium Section */
.podium-section {
    padding: 4rem 0;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.podium-item {
    background-color: var(--secondary-dark);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 300px;
    transition: all 0.3s;
}

.podium-item:hover {
    transform: translateY(-10px);
}

.podium-item.first {
    border: 3px solid #ffd700;
    order: 2;
    min-height: 400px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.podium-item.second {
    border: 3px solid #c0c0c0;
    order: 1;
    min-height: 350px;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
}

.podium-item.third {
    border: 3px solid #cd7f32;
    order: 3;
    min-height: 320px;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.3);
}

.rank-badge {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--primary-dark);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: var(--primary-dark);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #e8a87c);
    color: var(--primary-dark);
}

.rank-badge i {
    position: absolute;
    font-size: 2rem;
}

.rank-badge span {
    position: relative;
    z-index: 1;
}

.detective-avatar {
    width: 120px;
    height: 120px;
    margin: 2rem auto 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detective-avatar i {
    font-size: 4rem;
    color: var(--accent-gold);
}

.podium-item h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.podium-item .location {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.podium-item .stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--accent-gold);
}

.podium-item .stat {
    display: flex;
    flex-direction: column;
}

.podium-item .stat .label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.podium-item .stat .value {
    font-family: 'Special Elite', monospace;
    font-size: 1.5rem;
    color: var(--accent-gold);
}

/* Rankings Section */
.rankings-section {
    padding: 4rem 0;
}

.rankings-section h2 {
    font-family: 'Special Elite', monospace;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.rankings-section h2 i {
    margin-right: 1rem;
}

.rankings-table {
    background-color: var(--secondary-dark);
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    overflow: hidden;
}

.rankings-table table {
    width: 100%;
    border-collapse: collapse;
}

.rankings-table thead {
    background-color: rgba(0, 0, 0, 0.3);
}

.rankings-table th {
    padding: 1rem;
    text-align: left;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent-gold);
}

.rankings-table td {
    padding: 1rem;
    color: var(--text-light);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.rankings-table tbody tr {
    transition: background-color 0.3s;
}

.rankings-table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.rankings-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-number {
    font-family: 'Special Elite', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-gold);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.master {
    background-color: #ffd700;
    color: var(--primary-dark);
}

.badge.senior {
    background-color: #c0c0c0;
    color: var(--primary-dark);
}

.badge.inspector {
    background-color: #cd7f32;
    color: white;
}

.badge.sub {
    background-color: #4a90e2;
    color: white;
}

.badge.constable {
    background-color: #6c757d;
    color: white;
}

/* Personal Stats */
.personal-stats {
    padding: 4rem 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.personal-stats h2 {
    font-family: 'Special Elite', monospace;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.personal-stats h2 i {
    margin-right: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background-color: var(--secondary-dark);
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-family: 'Special Elite', monospace;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Ranking Info */
.ranking-info {
    padding: 4rem 0;
}

.ranking-info h2 {
    font-family: 'Special Elite', monospace;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.ranking-info h2 i {
    margin-right: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: var(--secondary-dark);
    border: 2px solid var(--accent-gold);
    border-radius: 10px;
    padding: 2rem;
}

.info-card h3 {
    font-family: 'Special Elite', monospace;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.rank-list,
.points-list {
    list-style: none;
}

.rank-list li,
.points-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
}

.rank-list li i,
.points-list li i {
    color: var(--accent-gold);
}

/* Animations */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value {
    animation: countUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 968px) {
    .podium {
        flex-direction: column;
        align-items: center;
    }

    .podium-item {
        max-width: 400px;
        width: 100%;
    }

    .podium-item.first,
    .podium-item.second,
    .podium-item.third {
        order: 0;
        min-height: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .leaderboard-header h1 {
        font-size: 2rem;
    }

    .rankings-table {
        overflow-x: auto;
    }

    .rankings-table table {
        min-width: 600px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .rank-list li,
    .points-list li {
        font-size: 0.9rem;
    }
}