/* /css/btn-header.css - Стили для анимированной кнопки */

/* Основная кнопка */
.btn-header {
    display: inline-block;
    position: relative;
    padding: 22px 50px;
    background: linear-gradient(135deg, 
        #FF4500 0%, 
        #FF6347 25%, 
        #FF8C00 50%, 
        #FFA500 75%, 
        #FFD700 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 20px rgba(255, 69, 0, 0.3),
        0 6px 6px rgba(255, 69, 0, 0.2),
        inset 0 -3px 8px rgba(255, 255, 255, 0.2),
        inset 0 3px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    animation: pulseGlow 2.5s infinite alternate;
}

/* Анимация пульсации и свечения */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        box-shadow: 
            0 10px 20px rgba(255, 69, 0, 0.3),
            0 6px 6px rgba(255, 69, 0, 0.2),
            inset 0 -3px 8px rgba(255, 255, 255, 0.2),
            inset 0 3px 8px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, 
            #FF4500 0%, 
            #FF6347 25%, 
            #FF8C00 50%, 
            #FFA500 75%, 
            #FFD700 100%);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 15px 30px rgba(255, 69, 0, 0.5),
            0 10px 15px rgba(255, 69, 0, 0.4),
            0 0 50px rgba(255, 140, 0, 0.6),
            inset 0 -3px 12px rgba(255, 255, 255, 0.3),
            inset 0 3px 12px rgba(0, 0, 0, 0.15);
        background: linear-gradient(135deg, 
            #FFD700 0%, 
            #FFA500 25%, 
            #FF8C00 50%, 
            #FF6347 75%, 
            #FF4500 100%);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 10px 20px rgba(255, 69, 0, 0.3),
            0 6px 6px rgba(255, 69, 0, 0.2),
            inset 0 -3px 8px rgba(255, 255, 255, 0.2),
            inset 0 3px 8px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, 
            #FF4500 0%, 
            #FF6347 25%, 
            #FF8C00 50%, 
            #FFA500 75%, 
            #FFD700 100%);
    }
}

/* Эффект свечения */
.btn-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    border-radius: 20px;
    z-index: -1;
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% {
        opacity: 0.5;
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Внешнее свечение */
.btn-header::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(
        circle at center,
        rgba(255, 69, 0, 0.4) 0%,
        rgba(255, 140, 0, 0.2) 30%,
        transparent 70%
    );
    border-radius: 30px;
    z-index: -2;
    opacity: 0;
    animation: outerGlow 2.5s infinite alternate;
}

@keyframes outerGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
}

/* Эффект при наведении */
.btn-header:hover {
    animation: none;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(255, 69, 0, 0.6),
        0 15px 25px rgba(255, 69, 0, 0.4),
        0 0 80px rgba(255, 140, 0, 0.8),
        inset 0 -5px 15px rgba(255, 255, 255, 0.4),
        inset 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, 
        #FFD700 0%, 
        #FFA500 25%, 
        #FF8C00 50%, 
        #FF6347 75%, 
        #FF4500 100%);
}

/* Эффект при клике */
.btn-header:active {
    transform: scale(0.95) translateY(2px);
    transition: all 0.1s ease;
    box-shadow: 
        0 5px 10px rgba(255, 69, 0, 0.4),
        0 3px 3px rgba(255, 69, 0, 0.3),
        inset 0 -2px 5px rgba(255, 255, 255, 0.2),
        inset 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Текст с эффектом свечения */
.btn-header span {
    display: block;
    position: relative;
    z-index: 2;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 255, 255, 0.2);
    animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 0 10px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(255, 255, 255, 0.4),
            0 0 30px rgba(255, 140, 0, 0.5);
    }
}

/* Эффект частиц */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #FF8C00, transparent);
    border-radius: 50%;
    animation: float 3s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

/* Искры */
.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 1.5s infinite linear;
    z-index: 2;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .btn-header {
        padding: 25px 40px;
        font-size: 1.3rem;
        border-radius: 18px;
        animation: mobilePulse 2s infinite alternate;
    }

    @keyframes mobilePulse {
        0% {
            transform: scale(1);
            box-shadow: 
                0 8px 25px rgba(255, 69, 0, 0.4),
                0 5px 10px rgba(255, 69, 0, 0.3),
                0 0 30px rgba(255, 140, 0, 0.5),
                inset 0 -3px 10px rgba(255, 255, 255, 0.25),
                inset 0 3px 10px rgba(0, 0, 0, 0.15);
        }
        50% {
            transform: scale(1.08);
            box-shadow: 
                0 12px 35px rgba(255, 69, 0, 0.6),
                0 8px 20px rgba(255, 69, 0, 0.5),
                0 0 60px rgba(255, 140, 0, 0.8),
                inset 0 -4px 15px rgba(255, 255, 255, 0.35),
                inset 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        100% {
            transform: scale(1);
            box-shadow: 
                0 8px 25px rgba(255, 69, 0, 0.4),
                0 5px 10px rgba(255, 69, 0, 0.3),
                0 0 30px rgba(255, 140, 0, 0.5),
                inset 0 -3px 10px rgba(255, 255, 255, 0.25),
                inset 0 3px 10px rgba(0, 0, 0, 0.15);
        }
    }

    .btn-header:hover {
        transform: scale(1.12) translateY(-3px);
    }

    .btn-header::after {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        animation: mobileOuterGlow 2s infinite alternate;
    }

    @keyframes mobileOuterGlow {
        0% {
            opacity: 0.4;
            transform: scale(0.9);
        }
        50% {
            opacity: 0.8;
            transform: scale(1.1);
        }
        100% {
            opacity: 0.4;
            transform: scale(0.9);
        }
    }
}

@media (max-width: 480px) {
    .btn-header {
        padding: 22px 35px;
        font-size: 1.2rem;
        border-radius: 16px;
        animation: smallMobilePulse 1.8s infinite alternate;
    }

    @keyframes smallMobilePulse {
        0% {
            transform: scale(1);
            box-shadow: 
                0 6px 20px rgba(255, 69, 0, 0.5),
                0 4px 8px rgba(255, 69, 0, 0.4),
                0 0 40px rgba(255, 140, 0, 0.6),
                inset 0 -3px 8px rgba(255, 255, 255, 0.3),
                inset 0 3px 8px rgba(0, 0, 0, 0.2);
        }
        50% {
            transform: scale(1.1);
            box-shadow: 
                0 10px 30px rgba(255, 69, 0, 0.7),
                0 6px 15px rgba(255, 69, 0, 0.6),
                0 0 80px rgba(255, 140, 0, 0.9),
                inset 0 -4px 12px rgba(255, 255, 255, 0.4),
                inset 0 4px 12px rgba(0, 0, 0, 0.25);
        }
        100% {
            transform: scale(1);
            box-shadow: 
                0 6px 20px rgba(255, 69, 0, 0.5),
                0 4px 8px rgba(255, 69, 0, 0.4),
                0 0 40px rgba(255, 140, 0, 0.6),
                inset 0 -3px 8px rgba(255, 255, 255, 0.3),
                inset 0 3px 8px rgba(0, 0, 0, 0.2);
        }
    }

    .btn-header:hover {
        transform: scale(1.15) translateY(-2px);
    }

    .btn-header::after {
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
    }
} /* ← ВОТ ЭТОЙ СКОБКИ НЕ ХВАТАЛО! */