.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(3,16,39,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247,203,77,0.24);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header.header--scrolled {
  background: rgba(3,16,39,0.98);
  border-bottom-color: rgba(247,203,77,0.3);
  box-shadow: 0 10px 34px rgba(0,0,0,0.26);
}

.header-topbar {
  background: var(--color-navy-dark);
  color: #fff;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.header-topbar__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-topbar__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-topbar a {
  color: #fff;
}

.header-topbar i {
  color: var(--color-gold);
  margin-right: 0.35rem;
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  min-width: 200px;
}

.header-logo img {
  width: auto;
  max-height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.28));
  transition: max-height 0.2s ease;
}

.site-header.header--scrolled .header-logo img {
  max-height: 60px;
}

.header-logo__text {
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-gold);
}

.header-spacer {
  height: var(--header-height);
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav__item {
  position: relative;
}

.header-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  color: rgba(255,255,255,0.92);
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.header-nav__link:hover,
.header-nav__link.active {
  color: var(--color-gold);
  background: rgba(255,255,255,0.06);
}

.header-nav__link .bi-chevron-down {
  font-size: 0.72rem;
  transition: transform 0.18s ease;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--color-navy-dark);
  border: 1px solid rgba(247,203,77,0.34);
  box-shadow: 0 18px 44px rgba(0,0,0,0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.has-dropdown:hover .header-dropdown,
.has-dropdown:focus-within .header-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .bi-chevron-down,
.has-dropdown:focus-within .bi-chevron-down {
  transform: rotate(180deg);
}

.header-dropdown__link {
  display: block;
  padding: 0.62rem 0.75rem;
  border-radius: 7px;
  color: rgba(255,255,255,0.86);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
}

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

.header-actions {
  display: flex;
  align-items: center;
}

.header-cta {
  padding-inline: 1.1rem;
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
  box-shadow: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.86rem;
}

.header-cta:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

/* Ghost/bordered CTA — "Bağış Yap" (Requirement 2.5) */
.header-cta-ghost {
  padding-inline: 1.1rem;
  color: #fff;
  border-color: rgba(255,255,255,0.52);
  box-shadow: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.86rem;
}

.header-cta-ghost:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.06);
}

/* "Yardım Talep Et" — soft teal/emerald, navy bg üstünde güzel durur */
.header-cta-help {
  padding-inline: 1.1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
  box-shadow: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.86rem;
}

.header-cta-help:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #6ee7b7;
  color: #ffffff;
}

.header-login {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  border-color: rgba(255,255,255,0.34);
}

.header-hamburger {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 7px 5px;
  flex-direction: column;
  justify-content: space-between;
}

.header-hamburger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.header-hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* bi-list hamburger button (Task 3.1) — hidden on desktop, visible ≤991 px */
.header-hamburger-icon {
  display: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(17, 24, 39, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1002;
  width: min(88vw, 380px);
  height: 100dvh;
  background: var(--color-navy-dark);
  box-shadow: -18px 0 44px rgba(17, 24, 39, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.mobile-drawer__header {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(247,203,77,0.28);
}

.mobile-drawer__header img {
  max-height: 42px;
  width: auto;
}

.mobile-drawer__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.mobile-drawer__nav {
  overflow-y: auto;
  padding: 1rem 1.25rem;
  flex: 1;
}

.mobile-drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.82rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}

.mobile-drawer__sub {
  padding-left: 0.9rem !important;
}

.mobile-drawer__sub a {
  color: rgba(255,255,255,0.66);
  font-size: 0.92rem;
  font-weight: 500;
}

.mobile-drawer__footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(247,203,77,0.28);
}

body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 1199.98px) {
  .header-nav__link {
    padding-inline: 0.65rem;
  }
}

@media (max-width: 991.98px) {
  .header-topbar {
    display: none;
  }

  .header-inner {
    min-height: 110px;
    position: relative;
    padding: 0.4rem 0.5rem;
  }

  /* Tüm CTA butonlar ve nav mobilde gizli — hamburger drawer'da görünür */
  .header-nav,
  .header-login,
  .header-cta,
  .header-cta-ghost,
  .header-cta-help {
    display: none !important;
  }

  /* Logo ortada — büyük ve sabit */
  .header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: auto;
    pointer-events: auto;
  }

  .header-logo img {
    max-height: 96px !important;
    height: 96px !important;
    width: auto;
  }

  .site-header.header--scrolled .header-logo img {
    max-height: 78px !important;
    height: 78px !important;
  }

  /* Actions sadece hamburger içerir, sağda */
  .header-actions {
    margin-left: auto;
    z-index: 2;
  }

  /* Legacy 3-span hamburger (kept for backwards compat) */
  .header-hamburger {
    display: flex;
  }

  /* bi-list hamburger (Task 3.1) */
  .header-hamburger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    transition: background 0.18s ease;
    font-size: 1.5rem;
  }

  .header-hamburger-icon:hover {
    background: rgba(255,255,255,0.12);
  }
}

@media (max-width: 575.98px) {
  .header-inner {
    min-height: 96px;
  }
  .header-logo img {
    max-height: 82px !important;
    height: 82px !important;
  }
  .site-header.header--scrolled .header-logo img {
    max-height: 68px !important;
    height: 68px !important;
  }
}

@media (max-width: 374.98px) {
  .header-inner {
    min-height: 88px;
  }
  .header-logo img {
    max-height: 72px !important;
    height: 72px !important;
  }
}

/* Mobil drawer'da CTA butonları görünür olsun */
.mobile-drawer .header-cta,
.mobile-drawer .header-cta-ghost,
.mobile-drawer .header-cta-help {
  display: inline-flex !important;
}

/* ── Categories Bar ───────────────────────────────── */
.header-categories-bar {
  background: rgba(10, 20, 46, 0.7);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(245, 197, 24, 0.22);
  padding: 0;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.header-categories-bar__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-categories-scroll {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  padding: 0.1rem 1rem;
  width: 100%;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .header-categories-scroll {
    justify-content: flex-start;
    padding-inline: 1.5rem;
  }
}

.header-categories-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.header-category-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-category-item i {
  color: var(--color-gold);
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}

.header-category-item:hover {
  background: rgba(245, 197, 24, 0.08);
  border-color: rgba(245, 197, 24, 0.45);
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.15);
}

.header-category-item:hover i {
  transform: scale(1.18);
}

.header-category-item.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy) !important;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.header-category-item.active i {
  color: var(--color-navy) !important;
}

/* ── Askıda Items in Header Bar ────────────────────── */
.header-askida-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem 0.3rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.12) 0%, rgba(245, 197, 24, 0.06) 100%);
  border: 1px solid rgba(245, 197, 24, 0.32);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.header-askida-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-navy);
  font-size: 0.78rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
}

.header-askida-item__text {
  letter-spacing: 0.01em;
}

.header-askida-item__arrow {
  font-size: 0.62rem;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-left: -0.1rem;
}

.header-askida-item:hover {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.22) 0%, rgba(245, 197, 24, 0.1) 100%);
  border-color: rgba(245, 197, 24, 0.6);
  color: #fff;
  box-shadow: 0 0 16px rgba(245, 197, 24, 0.15), inset 0 0 12px rgba(245, 197, 24, 0.05);
  transform: translateY(-1px);
}

.header-askida-item:hover .header-askida-item__icon {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.35);
}

.header-askida-item:hover .header-askida-item__arrow {
  opacity: 1;
  transform: translateX(2px);
}

.header-askida-item.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy) !important;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.header-askida-item.active .header-askida-item__icon {
  background: var(--color-navy);
  color: var(--color-gold);
}

.header-askida-item.active .header-askida-item__arrow {
  color: var(--color-navy);
  opacity: 0.7;
}

/* ── Divider between askıda and category pills ──────── */
.header-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, transparent, rgba(245, 197, 24, 0.4), transparent);
  flex-shrink: 0;
  margin: 0 0.85rem;
}

/* ── Scroll Shadow overlays for mobile touch scroll indication */
.header-categories-bar::before,
.header-categories-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.header-categories-bar::before {
  left: 0;
  background: linear-gradient(to right, rgba(10, 20, 46, 0.95), transparent);
}

.header-categories-bar.can-scroll-left::before {
  opacity: 1;
}

.header-categories-bar::after {
  right: 0;
  background: linear-gradient(to left, rgba(10, 20, 46, 0.95), transparent);
}

.header-categories-bar.can-scroll-right::after {
  opacity: 1;
}

/* Responsive category bar placement adjustment */
@media (max-width: 991.98px) {
  .header-categories-bar {
    background: rgba(3, 16, 39, 0.98);
  }

  .header-askida-item {
    padding: 0.25rem 0.7rem 0.25rem 0.35rem;
    font-size: 0.76rem;
  }

  .header-askida-item__icon {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }
}

@media (max-width: 767.98px) {
  .header-divider {
    margin: 0 0.45rem;
  }
}

@media (max-width: 575.98px) {
  .header-askida-item__arrow {
    display: none;
  }
}
