/* Haluk Özyurt – yeni menü sistemi (tüm sınıflar hz- ile başlar) */
:root {
  --hz-navy: #0f172a;
  --hz-ink: #1e293b;
  --hz-muted: #64748b;
  --hz-line: #e2e8f0;
  --hz-soft: #f1f5f9;
  --hz-accent: #2563eb;
  --hz-accent-soft: #e8f0fe;
  --hz-top-h: 36px;
  --hz-bar-h: 64px;
}

/* ---------- Sabit header: üst çubuk kayar, ana çubuk yapışır ---------- */
.hz-header {
  position: sticky;
  top: calc(var(--hz-top-h) * -1);
  z-index: 1030;
  margin-bottom: 10px;
  background: #fff;
}

.hz-top {
  height: var(--hz-top-h);
  background: var(--hz-navy);
  font-size: 13px;
  color: #cbd5e1;
}

.hz-top-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hz-top a,
.hz-lang {
  color: #cbd5e1;
  text-decoration: none;
}

.hz-top a:hover,
.hz-lang:hover {
  color: #fff;
}

.hz-wa {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.hz-lang {
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.hz-lang img {
  border-radius: 2px;
  object-fit: cover;
}

.hz-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

.hz-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hz-soc {
  font-size: 15px;
}

.hz-bottom {
  background: #fff;
  border-bottom: 1px solid var(--hz-line);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.05);
}

.hz-bottom-inner {
  position: relative;
  min-height: var(--hz-bar-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.hz-logo img {
  max-height: 44px;
  width: auto;
  display: block;
}

.hz-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Butonlar ---------- */
.hz-btn {
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s, color 0.15s;
  cursor: pointer;
  border: 0;
  display: inline-flex;
}

.hz-btn-solid {
  background: var(--hz-accent);
  color: #fff;
}

.hz-btn-solid:hover {
  background: #1d4ed8;
  color: #fff;
}

.hz-btn-ghost {
  color: var(--hz-ink);
}

.hz-btn-ghost:hover {
  background: var(--hz-soft);
  color: var(--hz-ink);
}

.hz-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--hz-muted);
  cursor: pointer;
}

.hz-icon-btn:hover {
  background: var(--hz-soft);
  color: var(--hz-ink);
}

.hz-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--hz-soft);
  color: var(--hz-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.hz-user i {
  color: var(--hz-accent);
}

/* ---------- Üst seviye liste ---------- */
.hz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.hz-item {
  position: static;
}

.hz-row {
  display: flex;
  align-items: center;
}

.hz-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--hz-bar-h);
  padding: 0 14px;
  color: var(--hz-ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.hz-caret-icon {
  font-size: 10px;
  color: var(--hz-muted);
  transition: transform 0.2s;
}

.hz-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--hz-accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.hz-item:hover > .hz-row > .hz-link,
.hz-item.is-open > .hz-row > .hz-link,
.hz-item.is-current > .hz-row > .hz-link {
  color: var(--hz-accent);
}

.hz-item.is-current > .hz-row > .hz-link::after,
.hz-item.is-open > .hz-row > .hz-link::after {
  transform: scaleX(1);
}

.hz-toggle {
  display: none;
}

.hz-backdrop,
.hz-nav-head,
.hz-nav-foot {
  display: none;
}

/* Desktop user dropdown: tam isimle göster */
@media (min-width: 992px) {
  .hz-user {
    display: inline-flex !important;
  }

  .hz-user.mobile-visible {
    display: none !important;
  }

  .hz-panel {
    position: absolute;
    top: 100%;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--hz-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.16s ease 0.08s, transform 0.16s ease 0.08s,
      visibility 0s linear 0.24s;
  }

  .hz-item:not(.is-mega) {
    position: relative;
  }

  .hz-item.is-mega .hz-panel {
    left: 0;
    right: 0;
  }

  .hz-drop {
    left: 0;
    min-width: 240px;
    padding: 8px;
  }

  @media (hover: hover) {
    .hz-item:hover > .hz-panel {
      opacity: 1;
      visibility: visible;
      transform: none;
      transition-delay: 0s;
    }

    .hz-item:hover > .hz-row > .hz-link .hz-caret-icon {
      transform: rotate(180deg);
    }
  }

  .hz-item.is-open > .hz-panel,
  .hz-item:focus-within > .hz-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  /* Basit açılır menü */
  .hz-drop ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .hz-drop a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--hz-ink);
    font-size: 14px;
    text-decoration: none;
  }

  .hz-drop a:hover {
    background: var(--hz-accent-soft);
    color: var(--hz-accent);
  }

  .hz-inline {
    margin: 0 0 4px 12px !important;
    padding-left: 8px !important;
    border-left: 2px solid var(--hz-line);
  }

  .hz-inline a {
    padding: 6px 10px;
    color: var(--hz-muted);
    font-size: 13px;
  }

  /* Mega menü: sol rail + sağ içerik */
  .hz-mega {
    display: block;
    padding: 0;
    overflow: hidden;
  }

  .hz-side {
    list-style: none;
    margin: 0;
    padding: 10px;
    width: 270px;
    min-height: 100%;
    background: var(--hz-soft);
  }

  .hz-side-item .hz-row {
    justify-content: space-between;
    padding-right: 10px;
    border-radius: 10px;
  }

  .hz-side-item > .hz-row > a {
    flex: 1;
    padding: 9px 12px;
    color: var(--hz-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  .hz-side-arrow {
    font-size: 10px;
    color: var(--hz-muted);
  }

  .hz-side-item.is-active > .hz-row {
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  }

  .hz-side-item.is-active > .hz-row > a,
  .hz-side-item.is-active .hz-side-arrow {
    color: var(--hz-accent);
  }

  .hz-side-item:not(.has-pane) > .hz-row:hover {
    background: #fff;
  }

  .hz-pane {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 270px;
    right: 0;
    padding: 22px 28px;
    overflow-y: auto;
  }

  .hz-side-item.is-active > .hz-pane {
    display: block;
  }

  .hz-pane-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--hz-line);
    color: var(--hz-navy);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
  }

  .hz-pane-title span {
    font-size: 13px;
    font-weight: 500;
    color: var(--hz-accent);
  }

  .hz-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 16px;
  }

  .hz-grid a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--hz-ink);
    font-size: 14px;
    text-decoration: none;
  }

  .hz-grid a:hover {
    background: var(--hz-accent-soft);
    color: var(--hz-accent);
  }
}

/* ---------- Mobil / tablet: yandan açılan panel + akordeon (< 992px) ---------- */
@media (max-width: 991.98px) {
  .hz-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    width: min(88vw, 360px);
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    display: flex;
    flex-direction: column;
  }

  .hz-nav.is-open {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }

  .hz-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .hz-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  body.hz-lock {
    overflow: hidden;
  }

  .hz-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hz-line);
  }

  .hz-nav-title {
    font-weight: 700;
    color: var(--hz-navy);
  }

  .hz-nav-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: var(--hz-soft);
    cursor: pointer;
  }

  .hz-nav-foot {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--hz-line);
  }

  .hz-nav-foot .hz-btn {
    flex: 1;
    border: 1px solid var(--hz-line);
  }

  .hz-nav-foot .hz-btn-solid {
    border-color: var(--hz-accent);
  }

  .hz-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
  }

  .hz-link {
    flex: 1;
    height: auto;
    padding: 14px 12px;
  }

  .hz-link::after,
  .hz-caret-icon {
    display: none;
  }

  .hz-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hz-muted);
    cursor: pointer;
  }

  .hz-toggle i {
    transition: transform 0.2s;
  }

  .is-open > .hz-row > .hz-toggle i {
    transform: rotate(180deg);
  }

  .hz-item {
    border-bottom: 1px solid var(--hz-line);
  }

  .hz-panel,
  .hz-pane {
    display: none;
  }

  .is-open > .hz-panel,
  .is-open > .hz-pane {
    display: block;
  }

  .hz-panel {
    padding: 0 0 10px 12px;
  }

  .hz-mega ul,
  .hz-drop ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .hz-side-item > .hz-row > a,
  .hz-drop a,
  .hz-grid a {
    display: block;
    padding: 10px 12px;
    color: var(--hz-ink);
    font-size: 14px;
    text-decoration: none;
  }

  .hz-side-item > .hz-row > a {
    flex: 1;
    font-weight: 600;
  }

  .hz-pane {
    padding: 0 0 6px 12px;
  }

  .hz-pane-title {
    display: none;
  }

  .hz-grid a,
  .hz-inline a {
    color: var(--hz-muted);
  }

  .hz-inline {
    margin: 0 0 0 12px;
    border-left: 2px solid var(--hz-line);
  }

  .hz-actions {
    gap: 6px;
  }

  .hz-burger {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--hz-soft);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
  }

  .hz-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--hz-ink);
  }

  /* Mobile user dropdown gizle, sadece hamburger göster */
  .hz-user {
    display: none !important;
  }

  .hz-user.mobile-visible {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--hz-soft);
    padding: 0;
    color: var(--hz-ink);
    text-decoration: none;
    font-size: 20px;
  }

  .hz-user.mobile-visible span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hz-panel,
  .hz-nav,
  .hz-backdrop,
  .hz-link::after,
  .hz-toggle i {
    transition: none !important;
  }
}

/* ---------- RTL Desteği (Arapça vb.) ---------- */
[dir="rtl"] .hz-actions {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .hz-item.is-mega .hz-panel {
  left: 0;
  right: 0;
}

[dir="rtl"] .hz-drop {
  left: auto;
  right: 0;
}

[dir="rtl"] .hz-pane {
  left: 0;
  right: 270px;
}

[dir="rtl"] .hz-side-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .hz-inline {
  margin: 0 12px 4px 0 !important;
  padding: 0 8px 0 0 !important;
  border-left: 0;
  border-right: 2px solid var(--hz-line);
}

@media (max-width: 991.98px) {
  [dir="rtl"] .hz-nav {
    right: auto;
    left: 0;
    transform: translateX(-100%);
  }

  [dir="rtl"] .hz-nav.is-open {
    transform: none;
  }

  [dir="rtl"] .hz-panel,
  [dir="rtl"] .hz-pane {
    padding: 0 12px 10px 0;
  }
}
