/* ==========================================================================
   LEADERBOARD WORKSPACE LAYER
   ========================================================================== */
.leaderboard-container {
    padding: 10px 0 40px 0;
    width: 100%;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 35px;
}

/* ==========================================================================
   GLASSMORPHISM CARD MATRIX
   ========================================================================== */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.leaderboard-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.leaderboard-card:hover {
    transform: translateY(-2px) scale(1.01);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   PODIUM GLOW STYLING (RANK 1, 2, 3)
   ========================================================================== */
.rank-gold {
    border-color: rgba(251, 190, 36, 0.302);
    background: linear-gradient(145deg, rgba(251, 190, 36, 0.3), rgba(0, 0, 0, 0));
}
.rank-gold:hover { border-color: rgba(251, 191, 36, 0.4); }

.rank-silver {
    border-color: rgba(148, 163, 184, 0.302);
    background: linear-gradient(145deg, rgba(148, 163, 184, 0.3), rgba(0, 0, 0, 0));
}
.rank-silver:hover { border-color: rgba(148, 163, 184, 0.4); }

.rank-bronze {
    border-color: rgba(217, 119, 6, 0.302);
    background: linear-gradient(145deg, rgba(217, 119, 6, 0.3), rgba(0, 0, 0, 0));
}
.rank-bronze:hover { border-color: rgba(217, 119, 6, 0.4); }

/* ==========================================================================
   BADGES & ICONS
   ========================================================================== */
.rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.rank-badge i {
    font-size: 2.2rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.gold-icon { color: #fbbf24; }
.silver-icon { color: #94a3b8; }
.bronze-icon { color: #cd7f32; }

.normal-rank {
    font-size: 1.1rem;
    font-weight: 700;
    color: #475569;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   CONFESS TYPOGRAPHY
   ========================================================================== */
.confess-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.confess-text {
    font-size: 1.05rem;
    color: #f1f5f9;
    line-height: 1.6;
    font-weight: 500;
}

.meta-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   HEART LIKES COUNTER MODULE
   ========================================================================== */
.likes-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 8px 16px;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.leaderboard-card:hover .likes-counter {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.04);
}

.heart-pulse i {
    color: #ef4444;
    font-size: 1.15rem;
    display: block;
}

.leaderboard-card:hover .heart-pulse {
    animation: heartBeat 0.6s infinite alternate cubic-bezier(0.215, 0.610, 0.355, 1);
}

.likes-count {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f87171;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes heartBeat {
    0% { transform: scale(1); }
    100% { transform: scale(1.25); filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6)); }
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */
@media (max-width: 640px) {
    .leaderboard-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    .likes-counter {
        align-self: flex-end;
        width: auto;
    }
    .rank-badge {
        min-width: unset;
    }
}
