/* assets/quiz-style.css */

/* Reset für Quiz-Container */
body #camera-quiz-root * {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Base Container */
body #camera-quiz-root .camera-quiz-container {
    width: 100% !important;
    max-width: 800px !important;
    margin: 2rem auto !important;
    padding: 0 1rem !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Quiz Card */
body #camera-quiz-root .quiz-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
}

/* Content Padding */
body #camera-quiz-root .quiz-content {
    padding: 2.5rem 2rem !important;
}

/* Progress Bar */
body #camera-quiz-root .quiz-progress {
    margin: 0 15px 25px 15px !important;
    padding: 0 !important;
    display: flex !important;
    gap: 6px !important;
}

body #camera-quiz-root .quiz-progress-step {
    height: 4px !important;
    flex: 1 !important;
    border-radius: 2px !important;
    background: #e5e7eb !important;
    transition: background-color 0.3s ease !important;
}

body #camera-quiz-root .quiz-progress-step.active {
    background: #3b82f6 !important;
}

/* Question */
body #camera-quiz-root .quiz-question {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 15px 15px 25px 15px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
}

/* Selection Counter */
body #camera-quiz-root .quiz-selection-counter {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    margin: -15px 15px 15px 15px !important;
    text-align: center !important;
}

/* Options */
body #camera-quiz-root .quiz-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin: 0 15px !important;
    padding: 0 !important;
}

/* Buttons */
body #camera-quiz-root .quiz-button {
    width: 100% !important;
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 1rem 1.5rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    position: relative !important;
}

body #camera-quiz-root .quiz-button.selected {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}

body #camera-quiz-root .quiz-button:hover:not(:disabled) {
    border-color: #3b82f6 !important;
    background: #f8fafc !important;
    transform: translateY(-1px) !important;
}

body #camera-quiz-root .quiz-button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: #f9fafb !important;
}

body #camera-quiz-root .quiz-button svg {
    width: 24px !important;
    height: 24px !important;
    margin-right: 1rem !important;
    color: #3b82f6 !important;
    flex-shrink: 0 !important;
}

body #camera-quiz-root .quiz-button span {
    color: #374151 !important;
    font-size: 1rem !important;
    font-weight: normal !important;
}

/* Continue Button */
body #camera-quiz-root .quiz-continue-button {
    width: 100% !important;
    padding: 1rem !important;
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    text-align: center !important;
    margin-top: 1rem !important;
}

body #camera-quiz-root .quiz-continue-button:hover {
    background: #2563eb !important;
}

/* Navigation */
body #camera-quiz-root .quiz-navigation {
    margin: 20px 15px 0 15px !important;
    padding: 0 !important;
}

body #camera-quiz-root .quiz-back-button {
    width: 100% !important;
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 1rem 1.5rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

body #camera-quiz-root .quiz-back-button:hover {
    border-color: #3b82f6 !important;
    background: #f8fafc !important;
    transform: translateY(-1px) !important;
}

/* Results Section */
body #camera-quiz-root .quiz-results-container {
    margin: 0 15px !important;
    padding: 0 !important;
}

body #camera-quiz-root .quiz-title {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 1.5rem !important;
}

/* Main Result */
body #camera-quiz-root .quiz-result {
    background: #eff6ff !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    margin-bottom: 1.5rem !important;
}

body #camera-quiz-root .quiz-result-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 1rem !important;
}

body #camera-quiz-root .quiz-result-description {
    color: #4b5563 !important;
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
}

body #camera-quiz-root .quiz-result-price {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #3b82f6 !important;
    margin-bottom: 1rem !important;
}

/* Score Anzeige */
body #camera-quiz-root .quiz-score {
    color: #3b82f6 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

/* Alternative Recommendations */
body #camera-quiz-root .quiz-alternatives {
    margin-top: 1.5rem !important;
}

body #camera-quiz-root .quiz-alternatives-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 1rem !important;
}

body #camera-quiz-root .quiz-alternative {
    background: #f8fafc !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
    border: 1px solid #e5e7eb !important;
}

body #camera-quiz-root .quiz-alternative-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 0.75rem !important;
}

body #camera-quiz-root .quiz-alternative-description {
    color: #4b5563 !important;
    margin-bottom: 0.75rem !important;
}

body #camera-quiz-root .quiz-alternative-price {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #3b82f6 !important;
    margin-bottom: 0.75rem !important;
}

/* List Styles */
body #camera-quiz-root .quiz-highlights-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body #camera-quiz-root .quiz-highlight-item {
    display: flex !important;
    align-items: start !important;
    margin-bottom: 0.5rem !important;
    color: #4b5563 !important;
}

body #camera-quiz-root .quiz-bullet {
    margin-right: 0.5rem !important;
}

/* Restart Button */
body #camera-quiz-root .quiz-restart-button {
    width: 100% !important;
    padding: 1rem !important;
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    text-align: center !important;
}

body #camera-quiz-root .quiz-restart-button:hover {
    background: #2563eb !important;
}

/* Loading State */
body #camera-quiz-root .quiz-loading {
    text-align: center !important;
    padding: 2rem !important;
    color: #6b7280 !important;
}

/* Mobile Styles */
@media (max-width: 640px) {
    /* Container Anpassungen */
    body #camera-quiz-root .camera-quiz-container {
        margin: 1rem auto !important;
        padding: 0 0.5rem !important;
    }

    /* Content Padding verringern */
    body #camera-quiz-root .quiz-content {
        padding: 1.5rem 1rem !important;
    }
    
    /* Kleinere Überschrift */
    body #camera-quiz-root .quiz-question {
        font-size: 1.25rem !important;
        margin: 10px 10px 20px 10px !important;
    }

    /* Button Anpassungen */
    body #camera-quiz-root .quiz-button {
        padding: 0.875rem 1rem !important;
        min-height: 60px !important;
    }

    body #camera-quiz-root .quiz-button span {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
    }

    body #camera-quiz-root .quiz-button svg {
        width: 20px !important;
        height: 20px !important;
        margin-right: 0.75rem !important;
    }

    /* Selection Counter */
    body #camera-quiz-root .quiz-selection-counter {
        font-size: 0.8rem !important;
        margin: -10px 10px 10px 10px !important;
    }

    /* Back Button */
    body #camera-quiz-root .quiz-back-button {
        padding: 0.875rem 1rem !important;
    }
}

/* Noch kleinere Bildschirme */
@media (max-width: 380px) {
    body #camera-quiz-root .quiz-content {
        padding: 1rem 0.5rem !important;
    }

    body #camera-quiz-root .quiz-button {
        padding: 0.75rem 0.875rem !important;
    }

    body #camera-quiz-root .quiz-button span {
        font-size: 0.85rem !important;
    }
}