.liderlik-wrapper {
    max-width: var(--layout-max-width, 1000px);
    margin: 40px auto;
    font-family: var(--font-main);
}

.liderlik-header {
    text-align: center;
    margin-bottom: 50px;
}

.liderlik-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
}

.liderlik-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    min-height: 250px;
}

.podium-card {
    background-color: var(--surface-900, #090909);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.podium-card:hover {
    box-shadow: 0 0 15px rgba(var(--primary), 0.1);
    border-color: rgba(var(--primary), 0.3);
}

.podium-card.rank-1 {
    width: 210px;
    height: 270px;
    border-color: rgba(var(--primary), 0.3);
    box-shadow: 0 0 20px rgba(var(--primary), 0.05);
    z-index: 2;
}

.podium-card.rank-1:hover {
    border-color: rgba(var(--primary), 0.6);
    box-shadow: 0 0 30px rgba(var(--primary), 0.2);
}

.podium-card.rank-2,
.podium-card.rank-3 {
    width: 180px;
    height: 230px;
    z-index: 1;
}

/* Crown icon for rank 1 */
.crown-icon {
    position: absolute;
    top: -25px;
    color: var(--brand-red-hover);
    font-size: 32px;
    animation: floatingCrown 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

@keyframes floatingCrown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Rank Badge */
.rank-badge {
    position: absolute;
    top: -15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.podium-card.rank-1 .rank-badge {
    background: var(--brand-red-hover);
    color: var(--text-on-accent, #000);
    width: 40px;
    height: 40px;
    top: -20px;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.5);
}

.podium-card.rank-2 .rank-badge {
    background: var(--text-secondary, #cbd5e1);
    color: var(--text-on-accent, #000);
}

.podium-card.rank-3 .rank-badge {
    background: var(--accent-hover, #d97706);
    color: var(--text-light);
}

/* Avatar with heartbeat pulse */
.avatar-wrapper {
    position: relative;
    margin-bottom: 15px;
    margin-top: 10px;
}

.podium-card.rank-1 .avatar-wrapper {
    margin-top: 20px;
    margin-bottom: 25px;
}

.avatar-wrapper img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.podium-card.rank-1 .avatar-wrapper img {
    width: 90px;
    height: 90px;
    border-color: rgba(var(--primary), 0.5);
}

/* Heartbeat pulse animation */
.avatar-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(var(--primary), 0.4);
    z-index: 1;
    animation: heartbeat 2s infinite ease-out;
}

.podium-card.rank-2 .avatar-pulse {
    background: rgba(203, 213, 225, 0.3);
}

.podium-card.rank-3 .avatar-pulse {
    background: color-mix(in srgb, var(--accent-hover, #d97706) 30%, transparent);
}

@keyframes heartbeat {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.podium-card.rank-1 .user-name {
    font-size: 18px;
}

.user-points {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2px;
}

.podium-card.rank-1 .user-points {
    color: var(--brand-red, #f59e0b);
    font-size: 24px;
}

.points-label {
    font-size: 12px;
    color: var(--text-gray);
}

/* List Items */
.liderlik-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.liderlik-list-item {
    display: flex;
    align-items: center;
    background-color: var(--surface-800, #111111);
    border-radius: 12px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.liderlik-list-item:hover {
    border-color: rgba(var(--primary), 0.3);
    background-color: var(--surface-700, #1c1c1c);
}

.list-rank {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
    width: 40px;
}

.list-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-name {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 600;
    flex-grow: 1;
}

.list-points-wrapper {
    text-align: right;
}

.list-points {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-red, #f59e0b);
}

.list-points-label {
    font-size: 11px;
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .podium-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 8px;
        min-height: 180px;
    }

    .podium-card {
        padding: 15px 5px;
        border-radius: 12px;
    }

    .podium-card.rank-1 {
        width: 130px;
        height: 190px;
    }

    .podium-card.rank-2,
    .podium-card.rank-3 {
        width: 100px;
        height: 160px;
    }

    .podium-card.rank-1 .avatar-wrapper img {
        width: 60px;
        height: 60px;
    }

    .avatar-wrapper img {
        width: 45px;
        height: 45px;
    }

    .podium-card.rank-1 .user-name {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .user-name {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .podium-card.rank-1 .user-points {
        font-size: 15px;
    }

    .user-points {
        font-size: 13px;
    }

    .points-label {
        font-size: 10px;
    }

    .crown-icon {
        font-size: 24px;
        top: -20px;
    }

    .podium-card.rank-1 .rank-badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
        top: -14px;
    }

    .rank-badge {
        width: 24px;
        height: 24px;
        font-size: 11px;
        top: -12px;
    }

    .avatar-wrapper {
        margin-bottom: 8px;
        margin-top: 5px;
    }

    .podium-card.rank-1 .avatar-wrapper {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}