/* ===== LESSON PAGE STYLES ===== */

.lesson-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.8s ease;
}

.lesson-header h1 {
    font-size: 42px;
    margin: 15px 0 10px;
}

.lesson-header p {
    font-size: 18px;
    opacity: 0.95;
}

.lesson-icon {
    font-size: 64px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

/* ===== LESSON CONTENT ===== */
.lesson-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.content-box {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.content-box:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-box h2 {
    color: #FF6B9D;
    font-size: 28px;
    margin-bottom: 20px;
}

.content-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* ===== POEM BOX ===== */
.poem-box {
    background: linear-gradient(135deg, #FFE5E5, #FFF5F5);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #FF6B9D;
    font-size: 17px;
    line-height: 2;
    color: #333;
}

.poem-line {
    margin: 12px 0;
    font-weight: 500;
    font-style: italic;
}

/* ===== VOCABULARY LIST ===== */
.vocabulary-list {
    display: grid;
    gap: 15px;
}

.vocab-item {
    background: linear-gradient(135deg, #E5F7FF, #F5FFFF);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #00D4FF;
    display: flex;
    gap: 10px;
}

.vocab-item strong {
    color: #FF6B9D;
    min-width: 150px;
}

.vocab-item span {
    color: #333;
    flex-grow: 1;
}

/* ===== Q&A BOX ===== */
.qa-box {
    margin-top: 20px;
}

.qa-item {
    background: linear-gradient(135deg, #E5FFE5, #F5FFF5);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #00C853;
}

.qa-item p {
    margin-bottom: 8px;
}

.qa-item .answer {
    color: #00AA44;
    font-weight: 600;
    background: white;
    padding: 8px 12px;
    border-radius: 5px;
    margin-top: 8px;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B9D, #FF1493);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

/* ===== LESSON NAVIGATION ===== */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-arrow {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.left-arrow {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    color: white;
}

.right-arrow {
    background: linear-gradient(135deg, #00D4FF, #0099CC);
    color: white;
}

.nav-arrow:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .lesson-header {
        padding: 30px 20px;
    }

    .lesson-header h1 {
        font-size: 28px;
    }

    .lesson-header p {
        font-size: 16px;
    }

    .lesson-icon {
        font-size: 48px;
    }

    .lesson-content {
        padding: 20px;
    }

    .content-box {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .content-box h2 {
        font-size: 22px;
    }

    .content-box p {
        font-size: 14px;
    }

    .poem-box {
        padding: 20px;
        font-size: 15px;
        line-height: 1.8;
    }

    .vocab-item {
        flex-direction: column;
        gap: 5px;
    }

    .vocab-item strong {
        min-width: auto;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .lesson-navigation {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .lesson-header {
        padding: 20px 15px;
    }

    .lesson-header h1 {
        font-size: 22px;
    }

    .lesson-icon {
        font-size: 40px;
    }

    .content-box h2 {
        font-size: 18px;
    }

    .content-box p {
        font-size: 13px;
    }

    .poem-box {
        padding: 15px;
        font-size: 14px;
    }

    .poem-line {
        margin: 10px 0;
        line-height: 1.6;
    }

    .vocab-item {
        padding: 12px;
    }

    .vocab-item strong {
        font-size: 13px;
    }

    .vocab-item span {
        font-size: 13px;
    }
}
