

/* Start:/local/components/alexes/course.program/templates/.default/style.css?178998408410960*/
/* ==========================================
   ШАПКА КУРСА И ПРОГРЕСС (Вертикальный вид)
========================================== */
.course-header-block {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px; 
    border: 1px solid #eef0f2;
    /* Убрали flex, теперь элементы просто идут друг за другом */
}

.course-main-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
}

.course-main-desc {
    margin: 0 0 20px 0; /* Отступ от описания до полоски прогресса */
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

/* Контейнер прогресса на всю ширину */
.course-progress-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0; /* Тонкая линия-разделитель для красоты */
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.progress-bar-wrap {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #4caf50; /* Зеленый цвет прогресса */
    border-radius: 4px;
    transition: width 0.8s ease-out;
}

/* ==========================================
   КОМПОНЕНТ ПРОГРАММЫ КУРСА (КАРТОЧКИ МОДУЛЕЙ)
========================================== */

/* Сетка карточек (3 в ряд на ПК) */
.course-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 992px) {
    .course-modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .course-modules-grid { grid-template-columns: 1fr; }
}

/* Карточка модуля */
.module-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 320px;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.module-image {
    height: 160px;
    background-color: #f4f6f9;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eef0f2;
}

.module-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.module-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.module-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ==========================================
   ПОДВАЛ КАРТОЧКИ (СТАТУС И СТАТИСТИКА)
========================================== */
.module-footer {
    margin-top: auto;
    display: flex;
    align-items: center; /* Центрируем содержимое строго по вертикали */
    gap: 15px; 
    /* Убрали min-height, чтобы не было лишнего отступа снизу */
}

.module-status {
    display: inline-block;
    padding: 5px 12px; /* Аккуратные отступы сверху/снизу и по бокам */
    font-size: 13px;
    font-weight: 600;
    line-height: normal; /* Возвращаем естественную высоту текста */
    border-radius: 6px;
    white-space: nowrap;
    margin: 0;
}

.module-status.completed { background: #e8f5e9; color: #2e7d32; }
.module-status.progress { background: #e3f2fd; color: #1976d2; }
.module-status.not-started { background: #f5f5f5; color: #888; }

.module-hover-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

/* Выравниваем эмодзи и текст внутри span */
.module-hover-info span {
    display: flex;
    align-items: center;
}

.module-card:hover .module-hover-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ==========================================
   МОДАЛЬНОЕ ОКНО
========================================== */
.module-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.module-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.module-modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.module-modal-overlay.active .module-modal-content {
    transform: translateY(0);
}

.module-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.module-modal-close:hover { color: #333; }

.module-modal-title {
    margin-top: 0;
    font-size: 22px;
    color: #2c3e50;
    padding-right: 30px; /* Чтобы крестик не перекрывал текст */
}

/* Крутилка загрузки */
.modal-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4caf50;
    border-radius: 50%;
    width: 40px; height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Стили для прилетевшего списка тем (из AJAX) */
.theme-list { list-style: none; padding: 0; margin: 0; }
.theme-item { padding: 20px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 15px; background: #fafafa; }
.theme-item-title { font-weight: 700; margin-bottom: 10px; font-size: 16px; color: #333; }
.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-list li { margin-bottom: 8px; padding-left: 15px; position: relative; }
.lesson-list li::before { content: "•"; color: #4caf50; position: absolute; left: 0; font-weight: bold; }
.lesson-link { 
    color: #555; 
    text-decoration: none !important; /* Жестко убираем подчеркивание в обычном состоянии */
    font-size: 15px; 
    transition: color 0.2s; 
}

.lesson-link:hover { 
    color: #4caf50; 
    text-decoration: none !important; /* Жестко убираем подчеркивание при наведении */
}

/* Ссылка для неавторизованных (делаем чуть бледнее) */
.lesson-link.guest-link {
    color: #888;
}

.lesson-link.guest-link:hover {
    color: #f44336; /* Например, краснеет при наведении, показывая, что закрыто */
}

/* ==========================================
   СТИЛИ ДЛЯ ЗАКРЫТЫХ МОДУЛЕЙ И УРОКОВ
========================================== */

/* 1. Блокировка самой карточки модуля на витрине */
.module-card.locked {
    opacity: 0.7; /* Делаем карточку слегка прозрачной */
    background: #fafafa;
}

/* Делаем картинку закрытого модуля черно-белой (по желанию, смотрится отлично) */
.module-card.locked .module-image {
    filter: grayscale(100%);
}

/* 2. Плашка с замочком внутри карточки модуля */
.module-locked-badge {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    padding: 4px 0;
}

/* 3. Заблокированный урок в модальном окне (текст вместо ссылки) */
.locked-lesson {
    color: #999;
    cursor: not-allowed;
    display: inline-block;
    padding: 5px 0;
    font-size: 15px;
    text-decoration: none !important;
}

/* =========================================
   АККОРДЕОН ПРОГРАММЫ НА СТРАНИЦЕ МОДУЛЕЙ
========================================= */
.module-program-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.module-theme-group {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.module-theme-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 16px 40px;
    font-size: 1.1em;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
    transition: background-color 0.2s;
}

.module-theme-title:hover {
    background-color: #f8fafc;
    border-radius: 10px;
}

.module-theme-title::-webkit-details-marker {
    display: none;
}

.module-theme-title::before {
    content: "▶";
    position: absolute;
    left: 18px;
    font-size: 12px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.module-theme-group[open] .module-theme-title::before {
    transform: rotate(90deg);
}

.module-theme-group[open] .module-theme-title {
    border-bottom: 1px solid #e2e8f0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Счетчик уроков в правой части заголовка */
.lesson-count {
    font-size: 0.85em;
    color: #64748b;
    font-weight: 400;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Список уроков */
.module-lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-lesson-item {
    border-bottom: 1px solid #f1f5f9;
}

.module-lesson-item:last-child {
    border-bottom: none;
}

.lesson-link {
    display: flex;
    align-items: center;
    padding: 14px 20px 14px 40px;
    color: #334155;
    text-decoration: none;
    transition: background-color 0.2s;
}

.lesson-link:hover:not(.locked) {
    background-color: #f8fafc;
    color: #2563eb;
}

.lesson-icon {
    margin-right: 12px;
    font-size: 1.2em;
    opacity: 0.8;
}

/* Стили для недоступных уроков */
.lesson-link.locked {
    color: #94a3b8;
    cursor: not-allowed;
    background-color: #fafafa;
}
.lesson-link.locked .lesson-icon {
    opacity: 0.5;
}
/* End */
/* /local/components/alexes/course.program/templates/.default/style.css?178998408410960 */
