/* English for Me 10A - Cartoon Theme */
:root {
    --primary: #4A90E2;
    --secondary: #F5A623;
    --success: #7ED321;
    --danger: #D0021B;
    --bg: #FFF9F0;
    --card: #FFFFFF;
    --text: #2C3E50;
    --cartoon-shadow: 0 8px 0 #E0D5C5;
}

.efm10a-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    padding: 20px;
    direction: ltr;
}

.efm10a-header {
    background: linear-gradient(135deg, #4A90E2, #67B8F7);
    color: white;
    padding: 25px 30px;
    border-radius: 25px;
    box-shadow: var(--cartoon-shadow);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.efm10a-header::before {
    content: "📚";
    font-size: 80px;
    position: absolute;
    right: 20px;
    top: -10px;
    opacity: 0.2;
}

.efm10a-header h1 {
    margin: 0;
    font-size: 2.2rem;
    text-shadow: 2px 2px 0 #2C5AA0;
}

.efm10a-header p {
    margin: 8px 0 0;
    opacity: 0.95;
}

.efm-units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.efm-unit-card {
    background: var(--card);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--cartoon-shadow);
    border: 4px solid #E8E0D5;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.efm-unit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 0 #E0D5C5;
}

.efm-unit-card .unit-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.efm-unit-card h3 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 1.4rem;
}

.efm-unit-card .progress-bar {
    height: 12px;
    background: #EEE;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.efm-unit-card .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7ED321, #A8E063);
    border-radius: 10px;
    transition: width 0.5s;
}

.efm-lesson {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--cartoon-shadow);
    border: 3px solid #E8E0D5;
}

.efm-lesson h2 {
    color: var(--primary);
    border-bottom: 3px dashed #4A90E2;
    padding-bottom: 10px;
}

.efm-quiz-question {
    background: #F8FBFF;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border-left: 6px solid var(--primary);
}

.efm-options label {
    display: block;
    background: white;
    padding: 12px 18px;
    margin: 8px 0;
    border-radius: 12px;
    border: 2px solid #DDD;
    cursor: pointer;
    transition: all 0.2s;
}

.efm-options label:hover {
    border-color: var(--primary);
    background: #F0F7FF;
}

.efm-options input:checked + span {
    font-weight: bold;
    color: var(--primary);
}

.efm-btn {
    background: linear-gradient(135deg, #F5A623, #F7C948);
    color: #333;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 0 #D4890A;
    transition: all 0.15s;
    margin: 10px 5px;
}

.efm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #D4890A;
}

.efm-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #D4890A;
}

.efm-btn-primary {
    background: linear-gradient(135deg, #4A90E2, #67B8F7);
    color: white;
    box-shadow: 0 5px 0 #2C5AA0;
}

.efm-btn-success {
    background: linear-gradient(135deg, #7ED321, #A8E063);
    color: white;
    box-shadow: 0 5px 0 #5BA517;
}

.efm-feedback {
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 15px;
    font-weight: bold;
    display: none;
}

.efm-feedback.correct {
    background: #E8F8D8;
    color: #3D7A0F;
    border: 2px solid #7ED321;
    display: block;
}

.efm-feedback.wrong {
    background: #FFE8E8;
    color: #A00000;
    border: 2px solid #D0021B;
    display: block;
}

.efm-score-badge {
    display: inline-block;
    background: #F5A623;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
}

.efm-audio-player {
    background: #2C3E50;
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.efm-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Cartoon characters */
.cartoon-character {
    font-size: 4rem;
    text-align: center;
    margin: 10px 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.efm-tip {
    background: #FFF3CD;
    border: 3px dashed #F5A623;
    border-radius: 15px;
    padding: 15px 20px;
    margin: 20px 0;
}

.efm-tip::before {
    content: "💡 نصيحة: ";
    font-weight: bold;
}

/* Exam specific */
.exam-timer {
    position: sticky;
    top: 10px;
    background: #D0021B;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    z-index: 100;
    box-shadow: 0 4px 0 #8B0000;
}

@media (max-width: 600px) {
    .efm10a-header h1 { font-size: 1.6rem; }
    .efm-units-grid { grid-template-columns: 1fr; }
}
