/* Ulukat Tema · Header · v0.3.0 */

.uhn-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 41px; pointer-events: none; }

.uhn {
  position: fixed; top: 0; left: 0; width: 100%; z-index: var(--z-header);
  padding: 34px 0 18px;
  font-family: var(--ul-font);
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.uhn.uhn-scrolled {
  padding: 14px 0; background: rgba(18, 16, 14, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px -14px rgba(0, 0, 0, .6); border-bottom: 1px solid rgba(197, 160, 89, .16);
}
.uhn-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 30px;
  display: flex; align-items: center; gap: 26px;
}

/* ── LOGO ── */
.uhn-logo { flex: 0 0 auto; display: block; line-height: 0; border-radius: 6px; }
.uhn-logo img {
  display: block; height: 150px; width: auto; transition: height .3s ease;
  filter: brightness(0) invert(1) drop-shadow(0 4px 16px rgba(0, 0, 0, .5));
}
.uhn.uhn-scrolled .uhn-logo img { height: 96px; }

/* ── NAV PILL ── */
.uhn-nav {
  flex: 1 1 auto; display: flex; align-items: center;
  background: #fff; border-radius: 999px; padding: 15px 15px 15px 48px;
  box-shadow: 0 16px 48px -16px rgba(0, 0, 0, .5);
}
.uhn-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.uhn-menu > li { position: relative; display: flex; align-items: center; gap: 16px; padding: 0 6px; }
.uhn-menu > li::before { content: ""; width: 26px; height: 1px; background: rgba(20, 18, 16, .26); }

.uhn-menu > li > a,
.uhn-menu > li > button {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0; border: 0; background: none; cursor: pointer;
  color: #211d18; text-decoration: none; font: 600 17px/28px var(--ul-font); letter-spacing: .2px;
  padding: 12px 6px; white-space: nowrap; transition: color .25s ease;
}
.uhn-menu > li.is-current > a,
.uhn-menu > li.is-current > button { color: #8A6A2C; }
.uhn-menu > li > a:hover,
.uhn-menu > li > button:hover { color: var(--ul-gold); }
.uhn-caret { font-size: 11px; opacity: .85; transition: transform .25s ease; }
.uhn-has:hover .uhn-caret,
.uhn-has:focus-within .uhn-caret,
.uhn-has.is-open .uhn-caret { transform: rotate(180deg); }

/* ── DROPDOWN ── */
.uhn-drop {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 240px; background: #fff; border-radius: 14px; padding: 10px; list-style: none; margin: 0;
  box-shadow: 0 26px 55px -18px rgba(0, 0, 0, .5); opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s; z-index: 5;
}
.uhn-drop::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.uhn-drop--2 { display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); column-gap: 4px; min-width: 470px; }
.uhn-has.is-dismissed:not(.is-open):not(:hover) .uhn-drop { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px); }
.uhn-has.is-dismissed:not(.is-open):not(:hover) .uhn-caret { transform: none; }
.uhn-has:hover .uhn-drop,
.uhn-has:focus-within .uhn-drop,
.uhn-has.is-open .uhn-drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.uhn-drop li a {
  display: block; padding: 11px 16px; border-radius: 9px; text-decoration: none;
  color: #2a251f; font: 500 14.5px/1.5 var(--ul-font); transition: background .2s ease, color .2s ease, padding .2s ease;
}
.uhn-drop li a:hover,
.uhn-drop li a[aria-current="page"] { background: rgba(197, 160, 89, .12); color: var(--ul-gold); padding-left: 22px; }

/* ── CTA ── */
.uhn-cta {
  margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 12px;
  background: var(--ul-dark); color: #fff; text-decoration: none;
  padding: 17px 34px; border-radius: 999px; font: 700 16.5px/28px var(--ul-font); white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.uhn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .55); color: #fff; }
.uhn-cta:active { transform: translateY(0); }
.uhn-dot { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: uhn-pulse 1.8s infinite; }
@keyframes uhn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── SCROLLED (ince pill) ── */
@media (min-width: 1101px) {
  .uhn-nav,
  .uhn-menu > li > a,
  .uhn-menu > li > button { transition: padding .3s ease, color .25s ease; }
  .uhn-cta { transition: transform .2s ease, box-shadow .2s ease, padding .3s ease; }
  .uhn.uhn-scrolled .uhn-nav { padding: 8px 8px 8px 44px; }
  .uhn.uhn-scrolled .uhn-menu > li > a,
  .uhn.uhn-scrolled .uhn-menu > li > button { padding-top: 8px; padding-bottom: 8px; }
  .uhn.uhn-scrolled .uhn-cta { padding: 12px 30px; }
}

/* ── FOCUS ── */
.uhn a:focus-visible,
.uhn button:focus-visible { outline: 2px solid var(--ul-gold); outline-offset: 3px; border-radius: 8px; }
.uhn-cta:focus-visible { border-radius: 999px; }

/* ── BURGER ── */
.uhn-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; min-width: 44px; min-height: 44px; margin-left: auto; }
.uhn-burger span { width: 28px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.uhn.uhn-open .uhn-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.uhn.uhn-open .uhn-burger span:nth-child(2) { opacity: 0; }
.uhn.uhn-open .uhn-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBİL ── */
@media (max-width: 1100px) {
  .uhn-burger { display: flex; position: relative; z-index: 2; }
  .uhn-nav {
    position: fixed; top: 0; right: 0; width: min(360px, 88vw); height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; border-radius: 0; padding: 100px 22px 30px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    background: #141210; box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .7); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), visibility .35s;
  }
  .uhn.uhn-open .uhn-nav { transform: none; visibility: visible; }
  .uhn-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .uhn-menu > li { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .uhn-menu > li::before { display: none; }
  .uhn-menu > li > a,
  .uhn-menu > li > button { width: 100%; color: #f2ede4; justify-content: space-between; padding: 16px 4px; font-size: 16px; text-align: left; }
  .uhn-caret {
    position: relative; flex: none; width: 22px; height: 22px; margin-right: 2px;
    font-size: 0; opacity: 1; color: rgba(242, 237, 228, .72); transition: transform .3s cubic-bezier(.22, 1, .36, 1), color .25s ease;
  }
  .uhn-caret::before,
  .uhn-caret::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
    border-radius: 1px; background: currentColor; transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  }
  .uhn-caret::after { transform: rotate(90deg); }
  .uhn-has:hover .uhn-caret,
  .uhn-has:focus-within .uhn-caret { transform: none; }
  .uhn-has.is-open .uhn-caret { transform: rotate(180deg); color: var(--ul-gold); }
  .uhn-has.is-open .uhn-caret::after { transform: rotate(90deg) scaleX(0); }
  .uhn-drop {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: transparent;
    min-width: 0; padding: 0 0 8px; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .uhn-drop::before { display: none; }
  .uhn-has:hover .uhn-drop,
  .uhn-has:focus-within .uhn-drop { transform: none; }
  .uhn-has.is-open .uhn-drop { max-height: 560px; transform: none; }
  .uhn-drop--2 { display: block; min-width: 0; }
  .uhn-has.is-open .uhn-drop--2 { max-height: 900px; }
  .uhn-drop li a { color: #c9c2b6; padding: 10px 14px; }
  .uhn-drop li a:hover,
  .uhn-drop li a[aria-current="page"] { background: rgba(197, 160, 89, .14); color: var(--ul-gold); }
  .uhn-menu > li.is-current > a,
  .uhn-menu > li.is-current > button { color: var(--ul-gold); }
  .uhn-cta { margin: 22px 0 0; justify-content: center; background: var(--ul-gold); color: #141210; }
  .uhn-cta:hover { color: #141210; }
}

/* ── ARA GENİŞLİKLER ── */
@media (min-width: 1101px) and (max-width: 1599px) {
  .uhn-inner { gap: 20px; padding: 0 24px; }
  .uhn-nav { padding-left: 30px; }
  .uhn-menu { gap: 2px; }
  .uhn-menu > li { gap: 10px; padding: 0 4px; }
  .uhn-menu > li::before { width: 14px; }
  .uhn-menu > li > a,
  .uhn-menu > li > button { font-size: 16px; padding-left: 4px; padding-right: 4px; }
  .uhn-cta { padding: 16px 24px; gap: 10px; font-size: 15.5px; }
  .uhn.uhn-scrolled .uhn-nav { padding-left: 26px; }
  .uhn.uhn-scrolled .uhn-cta { padding: 12px 22px; }
}
@media (min-width: 1101px) and (max-width: 1439px) {
  .uhn-menu > li { gap: 8px; padding: 0 3px; }
  .uhn-menu > li::before { width: 10px; }
  .uhn-menu > li > a,
  .uhn-menu > li > button { font-size: 15px; padding-left: 3px; padding-right: 3px; }
  .uhn-cta { padding: 14px 20px; font-size: 15px; }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  .uhn-inner { gap: 14px; padding: 0 18px; }
  .uhn-nav { padding-left: 20px; }
  .uhn-menu > li { gap: 0; padding: 0 2px; }
  .uhn-menu > li::before { display: none; }
  .uhn-menu > li > a,
  .uhn-menu > li > button { font-size: 14.5px; padding-left: 5px; padding-right: 5px; }
  .uhn-cta { padding: 12px 16px; gap: 8px; font-size: 14.5px; }
  .uhn.uhn-scrolled .uhn-nav { padding-left: 18px; }
  .uhn.uhn-scrolled .uhn-cta { padding: 10px 16px; }
}
