/* =========================================================
   ENGLISH VOCABULARY QUIZ 10
   Modern Quiz Theme
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans Bengali", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 106, 78, 0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(244, 42, 65, 0.12), transparent 35%),
        #071c22;
    color: #ffffff;
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

main, #quiz-screen, #result-screen {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}


/* =========================================================
   START SCREEN
   ========================================================= */

#start-screen {
    text-align: center;
    padding: 35px 20px;
}

.top-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: #006a4e;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.15);
}

#start-screen h1 {
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 900;
}

#start-screen h2 {
    font-size: clamp(18px, 3vw, 27px);
    color: #f4d35e;
    margin-bottom: 20px;
}

.info-box {
    max-width: 650px;
    margin: 0 auto 25px;
    padding: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    line-height: 1.7;
}

.instruction {
    margin-bottom: 25px;
    color: #d8e5e2;
}


/* =========================================================
   MODE BUTTONS
   ========================================================= */

.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mode-buttons button {
    border: none;
    border-radius: 14px;
    padding: 15px 25px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.learning-mode-btn {
    background: #006a4e;
    color: white;
}

.exam-mode-btn {
    background: #e63946;
    color: white;
}

.mode-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}


/* =========================================================
   QUIZ SCREEN
   ========================================================= */

#quiz-screen {
    display: none;
}

.quiz-container {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
}


/* =========================================================
   QUIZ TOP
   ========================================================= */

.quiz-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.question-counter {
    font-size: 16px;
    font-weight: 700;
    color: #d7e5e2;
}

.timer-box {
    min-width: 50px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e63946;
    border-radius: 10px;
    font-weight: 900;
    font-size: 18px;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.progress {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #f4d35e;
    transition: width 0.3s ease;
}


/* =========================================================
   QUESTION
   ========================================================= */

#question {
    font-size: clamp(22px, 3.5vw, 30px);
    line-height: 1.5;
    font-weight: 800;
    margin-bottom: 30px;
    color: #ffffff;
}


/* =========================================================
   OPTION BUTTON - HIGH CONTRAST DARK TEXT
   ========================================================= */

#options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.answer-option {
    width: 100%;
    min-height: 64px;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 14px;
    padding: 12px 18px;

    border: 1px solid #d1d5db !important;
    border-radius: 16px;
    
    /* হালকা ব্যাকগ্রাউন্ড ও গাড় কালো ফন্ট */
    background: #f3f4f6 !important;
    color: #111827 !important;

    text-align: left;
    cursor: pointer;
    line-height: 1.4;
    transition: 0.22s ease;
}

.answer-option:hover:not(:disabled) {
    background: #e5e7eb !important;
    border-color: #006a4e !important;
    transform: translateY(-2px);
}

/* A / B / C / D Letter */

.option-letter {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    line-height: 1;
    font-weight: 900;
    font-size: 18px;

    border-radius: 50%;
    background: #e5e7eb !important;
    color: #111827 !important;
}

/* Answer Text */

.option-text {
    flex: 1;

    display: inline-flex;
    align-items: center;

    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    text-align: left;

    padding: 0;
    margin: 0;
    color: #111827 !important;
}


/* =========================================================
   CORRECT / WRONG (সঠিক ও ভুলের জন্য কালার সেটিং)
   ========================================================= */

.answer-option.correct {
    background: #087f5b !important;
    border-color: #087f5b !important;
    color: #ffffff !important;
}

.answer-option.correct .option-letter {
    background: #ffffff !important;
    color: #087f5b !important;
}

.answer-option.correct .option-text {
    color: #ffffff !important;
}

.answer-option.wrong {
    background: #d92638 !important;
    border-color: #d92638 !important;
    color: #ffffff !important;
}

.answer-option.wrong .option-letter {
    background: #ffffff !important;
    color: #d92638 !important;
}

.answer-option.wrong .option-text {
    color: #ffffff !important;
}

/* ডিজাবেলড টেক্সট স্পষ্ট রাখার নিয়ম */
.answer-option:disabled {
    cursor: default;
    opacity: 1 !important;
}


/* =========================================================
   FEEDBACK
   ========================================================= */

#feedback {
    display: none;
    margin-top: 25px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    line-height: 1.7;
}

#correct-message {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}

#wrong-message {
    font-size: 17px;
}

#example-text {
    margin-top: 10px;
    color: #f4d35e;
}


/* =========================================================
   NEXT QUESTION
   ========================================================= */

.next-question-btn {
    width: 100%;
    margin-top: 18px;
    padding: 15px 20px;
    border: none;
    border-radius: 14px;
    background: #f4d35e;
    color: #071c22;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

.next-question-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}


/* =========================================================
   RESULT SCREEN
   ========================================================= */

#result-screen {
    display: none;
    text-align: center;
}

.result-card {
    padding: 35px 25px;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

#score {
    font-size: clamp(45px, 8vw, 72px);
    font-weight: 900;
    color: #f4d35e;
}

#percentage {
    margin-top: 5px;
    font-size: 25px;
    font-weight: 800;
}

#result-message {
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.6;
}

#result-screen button {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 12px;
    transition: 0.2s ease;
}

#result-screen button:first-of-type {
    background: #006a4e;
    color: #ffffff;
}

#result-screen button:last-of-type {
    background: #1877f2;
    color: #ffffff;
}


/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 650px) {
    body {
        padding: 15px;
    }

    .quiz-container {
        padding: 20px;
    }

    #options {
        grid-template-columns: 1fr;
    }

    .answer-option {
        min-height: 56px;
        padding: 10px 14px;
        gap: 12px;
    }

    .option-letter {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .option-text {
        font-size: 17px;
    }
}