/**
 * CockpitOS Light - Chatbot Layout Multi-Intent Styles
 * 
 * Verantwortlichkeit: Styling für Multi-Intent Layout mit Journey-Design
 * 
 * @package CockpitOS_Light_Theme
 * @version 1.0.0
 */

/* Multi-Intent Container */
.chatbot-message__content--multi-intent {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Multi-Intent Cards Container - Journey Design */
.cockpit-os-chatbot-cards-multi-intent {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    position: relative;
}

/* Journey Connector Line */
.cockpit-os-chatbot-cards-multi-intent::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--color-primary),
        var(--color-primary-light, rgba(var(--color-primary-rgb, 220, 38, 38), 0.3))
    );
    opacity: 0.2;
    z-index: 0;
}

/* Card Section - Journey Step */
.cockpit-os-chatbot-cards-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    padding-left: 3rem;
    z-index: 1;
}

/* Journey Step Number/Icon Circle */
.cockpit-os-chatbot-cards-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Section Header Styles sind jetzt in chatbot-cards-header.css */

/* Cards Container - Slider aktivieren */
.cockpit-os-chatbot-cards-section__cards {
    position: relative;
}

/* Navigation Dots für Multi-Intent Sections */
.cockpit-os-chatbot-cards-section__cards .chatbot-cards__slider-wrapper {
    position: relative;
}

/* Navigation Styles sind jetzt in chatbot-cards-navigation.css */
/* Multi-Intent spezifische Anpassungen nur wenn nötig */
.cockpit-os-chatbot-cards-section__cards .chatbot-cards__nav {
    margin-top: 0.75rem;
}

.cockpit-os-chatbot-cards-section__cards .chatbot-cards__container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;
    margin-top: 0;
    /* Slider-Styling */
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
    /* Desktop: Cursor für Drag-Hinweis */
    cursor: grab;
}

.cockpit-os-chatbot-cards-section__cards .chatbot-cards__container:active {
    cursor: grabbing;
}

.cockpit-os-chatbot-cards-section__cards .chatbot-cards__container::-webkit-scrollbar {
    height: 6px;
}

.cockpit-os-chatbot-cards-section__cards .chatbot-cards__container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.cockpit-os-chatbot-cards-section__cards .chatbot-cards__container::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

/* Cards in Slider */
.cockpit-os-chatbot-cards-section__cards .chatbot-cards__container .cockpit-os-chatbot-card {
    flex: 0 0 auto;
    width: 280px;
    scroll-snap-align: start;
    margin: 0;
}

/* Slider Mode aktivieren - WICHTIG: Flex statt Grid */
.cockpit-os-chatbot-cards-section__cards .chatbot-cards__container--slider {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: none !important;
}

/* Desktop: Mehrere Cards nebeneinander sichtbar */
@media (min-width: 769px) {
    .cockpit-os-chatbot-cards-section__cards .chatbot-cards__container--slider .cockpit-os-chatbot-card {
        width: 300px;
    }
}

/* Slider Mode aktivieren */
.cockpit-os-chatbot-cards-section__cards .chatbot-cards__container--slider {
    display: flex !important;
    cursor: grab;
}

.cockpit-os-chatbot-cards-section__cards .chatbot-cards__container--slider:active {
    cursor: grabbing;
}

/* Mobile: Kompakter Journey */
@media (max-width: 768px) {
    .cockpit-os-chatbot-cards-multi-intent {
        gap: 1.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .cockpit-os-chatbot-cards-multi-intent::before {
        left: 1rem;
    }
    
    .cockpit-os-chatbot-cards-section {
        padding-left: 2.5rem;
        gap: 0.75rem;
    }
    
    .cockpit-os-chatbot-cards-section::before {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    /* Mobile Header Styles sind jetzt in chatbot-cards-header.css */
    
    .cockpit-os-chatbot-cards-section__cards .chatbot-cards__container .cockpit-os-chatbot-card {
        /* Volle Breite minus Padding - Cards müssen vollständig sichtbar sein */
        width: calc(100vw - 80px) !important;
        min-width: calc(100vw - 80px) !important;
        max-width: calc(100vw - 80px) !important;
        flex: 0 0 calc(100vw - 80px) !important;
    }
    
    /* Container Padding für bessere Sichtbarkeit */
    .cockpit-os-chatbot-cards-section__cards .chatbot-cards__container {
        padding-left: 0;
        padding-right: 0;
        scroll-padding-left: 0;
        scroll-padding-right: 0;
    }
}

