/* =====================================================
   MAIN-HEADER.CSS
   Üst Menü ve Mobil Çekmece Stilleri
===================================================== */

.site-header {
    position: relative;
    width: 100%;
    z-index: 5000;
    background: #f5f5f5;
    border-bottom: 1px solid var(--ss-line);
}

.custom-navbar {
    width: 100%;
    height: 64px;
    min-height: 64px;
    padding: 0;
    background: transparent !important;
    border: 0;
    box-shadow: none;
}

.header-container {
    width: 100%;
    max-width: var(--ss-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ss-pad);
    padding-right: var(--ss-pad);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 54px;
    min-width: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.navbar-logo {
    height: 31px;
    width: auto;
    object-fit: contain;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 34px;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}

.desktop-menu .nav-item {
    display: flex;
    align-items: center;
    height: 64px;
}

.desktop-link,
.desktop-menu .nav-link {
    color: var(--ss-black) !important;
    font-size: 16px;
    font-weight: 600;
    padding: 0 !important;
    line-height: 1;
    transition: opacity .2s ease;
}

.desktop-auth-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.desktop-auth-pill {
    min-height: 44px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.desktop-login-btn,
.desktop-logout-btn,
.desktop-location-btn {
    background: #fff;
    color: var(--ss-black) !important;
    border: 1.5px solid var(--ss-black);
}

.desktop-register-btn,
.desktop-profile-btn {
    background: var(--ss-black);
    color: #fff !important;
    border: 1.5px solid var(--ss-black);
}

/* =====================================================
   DROPDOWN & OK ANİMASYONLARI
===================================================== */
.desktop-dropdown-icon,
.mobile-dropdown-icon {
    transition: transform 0.3s ease;
}

/* Masaüstünde menü hover olduğunda oku yukarı çevir */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }

    .nav-item.dropdown:hover .desktop-dropdown-icon {
        transform: rotate(180deg);
    }
}

/* Mobilde Bootstrap menüyü açtığında aria-expanded="true" olur ve ok yukarı döner */
.mobile-dropdown-btn[aria-expanded="true"] .mobile-dropdown-icon {
    transform: rotate(180deg);
}

.technology-dropdown {
    width: max-content;
    min-width: 280px;
    padding: 16px;
    border-radius: 20px;
    box-shadow: var(--ss-shadow-card);
    border: 1px solid var(--ss-line-soft) !important;
    margin-top: 0;
    top: 60px;
}

.technology-dropdown::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.tech-dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--ss-black);
    transition: background 0.2s ease;
}

.tech-dropdown-item:hover {
    background: var(--ss-bg);
    color: var(--ss-black);
}

.tech-dropdown-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--ss-line-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-dropdown-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tech-dropdown-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.tech-dropdown-desc {
    font-size: 13px;
    color: var(--ss-gray);
}

/* =====================================================
   HAMBURGER BUTONU
===================================================== */
.navbar-toggler {
    border: none !important;
    background: transparent;
    padding: 0;
    box-shadow: none !important;
    position: relative;
    z-index: 1050;
}

.hamburger-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    pointer-events: none;
    /* KRİTİK: Tıklamayı ana <button> elementine iletir */
}

.hamburger-wrapper span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ss-black);
    pointer-events: none;
    /* KRİTİK */
}

/* =====================================================
   MOBILE DRAWER (OFFCANVAS)
===================================================== */
.apple-menu {
    width: min(88vw, 390px) !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 99999 !important;
    border: 0 !important;
    background: #fff !important;
    border-radius: 0 !important;
}

.offcanvas-backdrop {
    z-index: 99998 !important;
}

.mobile-drawer-header {
    height: 74px;
    padding: 0 24px;
    border-bottom: 1px solid #efefef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.mobile-close-btn {
    padding: 0;
    border: 0;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none !important;
    outline: none !important;
}

.mobile-close-btn i {
    font-size: 30px;
    color: var(--ss-black) !important;
    line-height: 1;
}

.mobile-drawer-body {
    height: calc(100dvh - 74px);
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu-item {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid var(--ss-line-soft);
    background: none;
    padding: 18px 0;
    color: var(--ss-black);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
}

.mobile-auth-section {
    margin-top: auto;
    padding-top: 24px;
    padding-bottom: max(30px, env(safe-area-inset-bottom));
}

.mobile-auth-btn,
.mobile-auth-single-btn,
.mobile-location-btn {
    min-height: 50px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.mobile-auth-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.mobile-auth-buttons .mobile-auth-btn {
    flex: 1;
}

.login-btn,
.mobile-location-btn {
    background: #fff;
    color: var(--ss-black);
    border: 1px solid var(--ss-black);
}

.register-btn,
.mobile-auth-single-btn:not(.logout-btn) {
    background: var(--ss-black);
    color: #fff;
}

.logout-btn {
    background: #fff;
    color: var(--ss-black);
    border: 1px solid var(--ss-line);
    margin-top: 12px;
}

.mobile-location-btn {
    width: 100%;
    margin-top: 12px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .header-left {
        gap: 0;
    }

    .desktop-menu,
    .desktop-auth-area {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .custom-navbar,
    .header-container {
        height: 64px;
        min-height: 64px;
    }

    .navbar-logo {
        height: 28px;
    }
}

/* =====================================================
   MOBİL ALT MENÜ (KONSEPTLER) STİLLERİ
===================================================== */
.mobile-submenu {
    padding: 16px 12px 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fafafa;
    /* Açıldığında hafif gri bir zeminle derinlik katar */
    border-radius: 0 0 20px 20px;
    margin-bottom: 12px;
}

.mobile-submenu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ss-black);
    transition: opacity 0.2s ease;
}

.mobile-submenu-item:active {
    opacity: 0.6;
}

.mobile-submenu-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--ss-line-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-submenu-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mobile-submenu-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--ss-black);
}

.mobile-submenu-desc {
    font-size: 13px;
    color: var(--ss-gray);
    line-height: 1.3;
}