/* Quiz Specific Styles, inheriting from main styles.css variables */

body {
    background-color: var(--slate-50);
}

.quiz-container {
    max-width: 600px;
    margin: 40px auto 80px;
    padding: 0 24px;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.quiz-screen {
    display: none;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
    animation: fadeUp 0.4s ease-out forwards;
}

.quiz-screen.active {
    display: flex;
}

.quiz-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(109, 123, 251, 0.1);
    color: var(--primary);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
    margin-bottom: 24px;
}

.quiz-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.quiz-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

.quiz-intro-image {
    width: 100%;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.split-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    font-size: 48px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Game Screen */
.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--slate-100);
    border-radius: 99px;
    margin-bottom: 24px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.quiz-question-counter {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quiz-question-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.3;
}

.quiz-image-container {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    background: var(--slate-100);
}

.quiz-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feedback Overlay */
.feedback-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    /* slate-900 with opacity */
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease-out;
}

.feedback-card {
    background: var(--bg);
    width: 100%;
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-result {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text);
}

.feedback-stats {
    display: flex;
    justify-content: space-between;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.stat-col {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.stat-col:first-child {
    border-right: 1px solid var(--border);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.stat-value.highlight {
    color: var(--primary);
}

.feedback-error {
    font-size: 14px;
    font-weight: 600;
    color: var(--error);
}

/* Slider Controls */
.quiz-controls {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

.slider-value-display {
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
}

.slider-value-display span {
    font-size: 48px;
    letter-spacing: -0.02em;
}

/* Custom Range Slider Styling */
.styled-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--slate-200);
    border-radius: 99px;
    outline: none;
    margin-bottom: 12px;
}

.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(109, 123, 251, 0.4);
    border: 4px solid white;
    transition: transform 0.1s;
}

.styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.styled-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(109, 123, 251, 0.4);
    border: 4px solid white;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.feedback-explanation {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--slate-50);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    margin-bottom: 24px;
}

/* Results Screen */
.score-card {
    background: rgba(109, 123, 251, 0.05);
    border: 1px solid rgba(109, 123, 251, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.score-label {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.score-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 12px;
}

.score-meaning {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
}

.result-hook {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(239, 68, 68, 0.05);
    /* error pale */
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.result-hook p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

.result-hook .highlight {
    color: var(--error);
    font-weight: 700;
}

.result-solution {
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    color: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 24px;
}

.result-solution h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.result-solution p {
    font-size: 15px;
    color: var(--slate-300);
    line-height: 1.6;
}

/* Specific Waitlist override for dark bg */
.waitlist-form-quiz .input-group {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.waitlist-form-quiz #waitlist-email {
    color: white;
}

.waitlist-form-quiz #waitlist-email::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.waitlist-form-quiz .input-icon {
    color: rgba(255, 255, 255, 0.7);
}

.btn-share {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
}

.btn-share:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(109, 123, 251, 0.05);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .quiz-screen {
        padding: 32px 20px;
    }

    .quiz-title {
        font-size: 28px;
    }
}