/* Public navbar — masaüstü sıkıştırma + modern mobil alt menü */

@media (min-width: 769px) {
    .navbar {
        padding: 0.85rem 0;
    }

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .navbar .nav-wrapper {
        flex-shrink: 0;
    }

    .navbar .nav-menu {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        background: transparent;
        overflow: visible;
        flex: 1;
        justify-content: flex-end;
    }

    .navbar .hamburger {
        display: none !important;
    }

    .navbar .logo img {
        height: 58px;
        max-width: 165px;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .nav-menu > li > a {
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .nav-dropdown > a::after {
        font-size: 0.55rem;
        margin-left: 4px;
    }

    .dropdown-menu {
        min-width: 200px;
    }

    .dropdown-menu a {
        font-size: 0.875rem;
        padding: 0.65rem 1.25rem;
    }

    .nav-mobile-subview {
        display: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .navbar .logo img {
        height: 50px;
        max-width: 145px;
    }

    .nav-menu {
        gap: 0.7rem;
    }

    .nav-menu > li > a {
        font-size: 0.8rem;
    }
}

.nav-dropdown.is-child-active > a {
    color: var(--primary-yellow);
}

/* ——— Mobil menü ——— */
@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    .navbar {
        z-index: 1100;
    }

    .nav-wrapper {
        position: relative;
        z-index: 1102;
    }

    .hamburger {
        z-index: 1103;
        position: relative;
        display: flex;
        padding: 10px;
        margin: 0;
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hamburger span {
        transform-origin: center;
        pointer-events: none;
    }

    .navbar .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 96px 1.25rem 2rem;
        gap: 0;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(0, 0, 0, 0.98);
        z-index: 1101;
        margin: 0;
        list-style: none;
    }

    .navbar .nav-menu.active {
        display: flex;
    }

    .navbar .nav-dropdown .dropdown-menu,
    .navbar .nav-dropdown.active .dropdown-menu {
        display: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .navbar .nav-menu.is-subview {
        visibility: hidden;
        pointer-events: none;
    }

    .navbar .nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .navbar .nav-menu > li > a,
    .navbar .nav-dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1rem 0.35rem;
        font-size: 1.02rem;
        font-weight: 500;
    }

    .navbar .nav-menu > li > a::after {
        display: none;
    }

    .navbar .nav-dropdown > a::after {
        content: '';
        display: block;
        width: 9px;
        height: 9px;
        margin-left: 12px;
        border-right: 2px solid var(--primary-yellow);
        border-bottom: 2px solid var(--primary-yellow);
        transform: rotate(-45deg);
        flex-shrink: 0;
    }

    .navbar .nav-dropdown .dropdown-menu {
        display: none;
    }

    .nav-mobile-subview {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1200;
        padding: 96px 1.25rem 2rem;
        background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-mobile-subview.is-open {
        display: block;
    }

    .nav-mobile-back {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 0.85rem;
        margin-bottom: 1.25rem;
        background: rgba(255, 215, 0, 0.08);
        border: 1px solid rgba(255, 215, 0, 0.35);
        border-radius: 50px;
        color: var(--primary-yellow);
        font-family: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
    }

    .nav-mobile-back:hover,
    .nav-mobile-back:focus-visible {
        background: rgba(255, 215, 0, 0.15);
        outline: none;
    }

    .nav-mobile-back-icon {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-left: 2px;
    }

    .nav-mobile-subview-title {
        font-size: 1.35rem;
        font-weight: 700;
        color: var(--primary-yellow);
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid rgba(255, 215, 0, 0.25);
    }

    .nav-mobile-subview-links {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    .nav-mobile-subview-links a {
        display: block;
        padding: 1rem 1.1rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        color: var(--white);
        text-decoration: none;
        font-size: 0.98rem;
        font-weight: 500;
        transition: var(--transition);
    }

    .nav-mobile-subview-links a.active {
        border-color: var(--primary-yellow);
        background: rgba(255, 215, 0, 0.12);
        color: var(--primary-yellow);
        font-weight: 600;
    }
}
