﻿/* ============================================================
   AH GECELER — nav.css
   Nav + Mobil Sidebar
   css.css'deki nav stillerini override eder.
   ============================================================ */

/* ¦¦ NAV WRAPPER ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    gap: 24px;
    /* Koyu cam efekti */
    background: rgba(8, 4, 4, 0.82);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(212,175,55,0.12);
    transition: background 0.4s ease, border-color 0.4s ease;
}

    /* Scroll'da daha koyu */
    nav.scrolled {
        background: rgba(8, 4, 4, 0.97);
        border-bottom-color: rgba(212,175,55,0.22);
    }

/* ¦¦ LOGO ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
a.nav-logo,
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 0;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
    /* Şeffaf PNG › altın glow */
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.20));
    transition: filter 0.35s ease, transform 0.35s ease;
}

.nav-logo:hover .nav-logo-img {
    filter: drop-shadow(0 0 18px rgba(212,175,55,0.60));
    transform: scale(1.04);
}

/* ¦¦ ORTA LİNKLER ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

    .nav-links li a {
        position: relative;
        color: rgba(240, 232, 216, 0.62);
        text-decoration: none;
        font-family: var(--font-body);
        font-size: 12.5px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 6px 14px;
        border-radius: 2px;
        transition: color 0.25s ease;
        white-space: nowrap;
    }

        /* Hover alt çizgi efekti */
        .nav-links li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 14px;
            right: 14px;
            height: 1px;
            background: var(--gold);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .nav-links li a:hover {
            color: var(--gold);
        }

            .nav-links li a:hover::after {
                transform: scaleX(1);
            }

        /* Aktif sayfa */
        .nav-links li a.active {
            color: var(--gold);
        }

            .nav-links li a.active::after {
                transform: scaleX(1);
            }

/* ¦¦ SAĞ TARAF ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ¦¦ SEPET BUTONU ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--gold);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    white-space: nowrap;
}

    .nav-cart:hover {
        background: var(--gold);
        color: var(--deep);
        border-color: var(--gold);
        box-shadow: 0 0 20px rgba(212,175,55,0.25);
    }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--red-bright);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    box-shadow: 0 0 8px rgba(192,57,43,0.5);
}

    .cart-badge.hidden {
        display: none;
    }

/* ¦¦ HAMBURGEr (mobil) ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

    .nav-hamburger:hover {
        background: rgba(212,175,55,0.1);
    }

    .nav-hamburger span {
        display: block;
        width: 22px;
        height: 1.5px;
        background: var(--gold);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* X animasyonu */
    .nav-hamburger.open span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .nav-hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-hamburger.open span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

/* ¦¦ MOBİL SIDEBAR ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(4px);
}

    .mobile-sidebar-overlay.open {
        opacity: 1;
        pointer-events: all;
    }

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #0d0808;
    border-left: 1px solid rgba(212,175,55,0.15);
    z-index: 301;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
}

    .mobile-sidebar.open {
        transform: translateX(0);
    }

/* Sidebar üst */
.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(212,175,55,0.12);
}

.mobile-sidebar-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(212,175,55,0.3));
}

.mobile-sidebar-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(240,232,216,0.6);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .mobile-sidebar-close:hover {
        border-color: var(--red-bright);
        color: var(--red-bright);
    }

/* Sidebar nav linkleri */
.mobile-sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

    .mobile-sidebar-nav a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 28px;
        color: rgba(240,232,216,0.65);
        text-decoration: none;
        font-family: var(--font-body);
        font-size: 11px;
        letter-spacing: 3px;
        text-transform: uppercase;
        border-left: 2px solid transparent;
        transition: all 0.25s ease;
    }

        .mobile-sidebar-nav a:hover,
        .mobile-sidebar-nav a.active {
            color: var(--gold);
            background: rgba(212,175,55,0.06);
            border-left-color: var(--gold);
        }

.mobile-sidebar-divider {
    height: 1px;
    background: rgba(212,175,55,0.1);
    margin: 8px 28px;
}

/* Sidebar alt - sosyal medya */
.mobile-sidebar-footer {
    padding: 20px 28px;
    border-top: 1px solid rgba(212,175,55,0.1);
}

    .mobile-sidebar-footer p {
        font-size: 10px;
        color: rgba(240,232,216,0.25);
        letter-spacing: 2px;
        text-transform: uppercase;
        text-align: center;
    }

/* ¦¦ RESPONSIVE ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
@media (max-width: 900px) {
    nav {
        padding: 0 20px 0 16px;
    }

    .nav-links {
        display: none;
    }
    /* masaüstü linkler gizlenir */
    .nav-hamburger {
        display: flex;
    }
    /* hamburger görünür */
    .nav-logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    nav {
        height: 62px;
    }

    .nav-logo-img {
        height: 34px;
    }

    .nav-cart {
        padding: 8px 14px;
        font-size: 9px;
        letter-spacing: 1.5px;
    }
}
