/* =========================================
   Quiz styles - For MCQ flow
   ========================================= */

/* Overriding default glass-card for quiz specifics */
.quiz-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Progress bar header */
.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 80%;
    height: 6px;
    background-color: var(--clr-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    /* Dynamic via JS */
    background-color: var(--clr-primary);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.question-tracker {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text-muted);
}

/* Question Area */
.quiz-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-height: 250px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.quiz-content.fade-out {
    opacity: 0;
}

.question-text {
    font-family: var(--font-roman);
    font-size: 2rem;
    color: var(--clr-text-main);
    margin-bottom: 2rem;
    line-height: 1.3;
}

/* Option Buttons */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-option {
    background-color: transparent;
    border: 1px solid var(--clr-secondary);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-ui);
    color: var(--clr-text-main);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 6px transparent;
}

.btn-option:hover {
    background-color: var(--clr-surface);
    border-color: var(--clr-primary);
    transform: translateX(6px);
    box-shadow: -4px 4px 15px rgba(212, 163, 115, 0.1);
}

.btn-option:active {
    transform: translateX(4px) scale(0.98);
}

/* --- Recommendation Selection View --- */
.recommendations-card {
    padding: 3rem;
    max-height: 90vh;
    /* Adjust for padding/margins */
    overflow-y: auto;
    box-sizing: border-box;
    /* Soft scrollbar for elegance */
    scrollbar-width: thin;
    scrollbar-color: var(--clr-secondary) transparent;
}

.section-title {
    font-family: var(--font-roman);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
}

.novel-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
}

@media (min-width: 600px) {

    /* If exactly two options are shown, this grid looks great */
    .novel-list {
        grid-template-columns: 1fr 1fr;
    }
}

.novel-item {
    background: var(--clr-bg);
    border: 1px solid var(--clr-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.novel-item:hover {
    border-color: var(--clr-primary);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.15);
    transform: translateY(-4px);
}

.novel-title {
    font-family: var(--font-roman);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--clr-text-main);
}

.novel-author {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.novel-match {
    background: #EAF0E2;
    color: #5B7A46;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
    width: max-content;
}