/* ===========================================
   SHADOW INTEGRATOR - ONBOARDING STYLES
   Driver.js Custom Theme
   =========================================== */

/* ===========================
   OVERLAY & BACKDROP
   =========================== */

/* Backdrop - sehr dezent für bessere Lesbarkeit des Hintergrunds */
.driver-overlay {
    background: rgba(0, 0, 0, 0.25) !important;
}

/* ===========================
   SPOTLIGHT HIGHLIGHT
   =========================== */

/* Hervorgehobenes Element - subtile Betonung, nicht Isolation */
.driver-highlighted-element {
    /* Sanfter Zoom */
    transform: scale(1.03) !important;
    transition: transform 0.4s ease-out !important;
    
    /* Dezenter Glow - Fokus durch Kontrast, nicht Dunkelheit */
    animation: spotlight-glow 2.5s ease-in-out infinite !important;
    border-radius: 12px !important;
    
    /* Leicht aufgehellt */
    filter: brightness(1.15) !important;
    
    z-index: 10001 !important;
}

/* Sanfterer Glow - weniger aggressiv */
@keyframes spotlight-glow {
    0%, 100% {
        box-shadow: 
            0 0 0 3px rgba(0, 255, 255, 0.5),
            0 0 15px rgba(0, 255, 255, 0.3),
            0 0 30px rgba(0, 255, 255, 0.15);
    }
    50% {
        box-shadow: 
            0 0 0 4px rgba(0, 255, 255, 0.7),
            0 0 25px rgba(0, 255, 255, 0.4),
            0 0 45px rgba(0, 255, 255, 0.2);
    }
}

/* ===========================
   POPOVER (TOOLTIP)
   =========================== */

.driver-popover {
    background: rgba(22, 33, 62, 0.95) !important;
    border: 1px solid rgba(0, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 255, 255, 0.05) !important;
    padding: 0 !important;
    max-width: 300px !important;
    min-width: 240px !important;
}

/* Popover Arrow */
.driver-popover-arrow {
    border-color: transparent !important;
}

.driver-popover-arrow-side-left {
    border-left-color: rgba(0, 255, 255, 0.3) !important;
}

.driver-popover-arrow-side-right {
    border-right-color: rgba(0, 255, 255, 0.3) !important;
}

.driver-popover-arrow-side-top {
    border-top-color: rgba(0, 255, 255, 0.3) !important;
}

.driver-popover-arrow-side-bottom {
    border-bottom-color: rgba(0, 255, 255, 0.3) !important;
}

/* ===========================
   POPOVER CONTENT
   =========================== */

.driver-popover-title {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #00ffff !important;
    padding: 20px 24px 10px 24px !important;
    margin: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
}

.driver-popover-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #e8e8e8 !important;
    padding: 0 24px 20px 24px !important;
    margin: 0 !important;
}

/* ===========================
   PROGRESS INDICATOR
   =========================== */

.driver-popover-progress-text {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    padding: 0 24px !important;
    margin-bottom: 8px !important;
    letter-spacing: 2px !important;
}

/* ===========================
   NAVIGATION BUTTONS
   =========================== */

.driver-popover-footer {
    padding: 14px 20px 18px 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
}

.driver-popover-navigation-btns {
    display: flex !important;
    gap: 8px !important;
}

/* Basis Button Style */
.driver-popover-prev-btn,
.driver-popover-next-btn {
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

/* Previous Button */
.driver-popover-prev-btn {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.driver-popover-prev-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Next Button */
.driver-popover-next-btn {
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%) !important;
    color: #0a0a0a !important;
}

.driver-popover-next-btn:hover {
    background: linear-gradient(135deg, #33ffff 0%, #00ffff 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3) !important;
}

/* Close/Skip Button */
.driver-popover-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.driver-popover-close-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* ===========================
   MOBILE OPTIMIERUNGEN
   =========================== */

@media (max-width: 480px) {
    .driver-popover {
        max-width: calc(100vw - 32px) !important;
        min-width: auto !important;
        margin: 0 16px !important;
    }
    
    .driver-popover-title {
        font-size: 1rem !important;
        padding: 14px 16px 6px 16px !important;
    }
    
    .driver-popover-description {
        font-size: 0.9rem !important;
        padding: 0 16px 14px 16px !important;
    }
    
    .driver-popover-footer {
        padding: 10px 12px 14px 12px !important;
        flex-wrap: wrap !important;
    }
    
    .driver-popover-prev-btn,
    .driver-popover-next-btn {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }
    
    /* Größerer Touch-Bereich für Close-Button */
    .driver-popover-close-btn {
        width: 36px !important;
        height: 36px !important;
    }
    
    /* Weniger Zoom auf Mobile */
    .driver-highlighted-element {
        transform: scale(1.02) !important;
    }
}

/* ===========================
   REDUCED MOTION
   =========================== */

@media (prefers-reduced-motion: reduce) {
    .driver-highlighted-element {
        transform: none !important;
        transition: none !important;
    }
    
    .driver-popover-next-btn:hover {
        transform: none !important;
    }
    
    .driver-overlay {
        backdrop-filter: none !important;
    }
}

/* ===========================
   HIGH CONTRAST MODE
   =========================== */

@media (prefers-contrast: high) {
    .driver-popover {
        border: 2px solid #00ffff !important;
    }
    
    .driver-highlighted-element {
        box-shadow: 0 0 0 4px #00ffff !important;
    }
    
    .driver-popover-description {
        color: #ffffff !important;
    }
}

/* ===========================
   ONBOARDING SETTINGS BUTTON
   =========================== */

.onboarding-reset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #00ffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.onboarding-reset-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

.onboarding-reset-btn .button-icon {
    font-size: 1.1rem;
}
/* ===========================
   AI PREVIEW ELEMENT (KI-Moment)
   =========================== */

.ai-preview-container {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 20px auto;
    max-width: 400px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 255, 255, 0.1);
    animation: ai-preview-appear 0.5s ease-out;
}

@keyframes ai-preview-appear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-preview-label {
    font-size: 0.85rem;
    color: rgba(0, 255, 255, 0.8);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.ai-preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 12px;
}

.ai-preview-impulse {
    font-size: 1.05rem;
    color: #e8e8e8;
    line-height: 1.5;
    font-style: italic;
    text-align: left;
}

.ai-preview-cursor {
    color: #00ffff;
    font-weight: bold;
    animation: cursor-blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.ai-preview-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
}

/* Variation hint */
.ai-preview-variation-hint {
    font-size: 0.75rem;
    color: rgba(0, 255, 255, 0.6);
    margin-top: 8px;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Crossfade animation */
.ai-preview-impulse.crossfade {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

/* Answer options */
.ai-preview-answers {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ai-preview-answers-label {
    font-size: 0.75rem;
    color: rgba(0, 255, 255, 0.7);
    margin-bottom: 10px;
}

.ai-answer-option {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    margin: 6px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.ai-answer-option.answer-swap {
    opacity: 0.3;
    transform: translateX(-5px);
}

/* Responsive */
@media (max-width: 480px) {
    .ai-preview-container {
        margin: 16px 12px;
        padding: 16px 18px;
    }
    
    .ai-preview-impulse {
        font-size: 0.95rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ai-preview-container {
        animation: none;
    }
    
    .ai-preview-cursor {
        animation: none;
        opacity: 1;
    }
}
