/* css/hero-block.css - Адаптивный Hero блок (только контейнер) */

/* ============================================
   БАЗОВЫЕ НАСТРОЙКИ
   ============================================ */
:root {
    /* Базовое разрешение для расчетов */
    --base-width: 1920;
    --base-height: 1080;
    
    /* Базовые размеры блока на 1920x1080 */
    --block-base-width: 960px;
    --block-base-height: 750px;
    --block-base-right: 90px; /* Отступ от правого края */
    
    /* Высота header */
    --header-height: 80px;
    --header-mobile-height: 60px;
    
    /* Динамические переменные (будут обновляться через JS) */
    --scale-factor: 1;
    --viewport-width: 100vw;
    --viewport-height: 100vh;
    --available-height: calc(100vh - var(--header-height));
    --dynamic-right-offset: 90px; /* Будет обновляться через JS */
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: var(--available-height);
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ============================================
   АДАПТИВНЫЙ HERO БЛОК
   ============================================ */
.hero-content-block {
    position: absolute;
    right: var(--dynamic-right-offset);
    top: 50%;
    transform: translateY(-50%);
    transform-origin: right center;
    
    /* Базовые размеры */
    width: var(--block-base-width);
    height: var(--block-base-height);
    
    /* Минималистичный темный стиль */
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    
    padding: 60px 50px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    transition: none;
    
    overflow-y: auto;
    overflow-x: hidden;
    
    pointer-events: all;
}

/* Hover эффект - минимальный */
.hero-content-block:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Скроллбар */
.hero-content-block::-webkit-scrollbar {
    width: 4px;
}

.hero-content-block::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.hero-content-block::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* ============================================
   GLASS MORPHISM ЭФФЕКТ ДЛЯ HERO БЛОКА
   ============================================ */

/* Стеклянный стиль блока */
.hero-content-block {
    /* Полупрозрачный фон вместо сплошного */
    background: rgba(10, 15, 25, 0.6) !important;
    
    /* Размытие фона */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    
    /* Обновленная граница */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    
    /* Улучшенная тень */
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    
    /* Плавный переход для hover эффектов */
    transition: all 0.3s ease;
}

/* Hover эффект */
.hero-content-block:hover {
    background: rgba(10, 15, 25, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Fallback для браузеров без поддержки backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .hero-content-block {
        background: rgba(10, 15, 25, 0.85) !important;
    }
}

/* ============================================
   ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ
   ============================================ */

/* Принудительное позиционирование по центру */
body.hero-center .hero-section {
    justify-content: center;
}

body.hero-center .hero-content-block {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}

/* Альтернативный режим - фиксированная ширина в процентах */
body.hero-percentage .hero-content-block {
    width: 50vw; /* 50% ширины экрана */
    max-width: calc(var(--block-base-width) * 1.2); /* Не больше 120% базового размера */
    min-width: 320px; /* Минимальная ширина */
    height: auto;
    aspect-ratio: 960 / 750; /* Сохраняем пропорции */
}