﻿/* Hide scrollbar for horizontal scroll */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Top Players Scroll Container */
.top-players-scroll-container {
    -webkit-overflow-scrolling: touch;
}

/* Top Players Card Styles */
.top-player-card {
    /* min-width: 140px; */
    min-width: 160px;
    max-width: 160px;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

    .top-player-card:hover {
        border-color: #F07134;
    }

    .top-player-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: #F07134;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .top-player-card:hover::before {
        opacity: 1;
    }

/* Rank Badge Styles */
.rank-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    .rank-badge.rank-1 {
        background: linear-gradient(135deg, #ffd700, #ffed4e);
        color: #1f2937;
    }

    .rank-badge.rank-2 {
        background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
        color: #1f2937;
    }

    .rank-badge.rank-3 {
        background: linear-gradient(135deg, #cd7f32, #e6a55a);
        color: #1f2937;
    }

    /* Default rank badge for ranks 4-9 */
    .rank-badge:not(.rank-1):not(.rank-2):not(.rank-3) {
        background: linear-gradient(135deg, #6b7280, #9ca3af);
        color: white;
    }

/* Player Avatar */
.player-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Player Info */
.player-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.player-points {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* Skeleton Loading */
.player-card-skeleton {
    min-width: 140px;
    max-width: 160px;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .player-avatar {
        width: 80px;
        height: 80px;
    }

    .top-player-card {
        /* min-width: 120px; */
        min-width: 140px;
        max-width: 140px;
        padding: 1rem 0.75rem;
    }

    .rank-badge {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}
