/* Дополнительные стили для учебного центра "Электрон" */

/* Плавные переходы для всех элементов */
* {
    transition: all 0.3s ease;
}

/* Улучшенные стили для кнопок */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Специальные стили для кнопки "Записаться" */
.header-signup-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px #8b5cf6, 0 2px 8px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.header-signup-btn:hover {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 0 0 2px #2563eb, 0 0 0 4px #7c3aed, 0 4px 12px rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.header-signup-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Эффект пульсации для привлечения внимания */
.header-signup-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 0.5s !important;
    z-index: 1 !important;
}

.header-signup-btn:hover::before {
    left: 100% !important;
}

/* Стили для мобильной кнопки в header */
.mobile-header-signup-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px #8b5cf6, 0 2px 6px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.mobile-header-signup-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 0 0 2px #2563eb, 0 0 0 4px #7c3aed, 0 3px 10px rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.mobile-header-signup-btn:active {
    transform: translateY(0) !important;
}

/* Стили для карточек */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Анимации для статистики */
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
}

/* Стили для форм */
.form-input {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Стили для мобильного меню */
.mobile-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Улучшенные стили для hero секции */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-gradient h1 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Адаптация header для мобильных */
    .container .flex.justify-between {
        gap: 8px;
    }
    
    /* Уменьшаем размер логотипа на очень маленьких экранах */
    @media (max-width: 480px) {
        .container .flex.justify-between .flex.items-center h1 {
            font-size: 16px;
        }
        
        .container .flex.justify-between .flex.items-center p {
            font-size: 11px;
        }
    }
}

/* Стили для кнопки "Наверх" */
.button-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.button-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.button-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
