/* ============================================================
   Kurumsal Mega-Menu — Premium / UX-correct
   Stripe & Linear pattern: bridge pseudo-element + hide delay
   ============================================================ */

/* ── Desktop Dropdown Trigger ─────────────────────────────── */
.nav-has-dropdown { position: relative; }

.nav-has-dropdown > .nav-item-link {
    cursor: pointer !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.nav-chevron {
    display: inline-block;
    transition: transform .22s cubic-bezier(.4,0,.2,1);
    flex-shrink: 0;
    opacity: .55;
}
.nav-has-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── BRIDGE — fills the gap so hover never drops ──────────── */
/* Mouse travels from trigger → gap → panel; ::before keeps
   .nav-has-dropdown:hover = true the entire way               */
.nav-has-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    height: 20px;          /* must be >= gap in panel top      */
    background: transparent;
    z-index: 9998;
    pointer-events: auto;
}

/* ── Dropdown Panel ───────────────────────────────────────── */
.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);   /* visual gap below trigger       */
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 400px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 20px;
    padding: 8px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,.03),
        0 4px 8px -2px rgba(0,0,0,.08),
        0 24px 56px -8px rgba(0,0,0,.20);

    /* Hide: opacity first, then visibility after tiny delay    */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity  .18s cubic-bezier(.4,0,.2,1),
        transform .18s cubic-bezier(.4,0,.2,1),
        visibility 0s linear .18s;
    z-index: 9999;
}

/* Show: immediate visibility, fade + slide in               */
.nav-has-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition:
        opacity  .18s cubic-bezier(.4,0,.2,1),
        transform .18s cubic-bezier(.4,0,.2,1),
        visibility 0s linear 0s;
}

/* Caret arrow */
.nav-dropdown-panel::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-bottom: none;
    border-right: none;
    border-radius: 2px 0 0 0;
    pointer-events: none;
}

/* ── Dropdown Header ──────────────────────────────────────── */
.nav-dd-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 4px;
}
.nav-dd-header__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 2px;
}
.nav-dd-header__title {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    line-height: 1.3;
}

/* ── Dropdown Items ───────────────────────────────────────── */
.nav-dd-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 12px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 13px;
    text-decoration: none !important;
    color: #374151;
    transition: background .12s ease;
    cursor: pointer;
}
.nav-dd-item:hover {
    background: #f9fafb;
    color: #111827;
    text-decoration: none !important;
}
.nav-dd-item:active {
    background: #f3f4f6;
}

.dd-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #6b7280;
    transition: background .12s ease, color .12s ease;
}
.nav-dd-item:hover .dd-icon {
    background: rgba(233,30,99,.1);
    color: #E91E63;
}

.dd-text__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    display: block;
}
.dd-text__desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
    display: block;
    margin-top: 1px;
    font-weight: 500;
}

/* ── Dropdown Footer CTA ──────────────────────────────────── */
.nav-dd-footer {
    margin-top: 4px;
    padding: 8px 8px 4px;
    border-top: 1px solid #f3f4f6;
}
.nav-dd-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    border-radius: 13px;
    text-decoration: none !important;
    transition: filter .15s ease, transform .15s ease;
    cursor: pointer;
}
.nav-dd-cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    text-decoration: none !important;
}
.nav-dd-cta__text {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.nav-dd-cta__arrow {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    transition: background .12s ease;
}
.nav-dd-cta:hover .nav-dd-cta__arrow {
    background: rgba(255,255,255,.3);
}

/* ── Mobile Accordion ─────────────────────────────────────── */
.mobile-nav-group {
    width: 100%;
}

.mobile-has-submenu {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    color: rgba(255,255,255,.85);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.1px;
    line-height: 1;
    text-decoration: none;
}

.mob-chevron {
    flex-shrink: 0;
    transition: transform .25s ease;
    opacity: .5;
}
.mobile-has-submenu.is-open .mob-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.mobile-submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.mobile-submenu.is-open {
    max-height: 500px;
    padding-top: 6px;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none !important;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    font-weight: 600;
    transition: all .15s ease;
    margin-top: 2px;
    cursor: pointer;
}
.mobile-submenu-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    text-decoration: none !important;
}

.ms-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(233,30,99,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #E91E63;
    flex-shrink: 0;
}

.mobile-submenu-link__desc {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    display: block;
    font-weight: 500;
    margin-top: 1px;
    line-height: 1.3;
}