/* Grammar Lesson Styles */

.lesson-content {
    max-width: 900px;
    margin: 0 auto;
}

.lesson-section {
    margin-bottom: 50px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lesson-section h2 {
    color: #1f2937;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #6366f1;
}

.lesson-section p {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-left: 5px solid #6366f1;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box ul {
    margin: 10px 0;
    padding-left: 25px;
}

.info-box li {
    margin: 10px 0;
    color: #374151;
    font-size: 1.05rem;
}

/* Example Box */
.example-box {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.example-box h3 {
    color: #6366f1;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.sentence-example {
    background: white;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

.sentence-example .subject {
    color: #ef4444;
    font-weight: bold;
}

.sentence-example .predicate {
    color: #3b82f6;
    font-weight: bold;
}

.sentence-example .explanation {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
}

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    border-left: 5px solid #10b981;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.tip-box h4 {
    color: #059669;
    margin-bottom: 10px;
}

.tip-box p {
    color: #374151;
    margin: 0;
}

/* Comparison Box */
.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.comparison-column {
    background: #f9fafb;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.comparison-column h3 {
    color: #6366f1;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.comparison-column p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.comparison-column .example-box {
    background: white;
    padding: 15px;
    margin-top: 10px;
}

.highlight {
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Practice Exercises */
.practice-exercises {
    margin-top: 20px;
}

.practice-item {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.practice-item:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.practice-item .question {
    font-size: 1.1rem;
    color: #1f2937;
    margin: 0;
    font-weight: 500;
}

.practice-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
}

.practice-item.revealed .answer {
    max-height: 300px;
}

.practice-item .answer p {
    margin: 8px 0;
    font-size: 1rem;
}

.practice-item .answer .subject {
    color: #ef4444;
    font-weight: bold;
}

.practice-item .answer .predicate {
    color: #3b82f6;
    font-weight: bold;
}

.practice-item .answer .note {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 10px;
}

/* Takeaway Box */
.takeaway-box {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-left: 5px solid #f59e0b;
    padding: 25px;
    border-radius: 8px;
}

.takeaway-box ul {
    margin: 0;
    padding-left: 25px;
}

.takeaway-box li {
    margin: 12px 0;
    color: #374151;
    font-size: 1.05rem;
}

/* Mistake Box */
.mistake-box {
    background: #fef2f2;
    border: 2px solid #fecaca;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.mistake-item {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.mistake-item h4 {
    color: #dc2626;
    margin-bottom: 10px;
}

.mistake-item .wrong {
    color: #dc2626;
    font-size: 1rem;
    margin: 8px 0;
    padding: 10px;
    background: #fee2e2;
    border-radius: 5px;
}

.mistake-item .correct {
    color: #059669;
    font-size: 1rem;
    margin: 8px 0;
    padding: 10px;
    background: #d1fae5;
    border-radius: 5px;
}

.mistake-item .error-note {
    font-size: 0.9rem;
    font-style: italic;
    color: #991b1b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lesson-section {
        padding: 20px;
    }

    .lesson-section h2 {
        font-size: 1.5rem;
    }

    .comparison-box {
        grid-template-columns: 1fr;
    }

    .info-box,
    .tip-box,
    .takeaway-box,
    .mistake-box {
        padding: 15px;
    }

    .example-box {
        padding: 15px;
    }

    .practice-item {
        padding: 15px;
    }
}
