/* ============================================================
   Kids Kingdom - Alphabet Sequence Exam
   Each question = a letter sequence with clickable blanks, plus
   a shared option-pool below to fill them. Reuses tab/score/
   button styling patterns from addition-exam.css.
   ============================================================ */

.seq-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 16px 50px;
}

/* ================= TABS (reuse exam-tabs look) ================= */
.seq-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}

.seq-tab-btn {
    background: #fff;
    border: 2px solid var(--color-bg, #FFF9F0);
    color: var(--color-dark, #2D3142);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 10px 26px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
}
.seq-tab-btn:hover { border-color: var(--color-primary, #FF6B6B); }
.seq-tab-btn.active {
    background: var(--color-primary, #FF6B6B);
    color: #fff;
    border-color: var(--color-primary, #FF6B6B);
}

/* ================= QUESTION LIST (stacked, not grid) ================= */
.seq-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 30px;
}

.seq-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.seq-card-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 8px;
}

/* The letter sequence row */
.seq-sequence {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.seq-letter {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark, #2D3142);
    background: var(--color-bg, #FFF9F0);
    border-radius: 10px;
}

.seq-letter.is-cursive {
    font-family: 'Sacramento', cursive;
    font-size: 1.7rem;
}

.seq-blank {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    color: var(--color-dark, #2D3142);
    transition: border-color 0.2s, background 0.2s;
}

.seq-blank.is-cursive { font-family: 'Sacramento', cursive; font-size: 1.7rem; }

.seq-blank.active {
    border-color: var(--color-primary, #FF6B6B);
    background: #fff5f5;
}

.seq-blank.filled {
    border-style: solid;
    border-color: var(--color-secondary, #4ECDC4);
    background: #f0fdfc;
}

.seq-blank.is-correct {
    border-color: #10B981;
    background: #ecfdf5;
    color: #10B981;
}

.seq-blank.is-wrong {
    border-color: #EF4444;
    background: #fef2f2;
    color: #EF4444;
}

/* Option pool */
.seq-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px dashed var(--color-bg, #FFF9F0);
}

.seq-option-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--color-secondary, #4ECDC4);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}
.seq-option-btn.is-cursive { font-family: 'Sacramento', cursive; font-size: 1.4rem; }

.seq-option-btn:hover { transform: translateY(-2px); }

.seq-option-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.seq-correct-answer {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #10B981;
    margin-top: 8px;
    display: none;
}
.seq-correct-answer.visible { display: block; }

/* ================= ACTIONS + SCORE (reuse exam-btn/exam-score look) ================= */
.seq-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .seq-letter, .seq-blank { width: 36px; height: 36px; font-size: 1.05rem; }
    .seq-option-btn { width: 34px; height: 34px; font-size: 0.95rem; }
}
