/* Home Leaderboards CSS - Based on the tap-to-earn styling */

/* Leaderboard Container Styles */
.leaderboard-container {
    background: linear-gradient(145deg, rgba(11, 11, 24, 0.95), rgba(19, 19, 38, 0.95));
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Leaderboard Header Styles */
.leaderboard-header {
    background: linear-gradient(90deg, rgba(10, 10, 20, 0.8), rgba(30, 30, 60, 0.8));
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.leaderboard-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* View Button Styles */
.view-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: rgba(0, 150, 255, 0.5);
    transform: scale(1.1);
}

.view-btn i {
    font-size: 16px;
    color: #fff;
}

/* Top Players Section */
.top-players {
    background: linear-gradient(180deg, rgba(15, 15, 30, 0.6), rgba(30, 30, 60, 0.6));
    padding: 20px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-player {
    position: relative;
    flex: 1;
    max-width: 33.33%;
    padding: 15px 5px 5px;
    transition: transform 0.3s ease;
}

.top-player:hover {
    transform: translateY(-5px);
}

.top-player.first {
    z-index: 2;
    margin-top: -15px;
}

.rank {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.top-player.first .rank {
    color: #ffd700;
    font-weight: 700;
}

/* Avatar Container */
.avatar-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(40, 40, 80, 0.8), rgba(20, 20, 40, 0.8));
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.top-player.first .avatar-container {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, rgba(60, 60, 120, 0.8), rgba(30, 30, 60, 0.8));
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.player-avatar {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
}

.top-player.first .player-avatar {
    font-size: 36px;
    color: rgba(255, 255, 255, 1);
}

/* Trophy and Laurel Styles */
.trophy {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd700;
    font-size: 24px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
    }
    to {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    }
}

.laurel-left {
    left: -5px;
    transform: rotate(-30deg);
    color: #ffd700;
    font-size: 18px;
}

.laurel-right {
    right: -5px;
    transform: rotate(30deg);
    color: #ffd700;
    font-size: 18px;
}

/* Player Name and Score */
.player-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 2px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-player.first .player-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.player-score {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.top-player.first .player-score {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Player List Styles */
.player-list {
    padding: 10px;
}

.player-item {
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: background-color 0.2s ease;
}

.player-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.player-rank {
    width: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* Responsive Adjustments */
@media only screen and (max-width: 767px) {
    .top-player {
        padding: 10px 2px 2px;
    }
    
    .avatar-container {
        width: 50px;
        height: 50px;
    }
    
    .top-player.first .avatar-container {
        width: 65px;
        height: 65px;
    }
    
    .player-avatar {
        font-size: 24px;
    }
    
    .top-player.first .player-avatar {
        font-size: 32px;
    }
    
    .player-name {
        font-size: 0.8rem;
    }
    
    .player-score {
        font-size: 0.75rem;
    }
    
    .trophy {
        font-size: 20px;
    }
    
    .laurel-left, .laurel-right {
        font-size: 16px;
    }
}

@media only screen and (max-width: 480px) {
    .top-players {
        padding: 15px 5px;
    }
    
    .avatar-container {
        width: 45px;
        height: 45px;
    }
    
    .top-player.first .avatar-container {
        width: 55px;
        height: 55px;
    }
    
    .player-avatar {
        font-size: 20px;
    }
    
    .top-player.first .player-avatar {
        font-size: 26px;
    }
    
    .rank {
        font-size: 0.75rem;
    }
    
    .player-name {
        font-size: 0.75rem;
    }
    
    .player-score {
        font-size: 0.7rem;
    }
}

/* Extra small devices */
@media only screen and (min-width: 320px) and (max-width: 480px) {
    .leaderboard-title {
        font-size: 1.1rem;
    }
    
    .player-item {
        padding: 6px 4px;
    }
    
    .player-rank {
        width: 25px;
        font-size: 0.8rem;
    }
}

/* Small devices */
@media only screen and (min-width: 481px) and (max-width: 767px) {
    .leaderboard-container {
        max-width: 95%;
        margin: 0 auto;
    }
}

/* Medium devices */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .top-players {
        padding: 20px 10px;
    }
    
    .leaderboard-container {
        margin-bottom: 20px;
    }
}
