/* Site header — profesyonel shell */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-width: 0;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    rgba(22, 30, 44, 0.97) 0%,
    rgba(18, 24, 36, 0.94) 100%
  );
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 36px -14px rgba(0, 0, 0, 0.5);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(74, 127, 212, 0.45) 50%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.85;
}

.site-header__bar {
  position: relative;
  z-index: 1;
}

.site-header__brand {
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.site-header__toolbar {
  border-color: rgba(255, 255, 255, 0.06) !important;
  gap: 0.5rem;
}

.site-header__search-trigger,
#site-search-trigger {
  background: rgba(8, 12, 20, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.site-header__search-trigger:hover,
#site-search-trigger:hover {
  background: rgba(74, 127, 212, 0.1) !important;
  border-color: rgba(74, 127, 212, 0.32) !important;
  color: #cbd5e1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(74, 127, 212, 0.08);
}

.site-header__search-field svg {
  color: rgba(148, 163, 184, 0.85);
}

.site-header__social-wrap {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: rgba(8, 12, 20, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.site-header__social-label {
  color: rgba(148, 163, 184, 0.7);
  letter-spacing: 0.18em;
}

.btn-social-brand--header {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.btn-social-brand--header:hover {
  border-color: rgba(74, 127, 212, 0.35);
  background: rgba(74, 127, 212, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -8px rgba(74, 127, 212, 0.35);
}

.site-header__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.site-header__locale-btn {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 !important;
  line-height: 1;
  color: #94a3b8 !important;
}

@media (min-width: 1280px) {
  .site-header__locale-btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
}

.site-header__locale-btn[aria-pressed="true"] {
  border-color: rgba(74, 127, 212, 0.45) !important;
  background: rgba(74, 127, 212, 0.18) !important;
  color: #f1f5f9 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 14px -4px rgba(74, 127, 212, 0.35);
}

.site-header__lang .k-locale-btn {
  min-width: 2.25rem;
  border-radius: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-header__lang .k-locale-btn[aria-pressed="true"] {
  background: rgba(74, 127, 212, 0.18) !important;
  color: #f1f5f9 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 14px -4px rgba(74, 127, 212, 0.35);
}

.site-header__action-btn:focus-visible,
.site-header__brand-toggle:focus-visible,
.site-header__mobile-btn:focus-visible,
.site-header__search-trigger:focus-visible,
#site-search-trigger:focus-visible {
  outline: 2px solid rgba(74, 127, 212, 0.55);
  outline-offset: 2px;
}

.site-header__action-btn,
.site-header__brand-toggle,
.site-header__mobile-btn {
  border-radius: 0.6875rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.site-header__action-btn:hover,
.site-header__brand-toggle:hover,
.site-header__mobile-btn:hover {
  border-color: rgba(74, 127, 212, 0.38) !important;
  background: rgba(74, 127, 212, 0.12) !important;
  color: #f1f5f9 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 18px -6px rgba(74, 127, 212, 0.35);
}

.site-header__action-btn:active,
.site-header__brand-toggle:active,
.site-header__mobile-btn:active {
  transform: scale(0.97);
}

.site-header__coin-badge {
  border-radius: 0.6875rem !important;
  border: 1px solid rgba(74, 127, 212, 0.28) !important;
  background: linear-gradient(
    180deg,
    rgba(74, 127, 212, 0.16) 0%,
    rgba(74, 127, 212, 0.06) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 14px -8px rgba(74, 127, 212, 0.25);
}

.site-header__toolbar .btn-site-secondary,
.site-header__toolbar .btn-site-primary {
  border-radius: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 1023px) {
  .site-header__mobile {
    gap: 0.625rem;
  }

  .site-header__mobile-top {
    padding-bottom: 0.125rem;
  }

  .header-auth-guest-mobile .btn-site-secondary,
  .header-auth-guest-mobile .btn-site-primary {
    border-radius: 0.75rem;
    min-height: 2.625rem;
    font-weight: 700;
  }

  .header-mobile-coin-btn {
    border-radius: 0.75rem !important;
    border-color: rgba(74, 127, 212, 0.28) !important;
    background: linear-gradient(
      180deg,
      rgba(74, 127, 212, 0.14) 0%,
      rgba(74, 127, 212, 0.06) 100%
    ) !important;
  }

  .header-mobile-market-btn {
    border-radius: 0.75rem !important;
  }
}

@media (min-width: 1024px) {
  .site-header__mid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .site-header__toolbar {
    padding-left: 1.125rem !important;
    padding-right: 1.5rem !important;
  }
}

[data-theme="light"] .site-header {
  background: rgba(238, 243, 250, 0.92) !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px -12px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .site-header::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(74, 127, 212, 0.25) 50%,
    transparent 100%
  );
}

[data-theme="light"] .site-header__search-trigger,
[data-theme="light"] #site-search-trigger {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #64748b;
}

[data-theme="light"] .site-header__social-wrap {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .site-header__locale-btn[aria-pressed="true"] {
  background: rgba(74, 127, 212, 0.14) !important;
  border-color: rgba(74, 127, 212, 0.35) !important;
  color: #0f172a !important;
}

[data-theme="light"] .site-header__lang {
  background: transparent !important;
  border: none !important;
}

[data-theme="light"] .site-header__action-btn,
[data-theme="light"] .site-header__brand-toggle,
[data-theme="light"] .site-header__mobile-btn {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #64748b !important;
}

[data-theme="light"] .site-header__action-btn:hover,
[data-theme="light"] .site-header__brand-toggle:hover,
[data-theme="light"] .site-header__mobile-btn:hover {
  background: #f1f5f9 !important;
  border-color: rgba(74, 127, 212, 0.28) !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-social-brand--header {
  background: rgba(56, 89, 130, 0.06);
  border-color: rgba(15, 23, 42, 0.08);
}

/* Header search palette hard overrides */
#search-palette .search-palette__backdrop {
  background: rgba(14, 19, 28, 0.64) !important;
}

#search-palette-panel {
  background: var(--site-surface-gradient) !important;
}

#search-palette .search-palette__scroll {
  background: var(--site-surface-gradient) !important;
}

#search-palette-input {
  background: var(--site-raised-gradient) !important;
}

[data-theme="light"] #search-palette .search-palette__backdrop {
  background: rgba(241, 245, 249, 0.72) !important;
}

[data-theme="light"] #search-palette .search-palette__scroll {
  background: var(--site-surface-gradient) !important;
}

/* Mobil alt menü — orta FAB (sidebar toggle) */
.site-bottom-nav {
  overflow: visible;
}

.site-bottom-nav .bottom-nav-center {
  position: relative;
  z-index: 2;
  align-self: stretch;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--site-accent-bright);
  transition: color 0.15s ease;
}

.site-bottom-nav .bottom-nav-center__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-top: -0.875rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--site-accent) 42%, transparent);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--site-accent) 32%, transparent) 0%,
    color-mix(in srgb, var(--site-accent) 16%, transparent) 100%
  );
  box-shadow:
    0 6px 18px color-mix(in srgb, var(--site-accent) 28%, transparent),
    0 2px 6px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-0.125rem);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    margin-top 0.15s ease;
}

.site-bottom-nav .bottom-nav-center:hover {
  color: color-mix(in srgb, var(--site-accent-bright) 88%, #fff);
}

.site-bottom-nav .bottom-nav-center:hover .bottom-nav-center__icon {
  margin-top: -1rem;
  border-color: color-mix(in srgb, var(--site-accent-bright) 55%, transparent);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--site-accent) 40%, transparent) 0%,
    color-mix(in srgb, var(--site-accent) 22%, transparent) 100%
  );
  box-shadow:
    0 8px 22px color-mix(in srgb, var(--site-accent) 34%, transparent),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-0.25rem);
}

.site-bottom-nav .bottom-nav-center:active .bottom-nav-center__icon {
  margin-top: -0.75rem;
  transform: translateY(0) scale(0.94);
}

.site-bottom-nav .bottom-nav-center__label {
  color: var(--site-text-muted);
}

.site-bottom-nav .bottom-nav-center:hover .bottom-nav-center__label {
  color: color-mix(in srgb, var(--site-text) 88%, var(--site-text-muted));
}

.bottom-nav-menu-icon {
  width: 1.375rem;
  height: 1.375rem;
}

[data-theme="light"] .site-bottom-nav .bottom-nav-center {
  color: var(--site-accent);
}

[data-theme="light"] .site-bottom-nav .bottom-nav-center__icon {
  border-color: color-mix(in srgb, var(--site-accent) 34%, transparent);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--site-accent) 14%, transparent) 0%,
    color-mix(in srgb, var(--site-accent) 6%, transparent) 100%
  );
  box-shadow: 0 4px 12px color-mix(in srgb, var(--site-accent) 14%, transparent);
}

[data-theme="light"] .site-bottom-nav .bottom-nav-center:hover {
  color: color-mix(in srgb, var(--site-accent) 82%, #000);
}

[data-theme="light"] .site-bottom-nav .bottom-nav-center:hover .bottom-nav-center__icon {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--site-accent) 20%, transparent) 0%,
    color-mix(in srgb, var(--site-accent) 10%, transparent) 100%
  );
}

[data-theme="light"] .site-bottom-nav .bottom-nav-center__label {
  color: var(--site-text-soft);
}

[data-theme="light"] .site-bottom-nav .bottom-nav-center:hover .bottom-nav-center__label {
  color: var(--site-text);
}
