/* ===== ОПТИМИЗИРОВАННЫЕ СТИЛИ ДЛЯ ЗАЛА СЛАВЫ ===== */

:root {
    --neon-green: #7cfc00;
    --bright-green: #39ff14;
    --light-green: #7cfc00;
    --blue-accent: #00d4ff;
    --purple-accent: #c073ff;
    --yellow-accent: #ffed00;
    --dark-bg: #050510;
    --card-bg: rgba(15, 25, 40, 0.6);
    --hologram-blue: #00ffff;
    --cosmic-purple: #8a2be2;
    --galaxy-pink: #ff1493;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comfortaa', sans-serif;
}

body {
    background: 
        radial-gradient(ellipse at top, rgba(17, 34, 85, 0.8) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(85, 17, 85, 0.8) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark-bg) 0%, #0a0a1a 50%, #1a0a2e 100%);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ===== УПРОЩЕННЫЙ ЗВЕЗДНЫЙ ФОН ===== */
#stars-container {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    /* Убираем тяжелые анимации и box-shadow */
}

/* ===== УБИРАЕМ ВСЕ ТЯЖЕЛЫЕ ФОНОВЫЕ ЭФФЕКТЫ ===== */
.cosmic-particles,
.cosmic-orbs,
.energy-lines,
.holo-grid {
    display: none; /* Полностью отключаем */
}

/* ===== HERO СЕКЦИЯ (УПРОЩЕННАЯ) ===== */
.hero {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 0;
    position: relative;
    z-index: 5;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(45deg, 
        var(--hologram-blue) 0%, 
        var(--bright-green) 25%, 
        var(--galaxy-pink) 50%, 
        var(--purple-accent) 75%, 
        var(--hologram-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 2;
    /* Убираем тяжелые анимации */
}

.hero .subtitle {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    /* Убираем анимации */
}

.hero .olympic-title {
    font-size: 20px;
    color: var(--hologram-blue);
    opacity: 0.9;
}

/* ===== ТАБЫ КАТЕГОРИЙ (УПРОЩЕННЫЕ) ===== */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
    z-index: 5;
}

.tab-button {
    background: rgba(15, 25, 40, 0.4);
    border: 2px solid transparent;
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease; /* Упрощенный transition */
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Упрощенный hover */
.tab-button:hover {
    transform: translateY(-3px);
    border-color: var(--hologram-blue);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.tab-button.active {
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.2), 
        rgba(124, 252, 0, 0.2));
    border: 2px solid var(--bright-green);
    box-shadow: 0 0 25px rgba(124, 252, 0, 0.4);
    transform: scale(1.05);
}

/* ===== ГРУППЫ (УПРОЩЕННЫЕ) ===== */
.age-group {
    margin-bottom: 80px;
    position: relative;
    z-index: 3;
}

.group-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.kids-title { 
    color: var(--hologram-blue);
}

.juniors-title { 
    color: var(--bright-green);
}

.teens-title { 
    color: var(--purple-accent);
}

.group-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        currentColor, 
        transparent);
    border-radius: 3px;
}

/* ===== ПОДИУМЫ (ОПТИМИЗИРОВАННЫЕ) ===== */
.group-podiums {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.podium {
    background: rgba(15, 25, 40, 0.3);
    border-radius: 25px;
    padding: 35px 25px;
    border: 2px solid transparent;
    transition: all 0.3s ease; /* Упрощенный transition */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

/* Упрощенный hover */
.podium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--hologram-blue);
}

/* Цвета подгрупп */
.kids .podium {
    border-color: rgba(0, 212, 255, 0.3);
}

.kids .podium:hover {
    border-color: rgba(0, 212, 255, 0.6);
}

.juniors .podium {
    border-color: rgba(124, 252, 0, 0.3);
}

.juniors .podium:hover {
    border-color: rgba(124, 252, 0, 0.6);
}

.teens .podium {
    border-color: rgba(192, 115, 255, 0.3);
}

.teens .podium:hover {
    border-color: rgba(192, 115, 255, 0.6);
}

.podium-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.podium-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.kids .podium-title { 
    color: var(--hologram-blue);
}

.juniors .podium-title { 
    color: var(--bright-green);
}

.teens .podium-title { 
    color: var(--purple-accent);
}

/* ===== ПЛАТФОРМЫ ДЛЯ МЕСТ (УПРОЩЕННЫЕ) ===== */
.podium-places {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.place {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease; /* Упрощенный transition */
}

.place:hover {
    transform: scale(1.02);
}

.place-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease;
}

.place-avatar:hover {
    transform: scale(1.05);
}

.place-name {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    min-height: 35px;
    display: flex;
    align-items: center;
    max-width: 90px;
    line-height: 1.3;
}

.place-platform {
    width: 70px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

/* Платформы БЕЗ тяжелых анимаций */
.place-1 .place-platform {
    height: 90px;
    background: linear-gradient(135deg, 
        #FFD700 0%, 
        #FFA500 50%, 
        #FF8C00 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.place-2 .place-platform {
    height: 70px;
    background: linear-gradient(135deg, 
        #C0C0C0 0%, 
        #A9A9A9 50%, 
        #808080 100%);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

.place-3 .place-platform {
    height: 50px;
    background: linear-gradient(135deg, 
        #CD7F32 0%, 
        #A0522D 50%, 
        #8B4513 100%);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
}

/* ===== МЕДАЛИ НА АВАТАРАХ (СОХРАНЯЕМ ПРОСТУЮ АНИМАЦИЮ) ===== */
.place-avatar::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid white;
    /* Убираем тяжелую анимацию вращения */
}

.place-1 .place-avatar::after {
    content: '🥇';
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.place-2 .place-avatar::after {
    content: '🥈';
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.place-3 .place-avatar::after {
    content: '🥉';
    background: linear-gradient(135deg, #CD7F32, #A0522D);
}

/* ===== ПРОСТЫЕ АНИМАЦИИ ПОЯВЛЕНИЯ ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: simple-fade-in 0.6s ease forwards;
}

@keyframes simple-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delayed-1 { animation-delay: 0.1s; }
.delayed-2 { animation-delay: 0.2s; }
.delayed-3 { animation-delay: 0.3s; }
.delayed-4 { animation-delay: 0.4s; }

/* ===== ЗАГЛУШКА (УПРОЩЕННАЯ) ===== */
.no-data {
    text-align: center;
    padding: 100px 20px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.no-data i {
    font-size: 80px;
    margin-bottom: 30px;
    opacity: 0.6;
    color: var(--hologram-blue);
}

.no-data h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--hologram-blue);
}

/* ===== УПРОЩЕННАЯ ЗАГРУЗКА ===== */
.loading {
    text-align: center;
    padding: 150px 20px;
    position: relative;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--hologram-blue);
    border-radius: 50%;
    animation: simple-spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes simple-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--hologram-blue);
}

.loading p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* ===== ПРОСТАЯ АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.cosmic-reveal {
    animation: simple-reveal 0.8s ease forwards;
    opacity: 0;
}

@keyframes simple-reveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== МОБИЛЬНАЯ АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .hero .subtitle {
        font-size: 22px;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .tab-button {
        width: 250px;
        padding: 18px 35px;
        font-size: 18px;
    }
    
    .group-title {
        font-size: 28px;
    }
    
    .group-podiums {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .podium {
        min-height: 380px;
        padding: 30px 20px;
    }
    
    .place-avatar {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .place-platform {
        width: 60px;
        font-size: 20px;
    }
    
    .place-1 .place-platform { height: 75px; }
    .place-2 .place-platform { height: 60px; }
    .place-3 .place-platform { height: 45px; }
    
    .place-avatar::after {
        width: 24px;
        height: 24px;
        font-size: 12px;
        bottom: -6px;
        right: -6px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 20px 10px;
    }
    
    .hero {
        padding: 40px 0;
        margin-bottom: 60px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero .subtitle {
        font-size: 18px;
    }
    
    .tab-button {
        width: 200px;
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .group-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .podium {
        padding: 25px 15px;
        min-height: 350px;
    }
    
    .podium-places {
        gap: 15px;
    }
    
    .place-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .place-platform {
        width: 50px;
        font-size: 18px;
    }
    
    .place-1 .place-platform { height: 60px; }
    .place-2 .place-platform { height: 50px; }
    .place-3 .place-platform { height: 40px; }
    
    .place-name {
        font-size: 11px;
        max-width: 70px;
    }
    
    .place-avatar::after {
        width: 20px;
        height: 20px;
        font-size: 10px;
        bottom: -4px;
        right: -4px;
    }
}

/* ===== ОПТИМИЗАЦИЯ ПРОИЗВОДИТЕЛЬНОСТИ ===== */
* {
    /* Отключаем сложные вычисления браузера */
    will-change: auto;
    backface-visibility: visible;
    transform-style: flat;
}

/* Включаем аппаратное ускорение только для критичных элементов */
.tab-button,
.podium,
.place-avatar {
    will-change: transform;
    transform: translateZ(0);
}