/* =========================
   PREMIUM NAVBAR
========================= */

.header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  transition: min-height 0.3s ease;
}

.header.scrolled .header-inner {
  min-height: 62px;
}

/* LOGO */
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #111;
  white-space: nowrap;
}

/* NAV */
.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #111;
}

.navbar a.active {
  color: #111;
  font-weight: 600;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

/* ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-btn,
.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid #e7e7e7;
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover,
.search-btn.is-open,
.menu-toggle:hover,
.menu-toggle.is-open {
  background: #111;
  color: #fff;
  border-color: #111;
}

.search-btn svg,
.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.search-btn svg {
  transition: transform 0.3s ease;
}

.search-btn.is-open svg {
  transform: scale(1.08) rotate(-8deg);
}

.menu-toggle svg path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.32s ease, opacity 0.22s ease;
}

.menu-toggle.is-open svg path:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.is-open svg path:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.35);
}

.menu-toggle.is-open svg path:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* MOBILE TOGGLE */
.menu-toggle {
  display: none;
}

/* MOBILE PANEL */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0 22px;
  border-top: 1px solid #f0f0f0;
}

.mobile-menu a {
  font-size: 15px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  opacity: 1;
}

.mobile-menu a.active {
  font-weight: 700;
}

/* SEARCH BOX */
.search-box {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.3s ease, visibility 0.24s ease, box-shadow 0.3s ease;
  z-index: 1100;
}

.search-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.header-right.search-open .search-box,
.header .search-box.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto;
}

.search-box input {
  width: 100%;
  height: 44px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  transform: translateY(4px);
  transition: border-color 0.25s ease, transform 0.28s ease;
}

.search-box.active input {
  transform: translateY(0);
}

.header-right.search-open .search-box input {
  transform: translateY(0);
}

.search-box input:focus {
  border-color: #111;
}

.header-right {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .navbar {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 64px;
  }

  .navbar {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: flex;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: max-height 0.38s ease, opacity 0.26s ease, padding 0.32s ease, transform 0.32s ease;
  }

  .mobile-menu.show {
    max-height: min(360px, calc(100vh - 72px));
    opacity: 1;
    padding-top: 14px;
    padding-bottom: 20px;
    transform: translateY(0);
    pointer-events: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 4px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.24s ease, transform 0.28s ease, color 0.25s ease;
  }

  .mobile-menu.show a {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu.show a:nth-child(1) {
    transition-delay: 0.04s;
  }

  .mobile-menu.show a:nth-child(2) {
    transition-delay: 0.08s;
  }

  .mobile-menu.show a:nth-child(3) {
    transition-delay: 0.12s;
  }

  .mobile-menu.show a:nth-child(4) {
    transition-delay: 0.16s;
  }

  .mobile-menu.show a:nth-child(5) {
    transition-delay: 0.2s;
  }

  .mobile-menu a:hover {
    color: #000;
  }

  .search-box {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    width: auto;
    max-width: none;
    transform-origin: top center;
  }

  .search-box input {
    font-size: 16px;
  }

  .logo {
    font-size: 20px;
    letter-spacing: 3px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 10px;
  }

  .header-actions,
  .header-right {
    gap: 8px;
  }

  .search-btn,
  .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .search-box {
    right: 12px;
    left: 12px;
  }
}
/* =========================
LOGO IMAGE
========================= */

.logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo a {
  display: block;
}

/* hover küçük premium efekt */
.logo img {
  transition: 0.3s ease;
}

/* .logo img:hover {
  transform: scale(1.03);
} */

/* responsive */
@media (max-width: 1024px) {
  .logo img {
    height: 30px;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 26px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 22px;
  }
}
