/**
 * Hero Widget - Chatbot Mode
 * Layout für Chatbot Hero (triggert bestehendes Chat-Interface)
 * 
 * @package SMG_Mall
 * @since 2.0.0
 */

/* ========================================
   Container
   ======================================== */

.chatbot-hero-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: 80vh;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ========================================
   Hintergrund
   ======================================== */

/* Bild/Farbe Hintergrund */
.chatbot-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Video Hintergrund */
.chatbot-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.chatbot-video-desktop,
.chatbot-video-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* Desktop: 16:9 Video */
.chatbot-video-desktop {
    display: block;
}

.chatbot-video-mobile {
    display: none;
}

/* Mobile: 1:1 oder 9:16 Video */
@media (max-width: 1024px) {
    .chatbot-video-desktop {
        display: none;
    }
    
    .chatbot-video-mobile {
        display: block;
    }
}

/* Overlay */
.chatbot-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* ========================================
   Content & Positionierung (Integriert, keine Box)
   ======================================== */

.chatbot-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-10);
}

/* Position: Links */
.chatbot-position-left .chatbot-hero-content {
    align-items: flex-start;
}

/* Position: Zentriert */
.chatbot-position-center .chatbot-hero-content {
    align-items: center;
}

/* Position: Rechts */
.chatbot-position-right .chatbot-hero-content {
    align-items: flex-end;
}

/* ========================================
   Text Container (ohne Box)
   ======================================== */

.chatbot-hero-text {
    text-align: center;
    max-width: 900px;
    animation: chatbotHeroFadeIn 0.6s ease-out;
}

.chatbot-position-left .chatbot-hero-text {
    text-align: left;
}

.chatbot-position-right .chatbot-hero-text {
    text-align: right;
}

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

/* Titel - Weiß mit Shadow */
.chatbot-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin: 0 0 var(--space-4) 0;
    line-height: 1.1;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

/* Untertitel - Weiß mit Shadow */
.chatbot-hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 1px 15px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Form & Input (DRY - verwendet Chat-Interface Styles)
   ======================================== */

.chatbot-hero-form {
    width: 100%;
    max-width: 700px;
    margin: 0;
    animation: chatbotHeroFadeIn 0.8s ease-out 0.2s both;
}

/* ✅ Input & Buttons verwenden bestehende Styles aus chatbot-input-base.css */
/* Keine Duplikation - DRY-Prinzip */

/* Input Container - Größer für Hero */
.chatbot-hero-form .chatbot-modal__input-inner {
    max-width: 100%;
    margin: 0;
    min-height: 64px;
}

.chatbot-hero-form .chatbot-input {
    min-height: 64px;
    font-size: 18px;
    padding: 20px 24px;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .chatbot-hero-container {
        min-height: 500px;
        height: 70vh;
    }
    
    .chatbot-hero-box {
        padding: var(--space-8) var(--space-6);
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Immer zentriert auf Mobile */
    .chatbot-hero-content {
        align-items: center !important;
        gap: var(--space-6);
    }

    .chatbot-hero-text {
        text-align: center !important;
    }

    .chatbot-hero-container {
        min-height: 400px;
        height: 60vh;
    }

    .chatbot-hero-title {
        font-size: 2rem;
    }

    .chatbot-hero-subtitle {
        font-size: 1.125rem;
    }

    .chatbot-hero-form {
        max-width: 100%;
    }

    .chatbot-hero-form .chatbot-input {
        font-size: 16px;
        padding: 18px 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .chatbot-hero-container {
        min-height: 350px;
    }
    
    .chatbot-hero-box {
        padding: var(--space-5) var(--space-4);
    }
}

/* ========================================
   Dark Mode (Text bleibt weiß, Input vom Chat-Interface)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Text bleibt weiß - keine Änderung nötig */
    /* Input-Styles werden vom Chat-Interface übernommen */
}
