/* Morphology Quiz - Styles */

/* ========================================
   OVERLAY ET POP-UP
======================================== */

.morphology-quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.morphology-quiz-overlay.active {
    display: flex;
    opacity: 1;
}

.morphology-quiz-popup {
    background: #fff;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

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

.quiz-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.quiz-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.quiz-content {
    padding: 50px 40px 40px;
}

/* ========================================
   ÉCRANS DU QUIZ
======================================== */

.quiz-screen {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quiz-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
}

.quiz-icon.success {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.quiz-screen h2 {
    text-align: center;
    font-size: 28px;
    margin: 0 0 15px 0;
    color: #333;
}

.quiz-screen h3 {
    font-size: 16px;
    color: #999;
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.quiz-screen p {
    text-align: center;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.quiz-question {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px !important;
}

/* ========================================
   BARRE DE PROGRESSION
======================================== */

.quiz-progress {
    background: #e0e0e0;
    height: 6px;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* ========================================
   OPTIONS DU QUIZ
======================================== */

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quiz-option {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.quiz-option:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateX(5px);
}

.option-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.option-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* ========================================
   BOUTONS
======================================== */

.quiz-btn {
    width: 100%;
    padding: 16px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    margin-top: 10px;
}

.quiz-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quiz-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.quiz-btn-secondary {
    background: transparent;
    color: #999;
    border: 2px solid #e0e0e0;
}

.quiz-btn-secondary:hover {
    border-color: #999;
    color: #666;
}

.quiz-btn-link {
    background: none;
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
}

.quiz-btn-link:hover {
    color: #764ba2;
}

/* ========================================
   RÉSULTAT
======================================== */

.result-morphology {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.result-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 15px;
}

.result-label {
    font-size: 32px;
    font-weight: bold;
    color: white;
    display: block;
}

.result-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    text-align: center;
}

.result-benefits {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.result-benefits h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.result-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.result-benefits li {
    padding: 8px 0;
    font-size: 16px;
    color: #666;
}

/* ========================================
   BADGES DE RECOMMANDATION
======================================== */

.morphology-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.morphology-badge-shop {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #856404;
}

.morphology-badge-product {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
}

.badge-icon {
    font-size: 20px;
}

.badge-content {
    flex: 1;
}

.badge-title {
    display: block;
    font-size: 18px;
    color: #155724;
    margin-bottom: 5px;
}

.badge-description {
    font-size: 14px;
    color: #155724;
    margin: 0;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .quiz-content {
        padding: 40px 25px 25px;
    }
    
    .quiz-screen h2 {
        font-size: 24px;
    }
    
    .quiz-question {
        font-size: 18px;
    }
    
    .option-icon {
        font-size: 28px;
    }
    
    .option-text {
        font-size: 15px;
    }
    
    .result-morphology {
        padding: 20px;
    }
    
    .result-icon {
        font-size: 60px;
    }
    
    .result-label {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .morphology-quiz-popup {
        border-radius: 0;
        max-height: 100vh;
    }
    
    .quiz-content {
        padding: 30px 20px 20px;
    }
    
    .quiz-option {
        padding: 15px;
    }
}

/* ========================================
   ADMIN STYLES
======================================== */

.morphology-recommendations-metabox {
    padding: 15px 12px;
}

.morphology-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.morphology-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.morphology-checkbox-label:hover {
    background: #f0f0f0;
}

.morphology-checkbox-label input[type="checkbox"] {
    margin: 0;
}

.morphology-checkbox-label .morphology-icon {
    font-size: 20px;
}

.morphology-checkbox-label .morphology-label {
    font-weight: 500;
}
