:root {
    --primary-gradient: linear-gradient(135deg, #6a11cb, #2575fc);
    --secondary-gradient: linear-gradient(135deg, #f5576c, #f093fb);
    --card-bg: rgba(19, 21, 47, 0.8);
    --card-border: rgba(73, 84, 194, 0.2);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --text-light: #f0f0f0;
    --text-primary: #ffffff;
    --badge-bg: rgba(245, 87, 108, 0.2);
    --animation-speed: 0.4s;
    --dark-bg: #13152f;
    --darker-bg: #10122a;
    --neon-shadow: 0 0 5px rgba(245, 87, 108, 0.7),
        0 0 20px rgba(245, 87, 108, 0.5);
    --card-glow: 0 0 15px rgba(106, 17, 203, 0.4);
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(245, 87, 108, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(245, 87, 108, 0.8);
    }

    100% {
        box-shadow: 0 0 10px rgba(245, 87, 108, 0.5);
    }
}

.leaderboard-container {
    position: relative;
    overflow: hidden;
    padding: 40px 0;
    border-radius: 20px;
    margin-bottom: 40px;
}

.leaderboard-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(to right, #f5576c, #f093fb);
    pointer-events: none;
    z-index: 1;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

.podium-item:hover::before,
.leaderboard-card:hover::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5576c;
    box-shadow: 0 0 10px rgba(245, 87, 108, 0.8);
    animation: float-particle 3s ease-out;
}

.leaderboard-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.leaderboard-title h2 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.leaderboard-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--secondary-gradient);
    border-radius: 2px;
}

.leaderboard-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.leaderboard-podium {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin-top: 30px;
    gap: 35px;
}

.podium-item {
    position: relative;
    text-align: center;
    background: rgba(19, 21, 47, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(73, 84, 194, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px 20px 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    width: 240px;
    min-height: 160px;
    z-index: 1;
}

.podium-item.first {
    z-index: 3;
    transform: scale(1.15);
    background: rgba(19, 21, 47, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    min-height: 180px;
}

.podium-item.second,
.podium-item.third {
    z-index: 2;
}

.podium-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    z-index: -1;
}

.podium-item.first::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(245, 87, 108, 0.1), transparent);
    z-index: -1;
    border-radius: 20px;
}

.podium-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.podium-item.first:hover {
    transform: translateY(-5px) scale(1.15);
}

.podium-rank {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #f5576c, #f093fb);
    color: white;
    padding: 6px 25px;
    border-radius: 0 0 20px 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
    z-index: 2;
}

.podium-item:hover .podium-rank {
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.7);
}

.podium-name {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 10px 0 15px;
    transition: all 0.3s ease;
}

.podium-item.first .podium-name {
    font-size: 1.6rem;
    margin-top: 15px;
}

.podium-stats {
    margin-top: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.stat-item i {
    margin-right: 10px;
    background: rgba(245, 87, 108, 0.15);
    border-radius: 50%;
    font-size: 0.8rem;
    color: #f5576c;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.podium-item:hover .stat-item i {
    transform: rotate(360deg);
    background: rgba(245, 87, 108, 0.3);
}

.leaderboard-list {
    position: relative;
    z-index: 2;
}

.leaderboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.leaderboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #f5576c, #f093fb);
    opacity: 0.8;
}

.leaderboard-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-glow);
    border-color: rgba(245, 87, 108, 0.3);
}

.leaderboard-card:hover::before {
    width: 100%;
    opacity: 0.1;
    transition: all var(--animation-speed) ease;
}

.user-card-info {
    display: flex;
    align-items: center;
}

.user-card-details {
    flex: 1;
    padding: 5px 0;
}

.user-card-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.leaderboard-card:hover .user-card-name {
    transform: translateX(5px);
}

.user-card-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-card-stat {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.user-card-stat i {
    margin-right: 8px;
    font-size: 0.9rem;
    background: rgba(245, 87, 108, 0.15);
    border-radius: 50%;
    color: #f5576c;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.leaderboard-card:hover .user-card-stat i {
    background: rgba(245, 87, 108, 0.3);
    transform: rotate(360deg);
}

.card-rank {
    position: absolute;
    right: 20px;
    top: 20px;
    background: linear-gradient(to right, #f5576c, #f093fb);
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: var(--neon-shadow);
    animation: glow 2s infinite ease-in-out;
}

.leaderboard-card:hover .card-rank {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(245, 87, 108, 0.9),
        0 0 30px rgba(245, 87, 108, 0.6);
    animation: none;
}

@media (max-width: 991px) {
    .leaderboard-podium {
        gap: 20px;
    }

    .podium-item {
        width: 200px;
        min-height: 160px;
    }

    .podium-item.first {
        transform: scale(1.1);
    }
}

@media (max-width: 767px) {
    .leaderboard-podium {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .podium-item {
        width: 80%;
        max-width: 280px;
        min-height: auto;
        padding-bottom: 25px;
    }

    .podium-item.first {
        transform: scale(1.05);
        margin-bottom: 10px;
    }
}
