/* 🏆 Стили для топ игроков */

/* Основной контейнер топа */
.top-players-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    border: 3px solid #4caf50;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
}

.top-players-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.top-players-section h3 {
    color: #4caf50;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    position: relative;
    z-index: 1;
}

/* Список игроков */
.top-players-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

/* Элемент игрока */
.top-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    border: 2px solid #4caf50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9em;
    min-height: 60px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.top-player-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.top-player-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.top-player-item:hover::before {
    left: 100%;
}

.top-player-item:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    border-color: #66bb6a;
}

/* Контейнер ранга и статуетки */
.player-rank-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.trophy-emoji {
    font-size: 2em;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.player-rank {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffc107;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

/* Информация об игроке */
.player-info {
    flex: 1;
    margin: 0 20px;
}

.player-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.player-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(76, 175, 80, 0.2);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.85em;
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Бейджи игрока */
.player-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.badge.champion {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: 2px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
    border: 2px solid #c0c0c0;
}

.badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #000;
    border: 2px solid #cd7f32;
}

.badge.veteran {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    color: #fff;
    border: 2px solid #8b4513;
}

.badge.rich {
    background: linear-gradient(135deg, #00bcd4, #26c6da);
    color: #fff;
    border: 2px solid #00bcd4;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

/* Специальные стили для топ-3 */
.top-player-item.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.top-player-item.rank-1 .player-name,
.top-player-item.rank-1 .stat-item {
    color: #000;
}

.top-player-item.rank-1 .player-rank {
    color: #000;
    text-shadow: none;
}

.top-player-item.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
    border-color: #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
}

.top-player-item.rank-2 .player-name,
.top-player-item.rank-2 .stat-item {
    color: #000;
}

.top-player-item.rank-2 .player-rank {
    color: #000;
    text-shadow: none;
}

.top-player-item.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #000;
    border-color: #cd7f32;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.5);
}

.top-player-item.rank-3 .player-name,
.top-player-item.rank-3 .stat-item {
    color: #000;
}

.top-player-item.rank-3 .player-rank {
    color: #000;
    text-shadow: none;
}

/* Подиум эффект для топ-3 */
.podium-player {
    position: relative;
}

.podium-player::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 8px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    filter: blur(2px);
}

/* Эффект свечения для топ-3 */
[data-glow="true"] {
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.8), 0 0 30px rgba(76, 175, 80, 0.6);
    }
}

/* Сообщение о пустом топе */
.no-players-message {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-trophy {
    font-size: 4em;
    margin-bottom: 15px;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.no-players-message p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.no-players-message small {
    font-style: italic;
    color: #666;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .top-players-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .top-players-section h3 {
        font-size: 1.4em;
    }
    
    .top-player-item {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: auto;
    }
    
    .player-rank-container {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-width: auto;
    }
    
    .trophy-emoji {
        font-size: 1.5em;
        margin-bottom: 0;
    }
    
    .player-rank {
        font-size: 1em;
    }
    
    .player-info {
        margin: 0;
        width: 100%;
    }
    
    .player-stats {
        gap: 10px;
    }
    
    .player-badges {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .badge {
        font-size: 0.7em;
        padding: 2px 6px;
    }
}





























