/**
 * PROPERTYTURKIYE.NET - Header & Navigation Styles
 * Two-tier desktop layout: Logo on Top, Full 17-item Navigation Bar Directly UNDER the logo.
 * Fluid off-canvas hamburger drawer on mobile/tablet.
 */

:root {
    --pt-navy-dark: #070e1e;
    --pt-navy: #0d1b2a;
    --pt-navy-light: #1b263b;
    --pt-gold: #c5a059;
    --pt-gold-hover: #dfb76c;
    --pt-emerald: #10b981;
    --pt-emerald-dark: #059669;
    --pt-text-main: #f1f5f9;
    --pt-text-muted: #94a3b8;
    --pt-border: rgba(255, 255, 255, 0.1);
    --pt-border-active: rgba(197, 160, 89, 0.4);
    --pt-surface: #111d33;
    --pt-surface-card: #152238;
}

/* Master Header Container */
.site-header {
    width: 100%;
    background: var(--pt-navy-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--pt-border);
}

/* --- TIER 1: Top Brand & Utility Bar --- */
.header-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #091326 0%, #0d1b2a 100%);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--pt-gold) 0%, #997328 100%);
    color: #070e1e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.3);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1.1;
}

.brand-name span {
    color: var(--pt-gold);
}

.brand-tagline {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--pt-text-muted);
}

/* Topbar Utilities (Right side) */
.header-top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.switcher-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--pt-border);
}

.switcher-select {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.switcher-select option {
    background: var(--pt-navy-dark);
    color: #ffffff;
}

/* Top CTAs */
.btn-top-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
    transition: all 0.2s ease;
}

.btn-top-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-top-partner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid var(--pt-gold);
    color: var(--pt-gold);
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-top-partner:hover {
    background: var(--pt-gold);
    color: #070e1e;
}

.btn-top-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--pt-border);
    transition: all 0.2s ease;
}

.btn-top-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

/* --- TIER 2: Dedicated Menu Bar Located DIRECTLY UNDER THE LOGO --- */
.header-navbar {
    width: 100%;
    background: #091326;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0 24px;
}

.main-nav-container {
    max-width: 1680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.main-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    flex-wrap: wrap; /* Wraps cleanly or fits effortlessly across the full width under the logo */
}

.main-menu-item {
    position: relative;
}

.main-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 11px 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.18s ease;
}

.main-menu-link:hover,
.main-menu-item.active .main-menu-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.main-menu-item.highlight .main-menu-link {
    color: var(--pt-gold);
}

.main-menu-item.badge-hot .main-menu-link::after {
    content: "HOT";
    font-size: 0.6rem;
    background: #ef4444;
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 3px;
}

.main-menu-item.badge-ai .main-menu-link::after {
    content: "AI";
    font-size: 0.6rem;
    background: var(--pt-emerald);
    color: #070e1e;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 3px;
}

/* Dropdown menus */
.dropdown-toggle::after {
    content: "▾";
    font-size: 0.75rem;
    opacity: 0.6;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--pt-surface);
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1050;
}

.main-menu-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-dropdown li a:hover {
    background: rgba(197, 160, 89, 0.12);
    color: var(--pt-gold);
    padding-left: 20px;
}

/* --- MOBILE HEADER & HAMBURGER (Screen < 1024px) --- */
.mobile-header-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--pt-navy-dark);
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: background 0.2s ease;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
}

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

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

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

/* Mobile Off-Canvas Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 14, 30, 0.8);
    backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 86%;
    max-width: 380px;
    height: 100vh;
    background: var(--pt-navy-dark);
    border-left: 1px solid var(--pt-border);
    z-index: 2001;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--pt-border);
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-quick-search {
    position: relative;
}

.drawer-quick-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
}

.drawer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.15s ease;
}

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

.drawer-footer-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--pt-border);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .header-topbar,
    .header-navbar {
        display: none !important;
    }
    .mobile-header-bar {
        display: flex !important;
    }
}
