/* EnglishTest1.css - Scope all styles under .etest-app to prevent side effects on other pages */

.etest-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2d3748;
    max-width: 640px;
    margin: 10px auto 30px auto;
    padding: 0 10px;
    text-align: left;
}

.etest-app * {
    box-sizing: border-box;
}

/* Header Banner */
.etest-app .etest-header {
    background: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%);
    color: #ffffff;
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.25);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.etest-app .etest-header-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.etest-app .etest-header-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 6px 0 0 0;
    line-height: 1.6;
}

.etest-app .etest-header-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Main Quiz Card */
.etest-app .etest-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
    margin-bottom: 20px;
}

.etest-app .etest-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.etest-app .etest-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 20px;
    min-height: 1.6em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Answer buttons */
.etest-app .etest-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.etest-app .etest-buttons input[type="button"] {
    width: 100%;
    min-height: 64px;
    padding: 20px 18px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #4c1d95;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-appearance: none;
}

.etest-app .etest-buttons input[type="button"]:hover {
    background: #ede9fe;
    border-color: #a855f7;
    color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(168, 85, 247, 0.22);
}

.etest-app .etest-buttons input[type="button"]:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Answer / feedback */
.etest-app .etest-answer {
    min-height: 1.6em;
    font-size: 1rem;
    line-height: 1.7;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.etest-app .etest-answer:empty {
    display: none;
}

/* Score */
.etest-app .etest-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.etest-app .etest-score-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

.etest-app .etest-score-row input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    text-align: center;
}

/* Info panel */
.etest-app .etest-note {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 8px;
}

@media screen and (max-width: 600px) {
    .etest-app .etest-header {
        padding: 18px 20px;
    }
    .etest-app .etest-header-title {
        font-size: 1.2rem;
    }
    .etest-app .etest-buttons {
        grid-template-columns: 1fr;
    }
    .etest-app .etest-buttons input[type="button"] {
        min-height: 56px;
        font-size: 1.15rem;
    }
}
