/**
 * استایل‌های Frontend
 */

.lcm-lesson-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Tahoma, Arial, sans-serif;
}

.lcm-lesson-header {
    border-bottom: 3px solid #2271b1;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.lcm-lesson-header h1 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #333;
}

.lcm-lesson-meta {
    color: #666;
    font-size: 14px;
}

.lcm-lesson-topic,
.lcm-lesson-content,
.lcm-lesson-additional {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.lcm-lesson-topic h3,
.lcm-lesson-content h3,
.lcm-lesson-additional h3,
.lcm-lesson-activities h3 {
    margin-top: 0;
    color: #2271b1;
    font-size: 20px;
}

.lcm-text-content {
    line-height: 2;
    text-align: justify;
    color: #444;
}

.lcm-lesson-activities {
    margin-top: 40px;
}

.lcm-activity-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.lcm-activity-card h4 {
    margin: 0 0 15px 0;
    color: #d97706;
    font-size: 18px;
}

.lcm-learning-goal {
    background: #e7f3ff;
    padding: 10px 15px;
    border-right: 4px solid #2271b1;
    margin-top: 15px;
    border-radius: 4px;
}

.lcm-outputs {
    margin-top: 20px;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 5px;
}

.lcm-outputs h5 {
    margin: 0 0 10px 0;
    color: #059669;
}

.lcm-outputs ul {
    margin: 0;
    padding-right: 20px;
}

.lcm-outputs li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* لیست کتاب‌ها */
.lcm-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.lcm-book-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lcm-book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lcm-btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.2s;
}

.lcm-btn-primary:hover {
    background: #135e96;
}

/* دکمه ثانویه */
.lcm-btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 14px;
    transition: background 0.2s;
}

.lcm-btn-secondary:hover {
    background: #5a6268;
    color: #fff;
}

/* پیام‌های خطا و دسترسی */
.lcm-error,
.lcm-access-denied {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-right: 4px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.lcm-access-denied {
    background: #f8d7da;
    border-color: #dc3545;
}

.lcm-access-denied h3 {
    color: #721c24;
    margin-top: 0;
    margin-bottom: 15px;
}

.lcm-access-denied p {
    color: #721c24;
    margin-bottom: 20px;
    line-height: 1.8;
}

.lcm-error {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* بدون نتیجه */
.lcm-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.lcm-no-results p {
    color: #666;
    margin-bottom: 20px;
}

/* کتاب‌های قفل شده */
.lcm-book-card.lcm-locked {
    opacity: 0.7;
    background: #f5f5f5;
    position: relative;
}

.lcm-book-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.lcm-book-header h3 {
    margin: 0;
    flex: 1;
}

.lcm-lock-icon {
    font-size: 24px;
    color: #dc3545;
    margin-left: 10px;
}

.lcm-book-meta {
    text-align: right;
    margin-bottom: 15px;
}

.lcm-book-meta p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.lcm-book-locked {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 5px;
}

.lcm-small-text {
    font-size: 13px;
    color: #856404;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

/* لیست درس‌ها */
.lcm-lessons-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.lcm-lessons-list h2 {
    color: #2271b1;
    border-bottom: 3px solid #2271b1;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.lcm-lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.lcm-lesson-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lcm-lesson-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lcm-lesson-card h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .lcm-books-grid,
    .lcm-lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .lcm-lesson-single {
        padding: 15px;
    }
    
    .lcm-book-header {
        flex-direction: column;
        text-align: center;
    }
    
    .lcm-lock-icon {
        margin: 10px 0 0 0;
    }
}