/* Podcast Studio - Neon Design Styles */

:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --secondary: #00CEC9;
    --light: #FFFFFF;
    --light-gray: #F5F6FA;
    --gray: #DFE6E9;
    --dark-gray: #636E72;
    --dark: #2D3436;
    --accent: #FD79A8;
    --glass: rgba(255,255,255,0.15);
}

@font-face {
    font-family: 'ClashDisplay';
    src: url('/fonts/ClashDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: 'Satoshi';
    src: url('/fonts/Satoshi-Medium.woff2') format('woff2');
    font-weight: 500;
}

@font-face {
    font-family: 'Satoshi';
    src: url('/fonts/Satoshi-Bold.woff2') format('woff2');
    font-weight: 700;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark);
    overflow-x: hidden;
}

/* Неоновые эффекты */
.neon-text {
    text-shadow: 0 0 8px rgba(108, 92, 231, 0.4);
    transition: text-shadow 0.3s ease;
}

.neon-text:hover {
    text-shadow: 0 0 12px rgba(108, 92, 231, 0.6), 
                 0 0 24px rgba(108, 92, 231, 0.3);
}

.neon-box {
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
    transition: box-shadow 0.3s ease;
}

.neon-box:hover {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3), 
                0 0 40px rgba(108, 92, 231, 0.1);
}

/* Герой секция */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--light) 0%, var(--light-gray) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    border-radius: 0 0 0 100px;
}

/* Адаптация заголовка */
.hero-title .long-word {
    display: inline-block;
}

@media (max-width: 576px) {
    .hero-title .long-word {
        display: block;
        white-space: normal;
    }
}

/* Фиксированный контейнер для анимированного текста */
.typed-container {
    min-height: 1.2em; /* Минимальная высота для одной строки */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.typed-text {
    min-width: 0; /* Позволяет тексту сжиматься */
    white-space: nowrap; /* Предотвращает перенос строк */
    overflow: hidden; /* Скрывает переполнение */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .typed-container {
        min-height: 1.1em;
        justify-content: center;
    }
    
    .typed-text {
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    .typed-container {
        min-height: 1em;
    }
    
    .typed-text {
        font-size: 0.8em;
        text-align: center;
    }
}


/* 3D эффекты */
.perspective-card {
    transform: perspective(1500px) rotateX(5deg);
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.perspective-card:hover {
    transform: perspective(1500px) rotateX(0);
}

/* Стеклянный морфизм */
.glass-card {
    background: var(--glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Анимированные градиенты */
.animated-gradient {
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Кнопки с эффектом частиц */
.particle-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.particle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.particle-btn:hover {
    transform: translateY(-3px);
}

.particle-btn:hover::before {
    opacity: 0.6;
    animation: particleExplode 0.6s forwards;
}

@keyframes particleExplode {
    0% { transform: scale(0); opacity: 0 }
    50% { opacity: 0.6 }
    100% { transform: scale(3); opacity: 0 }
}

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-15px) }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Секции */
.section {
    padding: 6rem 0;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    font-family: 'ClashDisplay', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Карточки студий */
.studio-card {
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray);
}

.studio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.15);
}

/* Иконки */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-box:hover {
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-section::before {
        display: none;
    }
    
    .display-3 {
        font-size: 2.2rem !important;
        line-height: 1.3;
    }
    
    .hero-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 1.8rem !important;
    }
    
    .hero-title br {
        display: block;
    }
}

/* Дополнительные стили для форм */
.booking-form {
    background: var(--light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control, .form-select {
    border: 2px solid var(--gray);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

/* Календарь */
.calendar-slot {
    border: 2px solid var(--gray);
    border-radius: 8px;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.calendar-slot:hover {
    border-color: var(--primary);
    background-color: rgba(108, 92, 231, 0.1);
}

.calendar-slot.booked {
    background-color: var(--gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-slot.selected {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

/* Услуги */
.service-item {
    border: 2px solid var(--gray);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--primary);
    background-color: rgba(108, 92, 231, 0.05);
}

.service-item.selected {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

/* Загрузка */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(108, 92, 231, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Уведомления */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Анимация появления */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Слайдер */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease;
}

.slider-item {
    min-width: 100%;
    flex-shrink: 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: var(--primary);
    color: white;
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* Модальные окна */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid var(--gray);
    border-radius: 16px 16px 0 0;
}

.modal-footer {
    border-top: 1px solid var(--gray);
    border-radius: 0 0 16px 16px;
}

/* Прогресс бар */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Таблицы */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(108, 92, 231, 0.05);
}

/* Пагинация */
.pagination .page-link {
    border: 2px solid var(--gray);
    color: var(--dark);
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Утилиты */
.text-gradient {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.shadow-neon {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

.border-neon {
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.2);
}
