/**
 * YATLAR.NET - Header, Navigasyon ve Menü Stilleri
 * 
 * ÖZEL GEREKSİNİMLER:
 * 1. Masaüstünde menü LOGO ALTINDA ayrı bir yatay şerit olarak yer alır (ekrana rahatça sığması için).
 * 2. Mobilde modern hamburger çekmece menü ve altta yapışkan navigasyon çubuğu kullanılır.
 */

/* Üst Duyuru Çubuğu */
.top-announcement-bar {
    background-color: #040c16;
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.announcement-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-link {
    color: #cbd5e1;
    font-weight: 500;
}

.announcement-link:hover {
    color: var(--color-gold);
}

.admin-link {
    background: rgba(197, 160, 89, 0.15);
    color: var(--color-gold);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.sep {
    color: #475569;
}

/* Ana Header */
.site-header {
    background-color: var(--color-navy-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

/* ===================================================
   1. SATIR: LOGO, MERKEZİ ARAMA VE EYLEM BUTONLARI
   =================================================== */
.header-top-row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Mobil Hamburger Butonu (<= 992px) */
.mobile-hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

/* Logo Stili */
.brand-logo-container {
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 36px;
    height: 36px;
}

.logo-icon {
    width: 100%;
    height: 100%;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1;
}

.logo-ext {
    color: var(--color-gold);
}

.logo-tagline {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-top: 3px;
    text-transform: uppercase;
}

/* Merkezi Hızlı Arama */
.header-search-bar {
    flex: 1;
    max-width: 520px;
    margin: 0 10px;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 4px 6px 4px 16px;
    transition: var(--transition);
}

.search-form:focus-within {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.search-icon {
    color: #94a3b8;
    margin-right: 8px;
    flex-shrink: 0;
}

.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
}

.search-form input::placeholder {
    color: #94a3b8;
}

.search-btn {
    background: var(--color-gold);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--color-gold-hover);
}

/* Sağ Kullanıcı Butonları */
.header-actions-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Para Birimi Dropdown */
.currency-selector-dropdown {
    position: relative;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.currency-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.currency-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    background: #0c2340;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 6px;
    display: none;
    z-index: 1100;
}

.currency-menu.show {
    display: block;
}

.currency-item {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #cbd5e1;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.currency-item:hover, .currency-item.active {
    background: rgba(197, 160, 89, 0.2);
    color: var(--color-gold);
}

/* Aksiyon İkon Linkleri */
.action-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 500;
    gap: 3px;
    transition: var(--transition);
}

.action-icon-link:hover {
    color: var(--color-gold);
}

.icon-wrap {
    position: relative;
}

.action-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--color-gold);
    color: #071526;
    font-size: 0.68rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-label {
    display: block;
}

/* + İlan Ver Butonu */
.btn-create-listing {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #b88d3f 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.btn-create-listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(197, 160, 89, 0.45);
}

.plus-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ===================================================
   2. SATIR: LOGO ALTINDA YER ALAN TAM GENİŞLİKLİ MENÜ
   (Kullanıcının Özel İsteği - Menü rahatça sığar)
   =================================================== */
.header-desktop-nav {
    background-color: #091b33;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid var(--color-gold);
}

.nav-menu-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.nav-menu-list::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
}

.nav-item {
    position: relative;
    white-space: nowrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 13px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-link:hover {
    color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.04);
}

.dropdown-chevron {
    transition: transform 0.2s ease;
}

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

/* Özel Vurgulu Menü Öğeleri */
.ai-nav-link {
    color: #38bdf8 !important;
}

.ai-nav-link:hover {
    color: #7dd3fc !important;
}

.ai-sparkle {
    font-size: 0.95rem;
}

.special-nav-link {
    color: #fbbf24 !important;
}

.price-drop-nav {
    color: #f87171 !important;
}

.badge-fire {
    font-size: 0.95rem;
}

/* Mega & Standart Dropdown */
.mega-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0b1f3a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 2px solid var(--color-gold);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 20px;
    min-width: 580px;
    display: none;
    z-index: 1200;
    animation: fadeInMenu 0.2s ease-out;
}

.simple-dropdown {
    min-width: 220px;
    padding: 10px 0;
}

.simple-dropdown a {
    display: block;
    padding: 9px 18px;
    font-size: 0.86rem;
    color: #cbd5e1;
    font-weight: 500;
}

.simple-dropdown a:hover {
    background: rgba(197, 160, 89, 0.15);
    color: var(--color-gold);
}

.has-dropdown:hover .mega-dropdown-menu {
    display: block;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold);
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-col a {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-col a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.highlight-col {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.badge-tag {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   3. MOBİL HAMBURGER ÇEKMECE MENÜ (DRAWER)
   =================================================== */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 21, 38, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
}

.mobile-drawer-overlay.active {
    display: block;
}

.mobile-drawer-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: #071526;
    color: #ffffff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-drawer-menu.active {
    left: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-search {
    padding: 15px 20px 5px;
}

.drawer-search form {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.drawer-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 9px 12px;
    font-size: 0.85rem;
}

.drawer-search button {
    background: var(--color-gold);
    color: #ffffff;
    border: none;
    padding: 0 14px;
    font-weight: 600;
    cursor: pointer;
}

.drawer-cta {
    padding: 12px 20px;
}

.btn-drawer-listing {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--color-gold) 0%, #b89047 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 10px;
    border-radius: var(--radius-md);
}

.drawer-body {
    flex: 1;
    padding: 10px 20px;
}

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold);
    margin: 18px 0 8px;
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-link {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
}

.drawer-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-gold);
}

.drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #040c16;
}

.drawer-currency {
    margin-bottom: 12px;
}

.drawer-currency span {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 6px;
}

.currency-pills {
    display: flex;
    gap: 6px;
}

.currency-pills .pill {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.currency-pills .pill.active {
    background: var(--color-gold);
    color: #071526;
    font-weight: 700;
}

.btn-drawer-auth {
    display: block;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px;
    border-radius: var(--radius-md);
}

/* ===================================================
   4. MOBİL YAPIŞKAN ALT MENÜ (Sticky Bottom Bar)
   =================================================== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #071526;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
    justify-content: space-around;
    align-items: center;
}

.bottom-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 500;
    gap: 3px;
    flex: 1;
    height: 100%;
}

.bottom-bar-item.active {
    color: var(--color-gold);
}

.icon-rel {
    position: relative;
}

.mobile-fav-dot {
    position: absolute;
    top: -4px;
    right: -7px;
    background: var(--color-gold);
    color: #071526;
    font-size: 0.6rem;
    font-weight: 800;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orta Yuvarlak Vurgulu Buton */
.center-highlight {
    position: relative;
    top: -10px;
}

.center-btn-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold) 0%, #b88d3f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    border: 3px solid #071526;
}

.bubble-icon {
    font-size: 1.25rem;
}

/* ===================================================
   RESPONSIVE UYUMLULUK
   =================================================== */
@media (max-width: 992px) {
    .mobile-hamburger-btn {
        display: flex;
    }

    .header-desktop-nav {
        display: none; /* Mobilde yatay desktop menü gizlenir, hamburger çekmece kullanılır */
    }

    .header-search-bar {
        display: none; /* Mobilde arama drawer veya hero içindedir */
    }

    .header-actions-group .action-icon-link {
        display: none; /* Mobilde alt menüye taşınır */
    }

    .currency-selector-dropdown {
        display: none;
    }

    .mobile-bottom-bar {
        display: flex; /* Mobilde alttaki yapışkan bar aktif */
    }

    .btn-create-listing {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
}
