/* ============================================
   PLAYER STATS WIDGET - Homepage Overview
   ============================================ */

.player-stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 700px;
    max-height: 700px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #FFB81C #e1e8ed;
}

.player-stats-list::-webkit-scrollbar {
    width: 8px;
}

.player-stats-list::-webkit-scrollbar-track {
    background: #e1e8ed;
    border-radius: 4px;
}

.player-stats-list::-webkit-scrollbar-thumb {
    background: #FFB81C;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.player-stats-list::-webkit-scrollbar-thumb:hover {
    background: #e5a000;
}

.stats-section {
    margin-bottom: 24px;
}

.stats-section:last-child {
    margin-bottom: 0;
}

.stats-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #041E42;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFB81C;
}

.player-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.player-stat-card:hover {
    background: #edeef0;
    transform: translateX(4px);
}

.player-stat-rank {
    font-size: 24px;
    font-weight: 700;
    color: #FFB81C;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.player-stat-info {
    flex: 1;
    min-width: 0;
}

.player-stat-name {
    font-size: 16px;
    font-weight: 600;
    color: #041E42;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-stat-position {
    font-size: 13px;
    color: #6c757d;
    margin-top: 2px;
}

.player-stat-numbers {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #041E42;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-link {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: #041E42;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s ease;
}

.view-all-link:hover {
    background: #FFB81C;
    color: #041E42;
}

/* Empty/Error States */
.player-stats-empty,
.player-stats-error {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.player-stats-error {
    color: #dc3545;
    background: #fff5f5;
    border-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .player-stat-card {
        padding: 12px;
        gap: 12px;
    }

    .player-stat-rank {
        font-size: 20px;
        width: 28px;
    }

    .player-stat-name {
        font-size: 14px;
    }

    .player-stat-position {
        font-size: 12px;
    }

    .player-stat-numbers {
        gap: 12px;
    }

    .stat-value {
        font-size: 16px;
    }

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

    .view-all-link {
        width: 100%;
        padding: 12px;
    }
}
