/* =====================================================
   ILYK — Стилі курсів у Мегаменю (Hover фікс на 0.8s)
   css/megamenu.css
   ===================================================== */

.ilyk-megamenu-courses {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ilyk-megamenu-course-item {
    margin-bottom: 0;
    border-bottom: 1px solid #f8fafc;
}
.ilyk-megamenu-course-item:last-child {
    border-bottom: none;
}

.ilyk-megamenu-course-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px; /* Робимо об'ємні відступи для красивої плашки */
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    position: relative;
    background: transparent;
    
    /* 🌟 ШВИДКІСТЬ НАВЕДЕННЯ НА КУРС (Глибокі та тягучі 0.8s) */
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Створюємо прихований вертикальний маркер зліва для списку курсів */
.ilyk-megamenu-course-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 18px;
    background-color: var(--ilyk-clr-primary); /* Синій фірмовий */
    border-radius: 2px;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Ефект тривалого наведення на плашку курсу */
.ilyk-megamenu-course-link:hover {
    color: var(--ilyk-clr-primary) !important;
    background: #f0f4ff; /* М'яке брендове тло */
    padding-left: 22px; /* М'який зсув усього вмісту вправо */
}

/* Анімуємо лінію-маркер */
.ilyk-megamenu-course-link:hover::before {
    transform: translateY(-50%) scaleY(1);
    opacity: 1;
}

.ilyk-megamenu-course-title {
    font-weight: 500;
    flex: 1;
}

.ilyk-megamenu-status-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.ilyk-megamenu-status-badge.ilyk-status--open {
    color: #1a8a4a;
    background-color: #e6f7ee;
}

.ilyk-megamenu-status-badge.ilyk-status--paused {
    color: #b35c00;
    background-color: #fff4e5;
}

/* ── Секції мегаменю (Наживо / Онлайн) ── */
.ilyk-header__mega-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.ilyk-header__mega-section {
    padding: 0 24px;
}
.ilyk-header__mega-section:first-child {
    padding-left: 0;
    border-right: 1px solid #f1f5f9;
}
.ilyk-header__mega-section:last-child {
    padding-right: 0;
}
.ilyk-header__mega-section-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ilyk-clr-primary);
    background: #eef1fe;
    border-radius: 4px;
    padding: 3px 10px;
    margin: 0 0 10px;
}

/* ── Підзаголовки секцій в offcanvas ── */
.ilyk-offcanvas__subsection-title {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ilyk-clr-primary);
    background: #eef1fe;
    border-radius: 4px;
    padding: 3px 10px;
    margin: 14px 12px 6px;
}
.ilyk-offcanvas__subsection-title:first-child {
    margin-top: 6px;
}

/* ── Футер мегаменю з кнопкою «Показати всі» ── */
.ilyk-header__mega-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}
.ilyk-header__mega-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ilyk-clr-primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}
.ilyk-header__mega-all-link:hover {
    gap: 10px;
}
.ilyk-header__mega-all-link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}
.ilyk-header__mega-all-link:hover i {
    transform: translateX(2px);
}

/* ── Кнопка «Показати всі» в offcanvas ── */
.ilyk-offcanvas__all-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 12px 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ilyk-clr-primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}
.ilyk-offcanvas__all-link:hover {
    gap: 10px;
}
.ilyk-offcanvas__all-link i {
    font-size: 11px;
}
