/* ============================================================
   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 Panel — genişlet ────────────────────────────── */
.nav-has-dropdown:first-of-type .nav-dropdown-panel {
    width: 480px;
}

/* ── 2-sütun grid ─────────────────────────────────────────── */
.nav-dd-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 4px 0;
}

/* ── Dropdown Items ───────────────────────────────────────── */
.nav-dd-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 0 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    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; }

/* Aktif sayfa göstergesi */
.nav-dd-item--active {
    background: rgba(233,30,99,.06) !important;
}
.nav-dd-item--active .dd-text__title {
    color: #E91E63 !important;
}

/* ── İkon — servis bazlı renk ────────────────────────────── */
.dd-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    transition: background .12s ease, color .12s ease;
}

/* Varsayılan */
.dd-icon { background: #f3f4f6; color: #6b7280; }

/* Influencer Marketing — pembe */
.nav-dd-item--im .dd-icon   { background: rgba(233,30,99,.10); color: #E91E63; }
/* Sosyal Medya — mor-pembe */
.nav-dd-item--sm .dd-icon   { background: rgba(131,58,180,.10); color: #8334B4; }
/* Dijital Reklam — mavi */
.nav-dd-item--drm .dd-icon  { background: rgba(66,133,244,.12); color: #4285F4; }
/* SEO — yeşil */
.nav-dd-item--seo .dd-icon  { background: rgba(52,168,83,.12);  color: #34A853; }
/* Web Tasarım — turuncu */
.nav-dd-item--kwt .dd-icon  { background: rgba(234,88,12,.10);  color: #EA580C; }
/* Etkinlik — amber */
.nav-dd-item--eo .dd-icon   { background: rgba(217,119,6,.10);  color: #D97706; }
/* Video Prodüksiyon — pembe */
.nav-dd-item--vp .dd-icon   { background: rgba(233,30,99,.10); color: #E91E63; }
/* Dijital PR — teal */
.nav-dd-item--pr .dd-icon   { background: rgba(8,145,178,.10);  color: #0891B2; }

/* Yazılım — marka pembe */
.nav-dd-item--sw .dd-icon  { background: rgba(233,30,99,.10); color: #E91E63; }
.nav-dd-item--sw:hover .dd-icon { background: rgba(233,30,99,.18); color: #C2185B; }
/* UGC — yeşil-mavi (teal-green) */
.nav-dd-item--ugc .dd-icon   { background: rgba(5,150,105,.10); color: #059669; }
.nav-dd-item--ugc:hover .dd-icon  { background: rgba(5,150,105,.18); color: #047857; }
/* Hover'da rengi koru, hafif koyulaştır */
.nav-dd-item--im:hover  .dd-icon  { background: rgba(233,30,99,.18);  color: #C2185B; }
.nav-dd-item--sm:hover  .dd-icon  { background: rgba(131,58,180,.18); color: #6A1A9A; }
.nav-dd-item--drm:hover .dd-icon  { background: rgba(66,133,244,.20); color: #1A73E8; }
.nav-dd-item--seo:hover .dd-icon  { background: rgba(52,168,83,.20);  color: #1E8E3E; }
.nav-dd-item--kwt:hover .dd-icon  { background: rgba(234,88,12,.18);  color: #C2410C; }
.nav-dd-item--eo:hover  .dd-icon  { background: rgba(217,119,6,.18);  color: #B45309; }
.nav-dd-item--vp:hover  .dd-icon  { background: rgba(233,30,99,.18); color: #C2185B; }
.nav-dd-item--pr:hover  .dd-icon  { background: rgba(8,145,178,.18);  color: #0E7490; }

.dd-text__title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    display: block;
}
.dd-text__desc {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
    display: block;
    margin-top: 1px;
    font-weight: 500;
}

/* ── Dropdown Footer CTA ──────────────────────────────────── */
.nav-dd-footer {
    margin-top: 6px;
    padding: 8px 10px 6px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-dd-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
    border-radius: 100px;
    text-decoration: none !important;
    transition: filter .15s ease, transform .15s ease;
    cursor: pointer;
    width: auto;
}
.nav-dd-cta:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
    text-decoration: none !important;
}
.nav-dd-cta__text {
    font-size: 12px;
    font-weight: 700;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    line-height: 1;
    white-space: nowrap;
}
.nav-dd-cta__arrow {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    flex-shrink: 0;
    transition: background .12s ease;
}
.nav-dd-cta:hover .nav-dd-cta__arrow {
    background: rgba(255,255,255,.35);
}

/* ── 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;
}
/* Mobil Uygulama — pembe */
.nav-dd-item--ma .dd-icon { background: rgba(233,30,99,.10); color: #E91E63; }
.nav-dd-item--ma:hover .dd-icon { background: rgba(233,30,99,.18); color: #C2185B; }
.nav-dd-item--ma .dd-text__title { color: #111827; }
.nav-dd-item--ma:hover { background: rgba(233,30,99,.04); }
