
/* ═══════════════════════════════════════════
   LEARNING PLATFORM STYLES
   ═══════════════════════════════════════════ */

.learning-wrap {
    padding: 1rem 1.5rem 5rem;
}

/* Header */
.learning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.learning-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Lang switch */
.learning-lang-switch {
    display: flex;
    gap: 0.25rem;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 2px;
}
.l-lang-btn {
    padding: 0.3rem 0.65rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #6b7280;
    transition: all 0.15s;
}
.l-lang-btn.active {
    background: white;
    color: #22c55e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Stats bar */
.learning-stats {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid #bbf7d0;
    flex-wrap: wrap;
}
.learning-stat { text-align: center; }
.learning-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #16a34a;
    line-height: 1;
}
.learning-stat-label {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 2px;
}
.learning-progress-bar-wrap {
    flex: 1;
    min-width: 120px;
    height: 8px;
    background: #d1fae5;
    border-radius: 4px;
    overflow: hidden;
}
.learning-progress-bar {
    height: 100%;
    background: #22c55e;
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Module cards */
.learning-modules-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.l-module-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.l-module-card:hover { background: #f9fafb; border-color: #d1d5db; }
.l-module-card:active { transform: scale(0.99); }
.l-module-card.completed { border-color: #bbf7d0; background: #f0fdf4; }
.l-module-card.locked { opacity: 0.55; cursor: not-allowed !important; }

.l-module-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 700;
}
.l-module-icon.available  { background: #f0fdf4; color: #16a34a; }
.l-module-icon.completed  { background: #dcfce7; color: #16a34a; }
.l-module-icon.locked     { background: #f3f4f6; color: #9ca3af; }

.l-module-info { flex: 1; min-width: 0; }
.l-module-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}
.l-module-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}
.l-module-time {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 3px;
}
.l-module-arrow { flex-shrink: 0; }

/* Module detail */
.learning-module-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.l-back-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.4rem 0;
}
.l-back-btn:hover { color: #1a1a1a; }

.l-module-detail {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.l-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f0fdf4, #f9fafb);
    border-bottom: 1px solid #e5e7eb;
}
.l-detail-num {
    width: 44px;
    height: 44px;
    background: #22c55e;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}
.l-detail-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.l-detail-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 3px;
}

/* Links row */
.l-links-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}
.l-link-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
.l-link-btn.video    { background: #eff6ff; color: #2563eb; }
.l-link-btn.materials { background: #f0fdf4; color: #16a34a; }
.l-link-btn:hover { opacity: 0.85; }

/* Lesson content */
.l-lesson-content {
    padding: 1.25rem;
}
/* Inherit lesson block styles from original platform */
.l-lesson-content .lesson-block {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}
.l-lesson-content .lesson-block.intro { border-left: 3px solid #22c55e; }
.l-lesson-content .lesson-block.warning { border-left: 3px solid #f59e0b; background: #fffbeb; }
.l-lesson-content .lesson-block.tip    { border-left: 3px solid #3b82f6; background: #eff6ff; }
.l-lesson-content .lesson-block-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.l-lesson-content .lesson-block-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
}
.l-lesson-content .lesson-block-content {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
}
.l-lesson-content ul { padding-left: 1.25rem; margin: 0.5rem 0; }
.l-lesson-content li { margin-bottom: 0.35rem; font-size: 0.875rem; line-height: 1.5; }
.l-lesson-content p  { margin: 0.5rem 0; font-size: 0.875rem; line-height: 1.6; color: #374151; }
.l-lesson-content strong { color: #1a1a1a; }
.l-lesson-content .result-block { 
    background: #f0fdf4; 
    border: 1px solid #bbf7d0; 
    border-radius: 10px; 
    padding: 0.85rem 1rem; 
    margin: 0.75rem 0; 
}

/* Homework */
.l-homework-block {
    margin: 0 1.25rem 1.25rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 1rem;
}
.l-homework-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #92400e;
    margin-bottom: 0.5rem;
}
.l-homework-desc {
    font-size: 0.85rem;
    color: #78350f;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.l-homework-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.6rem;
    font-size: 0.875rem;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}
.l-homework-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}
.l-hw-done-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #16a34a;
    font-weight: 600;
}
.l-btn-save-hw {
    padding: 0.5rem 1rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* Complete row */
.l-complete-row {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    justify-content: center;
}
.l-btn-complete {
    width: 100%;
    padding: 0.85rem;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.l-btn-complete:hover { background: #16a34a; }
.l-btn-completed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* Mobile tweaks */
@media (max-width: 767px) {
    .learning-wrap { padding: 0.75rem 0.5rem 5rem; }
    .l-detail-header { padding: 1rem; }
    .l-lesson-content { padding: 1rem; }
}
