/* ========== PREMIUM DESIGN - CSS ONLY ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,600;14..32,700&display=swap');

.verb-quiz-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

/* Header */
.verb-quiz-container h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e6f5c, #2c7da0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

/* Mode select - Premium Pills */
.mode-select {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0 28px;
    flex-wrap: wrap;
}

.mode-select label {
    background: #f0f2f5;
    padding: 10px 24px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #dce4ec;
    color: #2c3e50;
}

.mode-select input[type="radio"] {
    display: none;
}

.mode-select input[type="radio"]:checked + label {
    background: #2c7da0;
    color: white;
    border-color: #2c7da0;
    box-shadow: 0 4px 12px rgba(44,125,160,0.3);
}

/* Question Card */
.question {
    background: #fefefe;
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

/* Verb text */
.question p {
    font-size: 28px !important;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(145deg, #1e6f5c, #2c7da0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin: 0 0 20px 0;
}

/* Input fields */
.question input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    margin: 8px 0 16px;
    font-size: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.2s;
    background: white;
    font-family: inherit;
}

.question input[type="text"]:focus {
    border-color: #2c7da0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44,125,160,0.2);
}

/* Buttons */
.button-container {
    display: flex;
    gap: 16px;
    margin: 10px 0 20px;
}

button {
    flex: 1;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.2s;
}

button:active {
    transform: scale(0.97);
}

#submitButton {
    background: linear-gradient(145deg, #2c7da0, #1f5068);
    color: white;
    box-shadow: 0 6px 14px rgba(44,125,160,0.3);
}

#nextButton {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

/* Result text */
.result {
    font-size: 22px;
    text-align: center;
    font-weight: 600;
    color: #2d6a4f;
    margin-top: 15px;
}

/* Popup styling */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    max-width: 340px;
    width: 85%;
    padding: 30px 20px;
    border-radius: 48px;
    text-align: center;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.25);
    animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-content h2 {
    font-size: 28px;
    margin: 0 0 10px;
    color: #1f5068;
}

.popup-content p {
    font-size: 22px;
    font-weight: 600;
    margin: 15px 0;
}

.popup-content button {
    background: #2c7da0;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Mobile */
@media (max-width: 600px) {
    .verb-quiz-container {
        margin: 16px;
        padding: 18px;
    }
    .verb-quiz-container h1 {
        font-size: 26px;
    }
    .question p {
        font-size: 24px !important;
    }
    .mode-select label {
        padding: 8px 18px;
        font-size: 14px;
    }
    .question input[type="text"] {
        font-size: 16px;
        padding: 12px 16px;
    }
    button {
        font-size: 16px;
        padding: 12px 16px;
    }
    .button-container {
        flex-direction: column;
        gap: 12px;
    }
    .result {
        font-size: 18px;
    }
    .popup-content {
        width: 90%;
        padding: 20px;
    }
    .popup-content h2 {
        font-size: 24px;
    }
    .popup-content p {
        font-size: 18px;
    }
}