/**
 * Slotty Leaderboards - Public CSS
 * Estilos para los shortcodes de leaderboard
 */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

.leaderboard-section {
    font-family: 'Rubik', sans-serif;
    color: #fff;
    width: 100%;
}

.leaderboard-section * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.leaderboard-section .leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .leaderboard-section .leaderboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .leaderboard-section .main-card {
        transform: translateY(-48px);
    }
    .leaderboard-section .leaderboard-card {
        order: 0;
    }
}

@media (max-width: 767.98px) {
    .leaderboard-section .leaderboard-grid {
        display: flex;
        flex-direction: column;
    }
    .leaderboard-section .main-card {
        transform: none;
        order: -1;
    }
}

.leaderboard-section .leaderboard-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: #1F2225;
    text-align: center;
    padding: 2rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.leaderboard-section .card-blur {
    position: absolute;
    top: -150px;
    width: 100%;
    height: 33%;
    filter: blur(50px);
    z-index: 0;
}

.leaderboard-section .card-header {
    position: relative;
    z-index: 1;
}

.leaderboard-section .card-logo {
    width: 63px;
    height: 63px;
    border-radius: 50%;
    border: 2px solid currentColor;
    object-fit: cover;
}

.leaderboard-section .card-rank {
    position: absolute;
    top: -8px;
    right: 0;
    width: 26px;
    height: 26px;
    display: grid;
    place-content: center;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    background: linear-gradient(to right, var(--rank-from), var(--rank-to));
    color: #fff;
}

.leaderboard-section .rank-1 { 
    border: 1px solid #E7AC4A; 
}

.leaderboard-section .rank-2 { 
    border: 1px solid #8F8F8F; 
}

.leaderboard-section .rank-3 { 
    border: 1px solid #D17C67; 
}

.leaderboard-section .card-name {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    z-index: 1;
}

.leaderboard-section .card-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.leaderboard-section .stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #A8A8A8;
    text-transform: uppercase;
}

.leaderboard-section .stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
}

.leaderboard-section .card-reward {
    width: 100%;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    background: linear-gradient(to right, var(--rank-from), var(--rank-to));
    color: #fff;
}

.leaderboard-section .gold {
    --rank-from: #E7AC4A;
    --rank-to: #826129;
    color: #E7AC4A;
}

.leaderboard-section .silver {
    --rank-from: #8F8F8F;
    --rank-to: #454545;
    color: #8F8F8F;
}

.leaderboard-section .bronze {
    --rank-from: #D17C67;
    --rank-to: #6B3F35;
    color: #D17C67;
}

.leaderboard-section .gold .card-blur { 
    background: #E7AC4A; 
}

.leaderboard-section .silver .card-blur { 
    background: #8F8F8F; 
}

.leaderboard-section .bronze .card-blur { 
    background: #D17C67; 
}

.leaderboard-section .text-color-primary {
    color: inherit;
}

