/* ============================================================
   header-nav.css — Premium Brasserie Navigation
   ────────────────────────────────────────────────────────────
   Adım 5 Bölüm 2 — theme.css'ten ayıklandı
   
   İçerik:
   - Container, Inner, Brand
   - Desktop nav, Header actions, Pill
   - Lang/cur dropdowns
   - Mobile menu, drawer
   - Header height responsive
============================================================ */

/* ============================================================
   HEADER — Brasserie premium navigation
============================================================ */

/* Container */
.br-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(26, 20, 16, 0.92);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--br-gold-line);
    transition: box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}
.br-header.is-scrolled {
    background: rgba(26, 20, 16, 0.96);
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
    border-bottom-color: rgba(232, 199, 102, 0.3);
}

/* Inner */
.br-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 60px;
}

/* Brand */
.br-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 200ms ease;
}
.br-header-brand:hover { opacity: 0.85; text-decoration: none; color: inherit; }
.br-header-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--br-gold) 0%, var(--br-gold-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(232, 199, 102, 0.22);
    overflow: hidden;
    flex-shrink: 0;
}
.br-header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}
.br-header-logo-letter {
    font-family: var(--br-font-serif);
    font-size: 1.3125rem;
    color: var(--br-bg-1);
    font-weight: 600;
    line-height: 1;
}
.br-header-title {
    font-family: var(--br-font-serif);
    font-size: 1.1875rem;
    color: var(--br-cream);
    letter-spacing: 0.4px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

/* Desktop nav */
.br-header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
    justify-content: center;
}
.br-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 2px;
    color: var(--br-cream-soft);
    text-decoration: none;
    font-family: var(--br-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    transition: color 200ms ease;
    white-space: nowrap;
}
.br-nav-item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.85; }
.br-nav-item:hover {
    color: var(--br-gold-light);
    text-decoration: none;
}
.br-nav-item.is-active { color: var(--br-cream); }
.br-nav-item.is-active svg { opacity: 1; color: var(--br-gold); }
.br-nav-item.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 28px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, var(--br-gold) 50%, transparent 100%);
}

/* Header actions cluster */
.br-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Pill (lang + cur + burger) */
.br-header-pillbox { position: relative; }
.br-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(232, 199, 102, 0.06);
    border: 1px solid var(--br-gold-line);
    border-radius: 999px;
    color: var(--br-cream);
    font-family: var(--br-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 180ms ease;
    line-height: 1;
}
.br-header-pill:hover,
.br-header-pillbox.is-open .br-header-pill {
    background: var(--br-gold-soft);
    border-color: rgba(232, 199, 102, 0.4);
    color: var(--br-cream);
}
.br-pill-flag {
    font-family: 'Twemoji Country Flags', system-ui, -apple-system, 'Segoe UI Emoji', sans-serif;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.br-pill-cur {
    font-family: var(--br-font-serif);
    font-size: 0.875rem;
    color: var(--br-gold);
    line-height: 1;
    font-weight: 500;
}
.br-pill-code {
    font-weight: 500;
    letter-spacing: 0.4px;
}
.br-pill-chevron {
    width: 9px;
    height: 9px;
    opacity: 0.6;
    transition: transform 200ms ease;
}
.br-header-pillbox.is-open .br-pill-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Burger (mobile only) */
.br-header-burger {
    display: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}
.br-header-burger .br-burger-icon {
    width: 16px;
    height: 16px;
    color: var(--br-cream);
}
.br-header-burger .br-burger-x { display: none; }
.br-header.drawer-open .br-header-burger {
    background: linear-gradient(135deg, var(--br-gold) 0%, var(--br-gold-dark) 100%);
    border-color: var(--br-gold);
}
.br-header.drawer-open .br-header-burger .br-burger-bars { display: none; }
.br-header.drawer-open .br-header-burger .br-burger-x {
    display: block;
    color: var(--br-bg-1);
}

/* Dropdown panel */
.br-header-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(26, 20, 16, 0.97);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--br-gold-line);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    z-index: 1040;
}
.br-header-pillbox.is-open .br-header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.br-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: var(--br-cream-soft);
    font-family: var(--br-font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: left;
    text-decoration: none;  /* Hotfix #021.4: <a> link kullanıldığı için underline'ı kaldır */
    cursor: pointer;
    border-radius: 8px;
    transition: all 160ms ease;
    white-space: nowrap;
}
.br-dropdown-item:hover {
    background: var(--br-gold-soft);
    color: var(--br-cream);
    text-decoration: none;  /* Hover durumunda da underline yok */
}
.br-dropdown-item.is-active {
    background: rgba(232, 199, 102, 0.08);
    color: var(--br-gold-light);
}
.br-dropdown-flag {
    font-family: 'Twemoji Country Flags', system-ui, -apple-system, 'Segoe UI Emoji', sans-serif;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}
.br-dropdown-cur-symbol {
    font-family: var(--br-font-serif);
    font-size: 1rem;
    color: var(--br-gold);
    line-height: 1;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.br-dropdown-name { flex: 1; }
.br-dropdown-check {
    width: 14px;
    height: 14px;
    color: var(--br-gold);
    flex-shrink: 0;
}

/* Mobile drawer */
.br-header-drawer {
    display: none;
    background: rgba(26, 20, 16, 0.98);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--br-gold-line);
    overflow: hidden;
    max-height: 0;
    transition: max-height 360ms ease;
}
.br-header.drawer-open .br-header-drawer {
    display: block;
    max-height: 600px;
}
.br-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    color: var(--br-cream-soft);
    text-decoration: none;
    font-family: var(--br-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(232, 199, 102, 0.05);
    transition: all 200ms ease;
    position: relative;
}
.br-drawer-item:last-child { border-bottom: none; }
.br-drawer-item:hover {
    background: var(--br-gold-soft);
    color: var(--br-cream);
    text-decoration: none;
    padding-left: 28px;
}
.br-drawer-item:hover .br-drawer-arrow {
    color: var(--br-gold);
    transform: translateX(3px);
}
.br-drawer-item.is-active {
    background: rgba(232, 199, 102, 0.04);
    color: var(--br-gold-light);
}
.br-drawer-item.is-active .br-drawer-icon { color: var(--br-gold); }
.br-drawer-item.is-active .br-drawer-arrow { color: var(--br-gold); }
.br-drawer-icon {
    width: 17px;
    height: 17px;
    color: rgba(255, 244, 230, 0.55);
    flex-shrink: 0;
    transition: color 200ms ease;
}
.br-drawer-label { flex: 1; }
.br-drawer-arrow {
    width: 13px;
    height: 13px;
    color: rgba(255, 244, 230, 0.35);
    flex-shrink: 0;
    transition: all 200ms ease;
}

/* Backdrop */
.br-header-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms ease, visibility 280ms;
    z-index: 1020;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.br-header-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ========== RESPONSIVE ========== */
/* Tablet */
@media (max-width: 991.98px) {
    .br-header-nav { display: none; }
    .br-header-burger { display: inline-flex; }
}

/* Mobile */
@media (max-width: 480px) {
    .br-header-inner {
        padding: 10px 14px;
        gap: 10px;
        min-height: 56px;
    }
    .br-header-logo-mark { width: 34px; height: 34px; border-radius: 8px; }
    .br-header-logo-letter { font-size: 1.1875rem; }
    .br-header-title { font-size: 1rem; max-width: 160px; }
    .br-header-actions { gap: 6px; }
    .br-header-pill {
        padding: 6px 10px;
        font-size: 0.6875rem;
        gap: 5px;
    }
    .br-pill-code { display: none; }
    .br-pill-chevron { display: none; }
    .br-header-pill[data-dropdown] {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .br-header-dropdown {
        right: -6px;
        min-width: 170px;
    }
    .br-header-burger {
        width: 36px;
        height: 36px;
    }
}

/* Çok dar (320-360px) */
@media (max-width: 360px) {
    .br-header-title { font-size: 0.875rem; max-width: 120px; }
    .br-header-actions { gap: 4px; }
    .br-header-pill[data-dropdown] {
        width: 32px;
        height: 32px;
    }
    .br-header-burger {
        width: 32px;
        height: 32px;
    }
}

/* Eski header CSS'lerini ez (bg-light ve diğer Bootstrap default'ları) */
header.appheader.bg-light,
header.appheader {
    background: transparent !important;
    padding: 0 !important;
}

