/* Duran Doğan — ortak header (Next.js ile aynı) */
#dd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.5s, padding 0.5s, box-shadow 0.5s;
  background: linear-gradient(to bottom, rgba(136, 39, 49, 0.9), transparent);
  padding: 18px 0;
}

#dd-header.is-scrolled {
  background: rgba(136, 39, 49, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  padding: 14px 0;
}

#dd-header .dd-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
  overflow: visible;
}

@media (min-width: 1024px) {
  #dd-header .dd-header__inner {
    padding: 0 32px;
    gap: 16px;
  }
}

#dd-header .dd-header__logo img {
  height: 40px;
  width: auto;
  display: block;
}

@media (min-width: 1024px) {
  #dd-header .dd-header__logo img {
    height: 48px;
  }
}

#dd-header .dd-header__nav {
  display: none;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  overflow: visible;
  padding: 0 4px;
}

@media (min-width: 1280px) {
  #dd-header .dd-header__nav {
    display: flex;
  }
}

#dd-header .dd-header__cta {
  display: none;
  flex-shrink: 0;
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: 0.2s;
}

@media (min-width: 1280px) {
  #dd-header .dd-header__cta {
    display: inline-flex;
  }
}

#dd-header .dd-header__cta:hover {
  background: #fff;
  color: #882731;
  border-color: #fff;
}

#dd-header .dd-header__toggle {
  margin-left: auto;
  flex-shrink: 0;
  padding: 8px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 0;
}

@media (min-width: 1280px) {
  #dd-header .dd-header__toggle {
    display: none;
  }
}

#dd-header .dd-nav__item {
  position: relative;
  z-index: 10;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 1280px) {
  #dd-header .dd-nav__item {
    font-size: 14px;
    font-weight: 700;
  }
}

#dd-header .dd-nav__item:hover,
#dd-header .dd-nav__item:focus-within {
  z-index: 200;
  color: #fff;
}

#dd-header .dd-nav__item > a,
#dd-header .dd-nav__item > span.dd-nav__label {
  color: inherit;
  text-decoration: none;
}

#dd-header .dd-nav__trigger {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: default;
  color: inherit;
}

#dd-header .dd-nav__chevron {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.2s;
}

#dd-header .dd-nav__item:hover .dd-nav__chevron,
#dd-header .dd-nav__item:focus-within .dd-nav__chevron {
  transform: rotate(180deg);
}

#dd-header .dd-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding-top: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 200;
}

#dd-header .dd-nav__item:hover .dd-nav__dropdown,
#dd-header .dd-nav__item:focus-within .dd-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
}

#dd-header .dd-nav__dropdown ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #0b0d26;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

#dd-header .dd-nav__dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: 0.15s;
}

#dd-header .dd-nav__dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

#dd-header .dd-header__mobile {
  display: none;
  max-height: 80vh;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #882731;
  padding: 8px 24px 16px;
}

#dd-header.is-mobile-open .dd-header__mobile {
  display: block;
}

@media (min-width: 1280px) {
  #dd-header .dd-header__mobile {
    display: none !important;
  }
}

#dd-header .dd-mobile__row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#dd-header .dd-mobile__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

#dd-header .dd-mobile__link {
  display: block;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-decoration: none;
}

#dd-header .dd-mobile__sub {
  display: none;
  list-style: none;
  margin: 0 0 12px;
  padding: 0 0 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#dd-header .dd-mobile__row.is-open .dd-mobile__sub {
  display: block;
}

#dd-header .dd-mobile__sub a {
  display: block;
  padding: 8px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

#dd-header .dd-mobile__sub a:hover {
  color: #fff;
}

#dd-header .dd-mobile__cta {
  display: block;
  margin: 16px 0;
  padding: 12px;
  text-align: center;
  background: #fff;
  color: #882731;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
}

/* WP: sabit header altında içerik boşluğu (tam ekran hero hariç) */
body.dd-has-dd-header:not(.dd-front-hero) {
  padding-top: 88px;
}

/* Eski tema header'ını gizlemek için (isteğe bağlı sınıf) */
body.dd-use-custom-header .top_panel,
body.dd-use-custom-header header.site-header {
  display: none !important;
}
