/* ==========================================================================
   Leenweb Breakdance Addons - Mega Menu
   ========================================================================== */

.lwbda-mega-wrap {
    position: relative;
    display: inline-block;
}

/* --- Trigger -------------------------------------------------------------- */
.lwbda-mega-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 12px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    color: inherit;
    line-height: 1.4;
}
.lwbda-mega-trigger-label {
    position: relative;
    z-index: 1;
}
.lwbda-mega-trigger-underline {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}
.lwbda-mega-wrap.is-open .lwbda-mega-trigger-underline {
    transform: scaleX(1);
}

/* --- Panel ---------------------------------------------------------------- */
.lwbda-mega-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 720px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.lwbda-mega-wrap.is-open .lwbda-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lwbda-mega-panel-inner {
    background: #ffffff;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 2fr);
    gap: 0;
    padding: 24px;
    min-height: 320px;
}

/* --- Left column: groups + categories ------------------------------------ */
.lwbda-mega-col-left {
    border-right: 1px solid #e5e7eb;
    padding-right: 16px;
}
.lwbda-mega-group + .lwbda-mega-group {
    margin-top: 24px;
}
.lwbda-mega-group-title {
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #c00;
    font-size: 16px;
    font-weight: 700;
    color: #0a1f3d;
}
.lwbda-mega-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lwbda-mega-cat-item + .lwbda-mega-cat-item {
    margin-top: 2px;
}
.lwbda-mega-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    color: #0a1f3d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}
.lwbda-mega-cat-link:hover,
.lwbda-mega-cat-link.is-active {
    background: #f3f4f6;
    color: #0a1f3d;
}
.lwbda-mega-cat-chevron {
    display: inline-flex;
    align-items: center;
    color: #1e6fb8;
    opacity: 0.6;
}
.lwbda-mega-cat-chevron svg {
    width: 16px;
    height: 16px;
}

/* --- Right column: leaves -------------------------------------------------- */
.lwbda-mega-col-right {
    position: relative;
    padding-left: 24px;
    min-height: 100%;
}
.lwbda-mega-leaf-panel {
    display: none;
}
.lwbda-mega-leaf-panel.is-active {
    display: block;
}
.lwbda-mega-leaf-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0a1f3d;
}
.lwbda-mega-leaf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0 24px;
}
.lwbda-mega-leaf-list--cols-1 { grid-template-columns: 1fr; }
.lwbda-mega-leaf-list--cols-2 { grid-template-columns: 1fr 1fr; }
.lwbda-mega-leaf-link {
    display: block;
    padding: 8px 0;
    color: #0a1f3d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}
.lwbda-mega-leaf-link:hover {
    color: #1e6fb8;
}

/* --- Responsive: hide on mobile ------------------------------------------- */
/* Default: hide below 1024px. JS overschrijft dit met data-hide-below. */
@media (max-width: 1023.98px) {
    .lwbda-mega-wrap:not([data-hide-below]) {
        display: none;
    }
}
