/* ═══════════════════════════════════════════════════
   DermoBrain Quiz — Consolidated Stylesheet
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   Skin Quiz (skin-quiz/index.html) — body.quiz-page
   ═══════════════════════════════════════════════════ */

body.quiz-page {
    background: linear-gradient(135deg, var(--bg-secondary, #f5f5f5) 0%, var(--primary-50, #e8f4f1) 100%);
}

.quiz-page .site-main {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.quiz-card {
    background: var(--bg-card, white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(26, 107, 84, 0.1);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-logo {
    font-size: 28px;
    font-weight: bold;
    color: #1A6B54;
    margin-bottom: 10px;
}

.quiz-subtitle {
    color: var(--text-secondary, #666);
    font-size: 14px;
    margin-bottom: 20px;
}

.quiz-page .progress-bar,
.quiz-standalone .progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border, #e0e0e0);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
}

.quiz-page .progress-fill,
.quiz-standalone .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1A6B54, #E8734A);
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-page .progress-text,
.quiz-standalone .progress-text {
    font-size: 12px;
    color: var(--text-muted, #999);
    margin-top: 8px;
}

.quiz-section {
    display: none;
}

.quiz-section.active {
    display: block;
    animation: quizFadeIn 0.3s ease;
}

@keyframes quizFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quiz-page .question,
.quiz-standalone .question {
    font-size: 18px;
    font-weight: 600;
    color: #1A6B54;
    margin-bottom: 25px;
}

.quiz-page .options,
.quiz-standalone .options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-page .option,
.quiz-standalone .option {
    padding: 16px;
    border: 2px solid var(--border, #e0e0e0);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-card, white);
    font-size: 14px;
    color: var(--text, #333);
}

.quiz-page .option:hover,
.quiz-standalone .option:hover {
    border-color: #1A6B54;
    background: var(--primary-50, #f9fffe);
}

.quiz-page .option.selected,
.quiz-standalone .option.selected {
    border-color: #1A6B54;
    background: var(--primary-50, #f0f8f5);
    color: #1A6B54;
    font-weight: 500;
}

.quiz-page .button-group,
.quiz-standalone .button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.quiz-page .button-group button,
.quiz-standalone .button-group button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-next {
    background: #1A6B54;
    color: white;
}

.btn-next:hover:not(:disabled) {
    background: #135140;
    box-shadow: 0 4px 12px rgba(26, 107, 84, 0.3);
}

.btn-next:disabled {
    background: var(--gray-300, #ccc);
    cursor: not-allowed;
}

.btn-prev {
    background: var(--bg-secondary, #e8e8e8);
    color: var(--text, #333);
}

.btn-prev:hover {
    background: var(--border, #d0d0d0);
}

.results-section {
    text-align: center;
    display: none;
}

.results-section.active {
    display: block;
    animation: quizFadeIn 0.3s ease;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A6B54, #E8734A);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 8px 20px rgba(26, 107, 84, 0.2);
}

.score-number {
    font-size: 48px;
    font-weight: bold;
    color: white;
}

.score-label {
    font-size: 14px;
    color: white;
    margin-top: 5px;
}

.score-interpretation {
    font-size: 18px;
    font-weight: 600;
    color: #1A6B54;
    margin-bottom: 20px;
}

.recommendations {
    background: var(--primary-50, #f9fffe);
    border-left: 4px solid #1A6B54;
    padding: 20px;
    border-radius: 4px;
    text-align: left;
    margin-bottom: 30px;
}

.recommendations h3 {
    color: #1A6B54;
    font-size: 16px;
    margin-bottom: 12px;
}

.recommendations ul {
    list-style: none;
    padding-left: 20px;
}

.recommendations li {
    color: var(--text-secondary, #555);
    margin-bottom: 10px;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.recommendations li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #E8734A;
    font-weight: bold;
}

.email-section {
    background: var(--primary-50, #f9fffe);
    border: 2px solid #1A6B54;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
}

.email-section h3 {
    color: #1A6B54;
    font-size: 16px;
    margin-bottom: 15px;
}

.quiz-page .form-group,
.quiz-standalone .form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.quiz-page .form-group:last-of-type,
.quiz-standalone .form-group:last-of-type {
    margin-bottom: 0;
}

.quiz-page input[type="text"],
.quiz-page input[type="email"],
.quiz-standalone input[type="text"],
.quiz-standalone input[type="email"] {
    padding: 12px;
    border: 1px solid var(--border, #ddd);
    background: var(--bg, white);
    color: var(--text, #333);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.quiz-page input[type="text"]:focus,
.quiz-page input[type="email"]:focus,
.quiz-standalone input[type="text"]:focus,
.quiz-standalone input[type="email"]:focus {
    outline: none;
    border-color: #1A6B54;
    box-shadow: 0 0 0 3px rgba(26, 107, 84, 0.1);
}

.btn-submit {
    background: #E8734A;
    color: white;
    width: 100%;
    margin-top: 12px;
}

.btn-submit:hover {
    background: #d55e35;
    box-shadow: 0 4px 12px rgba(232, 115, 74, 0.3);
}

.btn-retake {
    background: #1A6B54;
    color: white;
    width: 100%;
    margin-top: 15px;
}

.btn-retake:hover {
    background: #135140;
}

.quiz-page .success-message {
    color: #27AE60;
    font-size: 14px;
    margin-top: 12px;
    display: none;
}

@media (max-width: 480px) {
    .quiz-card,
    .quiz-standalone .quiz-container {
        padding: 25px;
    }

    .quiz-page .question,
    .quiz-standalone .question {
        font-size: 16px;
    }

    .quiz-page .option,
    .quiz-standalone .option {
        padding: 14px;
        font-size: 13px;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-number {
        font-size: 40px;
    }

    .quiz-page .button-group,
    .quiz-standalone .button-group {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════
   Assets Quiz (assets/quiz.html) — body.quiz-standalone
   Standalone page overrides (no site header/footer)
   ═══════════════════════════════════════════════════ */

body.quiz-standalone {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f4f1 100%);
}

.quiz-standalone .site-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.quiz-standalone .quiz-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(26, 107, 84, 0.1);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

.quiz-standalone .header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-standalone .logo {
    font-size: 28px;
    font-weight: bold;
    color: #1A6B54;
    margin-bottom: 10px;
}

.quiz-standalone .subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.quiz-standalone .success-message {
    background: #f0faf4;
    border: 1px solid #27AE60;
    border-radius: 8px;
    padding: 16px;
    color: #1e7e44;
    font-size: 14px;
    margin-top: 12px;
    display: none;
    text-align: center;
}
