
/* ============================================================
   Site geneli birleşik header (tüm sayfalarda aynı)
   ============================================================ */

:root {
  --izci-header-height: 72px;
  --izci-header-bg-solid: #ffffff;
  --izci-header-bg-hero-top: #ffffff;
  --izci-header-bg-scroll: #ffffff;
}

body.dogus-layout main {
  margin-top: 0 !important;
}

body.dogus-layout:not(.has-hero):not(:has(.page-hero-dogus, .dogus-hero)) main,
body.dogus-layout.home-wide main {
  padding-top: calc(var(--izci-header-height) + env(safe-area-inset-top, 0px)) !important;
}

body.dogus-layout.has-hero main,
body.dogus-layout:has(.page-hero-dogus, .dogus-hero) main {
  padding-top: 0 !important;
}

body.dogus-layout .site-header.dogus-header,
body.dogus-layout .site-header.dogus-header.is-solid,
body.dogus-layout .site-header.dogus-header.is-header-unified,
body.dogus-layout:not(.has-hero):not(:has(.page-hero-dogus, .dogus-hero)):not(.home-wide) .site-header.dogus-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000 !important;
  transform: none !important;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

body.dogus-layout .site-header.dogus-header.is-solid,
body.dogus-layout .site-header.dogus-header.is-header-unified,
body.dogus-layout:not(.has-hero):not(:has(.page-hero-dogus, .dogus-hero)):not(.home-wide) .site-header.dogus-header,
body.dogus-layout.has-hero .site-header.dogus-header.is-hero-header:not(.is-scrolled),
body.dogus-layout.home-wide .site-header.dogus-header.is-hero-header:not(.is-scrolled),
body.dogus-layout:has(.page-hero-dogus, .dogus-hero) .site-header.dogus-header:not(.is-scrolled) {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.dogus-layout.has-hero .site-header.dogus-header.is-hero-header.is-scrolled:not(.is-solid),
body.dogus-layout.home-wide .site-header.dogus-header.is-hero-header.is-scrolled:not(.is-solid),
body.dogus-layout:has(.page-hero-dogus, .dogus-hero) .site-header.dogus-header.is-scrolled:not(.is-solid) {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.dogus-layout.has-hero .site-header.dogus-header.is-hero-header.is-scrolled:not(.is-solid) .dogus-header-bar .logo,
body.dogus-layout.home-wide .site-header.dogus-header.is-hero-header.is-scrolled:not(.is-solid) .dogus-header-bar .logo,
body.dogus-layout:has(.page-hero-dogus, .dogus-hero) .site-header.dogus-header.is-scrolled:not(.is-solid) .dogus-header-bar .logo,
body.dogus-layout.has-hero .site-header.dogus-header.is-hero-header.is-scrolled:not(.is-solid) .dogus-header-actions,
body.dogus-layout.home-wide .site-header.dogus-header.is-hero-header.is-scrolled:not(.is-solid) .dogus-header-actions,
body.dogus-layout:has(.page-hero-dogus, .dogus-hero) .site-header.dogus-header.is-scrolled:not(.is-solid) .dogus-header-actions {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

body.dogus-layout .dogus-header-bar {
  height: 72px;
  max-width: 100%;
  padding: 0 70px !important;
  margin: 0;
}

body.dogus-layout .dogus-header-bar .logo {
  margin-left: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

body.dogus-layout .dogus-logo-img {
  height: 48px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  background: transparent !important;
}

body.dogus-layout .dogus-header-actions .dogus-lang-quick,
body.dogus-layout .dogus-header-actions .dogus-header-search,
body.dogus-layout .dogus-header-actions .dogus-header-invest-btn {
  color: #000000 !important;
  border-left-color: rgba(0, 0, 0, 0.1) !important;
}

body.dogus-layout .dogus-menu-btn {
  color: #111 !important;
  border-left-color: rgba(0, 0, 0, 0.1) !important;
}

body.dogus-layout .dogus-menu-btn-lines span {
  background: #111 !important;
}

/* Header araçları — tıklama sonrası yeşil focus halkası olmasın */
body.dogus-layout .dogus-header-actions :is(
  .dogus-menu-btn,
  .dogus-header-search,
  .dogus-lang-quick,
  .dogus-header-invest-btn
):focus,
body.dogus-layout .dogus-header-actions :is(
  .dogus-menu-btn,
  .dogus-header-search,
  .dogus-lang-quick,
  .dogus-header-invest-btn
):focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

body.dogus-layout .dogus-header-actions {
  border-left: none !important;
  padding-left: 0 !important;
  margin-right: 0 !important;
}

/* TR solundaki ayirici: hero ustunde de gorunur kalsin */
body.dogus-layout .dogus-header-actions > .dogus-lang-quick {
  border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
}

body.dogus-layout .site-header.dogus-header.is-hero-header:not(.is-scrolled) .dogus-header-actions > .dogus-lang-quick,
body.dogus-layout.home-wide .site-header.dogus-header.is-hero-header:not(.is-scrolled) .dogus-header-actions > .dogus-lang-quick {
  border-left-color: rgba(0, 0, 0, 0.12) !important;
}

.dogus-header-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.35rem;
}

.dogus-header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dogus-header-social-link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.dogus-header-social-link--linkedin,
.dogus-header-social-link--instagram {
  color: #111;
  background: transparent;
  border-color: transparent;
}

.site-header.dogus-header.is-solid .dogus-header-social-link,
.site-header.dogus-header.is-scrolled .dogus-header-social-link,
.site-header.dogus-header.is-hero-header .dogus-header-social-link,
body.dogus-layout:not(.has-hero) .dogus-header-social-link {
  color: #000000;
}

.site-header.dogus-header:not(.is-solid):not(.is-scrolled):not(.is-hero-header) .dogus-header-social-link {
  color: #fff;
}

.dogus-header-social-link--linkedin:hover,
.dogus-header-social-link--linkedin:focus-visible,
.dogus-header-social-link--instagram:hover,
.dogus-header-social-link--instagram:focus-visible {
  color: #fff;
  background: var(--izci-green-dark, #006400);
  border-color: transparent;
  transform: none;
}

.dogus-header-nav {
  display: none;
  align-items: center;
  flex: 1;
  justify-content: center;
  padding: 0 1rem;
}

.dogus-header-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(0.25rem, 1.2vw, 1rem);
  align-items: center;
  justify-content: center;
}

.dogus-header-nav-item {
  position: relative;
}

.dogus-header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #6b6b6b;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}

.dogus-header-nav-link:hover,
.dogus-header-nav-item.is-active > .dogus-header-nav-link {
  color: #111;
}

.dogus-header-nav-item.has-dropdown:hover > .dogus-header-nav-link,
.dogus-header-nav-item.has-dropdown:focus-within > .dogus-header-nav-link {
  color: var(--accent);
}

.dogus-header-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.15rem;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dogus-header-nav-link--has-dropdown {
  gap: 0.35rem;
}

.dogus-header-nav-item.has-dropdown:hover .dogus-header-nav-chevron,
.dogus-header-nav-item.has-dropdown:focus-within .dogus-header-nav-chevron {
  opacity: 1;
  transform: rotate(180deg);
}

/* Hover köprüsü — menü ile alt kategori arasında boşluk kalmaması için */
.dogus-header-nav-item.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 399;
}

.dogus-header-nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 400;
  list-style: none;
}

.dogus-header-nav-item:hover .dogus-header-nav-dropdown,
.dogus-header-nav-item:focus-within .dogus-header-nav-dropdown,
.dogus-header-nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dogus-header-nav-dropdown a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.dogus-header-nav-dropdown a:hover {
  color: var(--primary);
  background: rgba(70, 155, 55, 0.06);
}

.dogus-header-nav-dropdown .dogus-nav-see-all-item {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.dogus-header-nav-see-all {
  font-weight: 600 !important;
  color: var(--primary) !important;
}

.dogus-header-nav-see-all:hover {
  color: var(--primary-dark) !important;
  background: rgba(70, 155, 55, 0.08) !important;
}

.dogus-header-invest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 3.25rem;
  height: 100%;
  padding: 0 1rem;
  margin: 0;
  background: transparent;
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: none;
  text-decoration: none;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0;
  font-family: inherit;
  transition: background 0.24s ease, color 0.24s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.dogus-header-invest-btn:focus {
  background: transparent;
  color: #111;
  outline: none;
}

.dogus-header-invest-btn:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .dogus-header-invest-btn:hover {
    background: var(--primary-dark);
    color: #fff;
  }

  body.dogus-layout .dogus-header-actions .dogus-lang-quick:hover,
  body.dogus-layout .dogus-header-actions .dogus-header-search:hover,
  body.dogus-layout .dogus-header-actions .dogus-header-invest-btn:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
  }
}

.dogus-header-invest-btn:active {
  background: var(--primary-dark);
  color: #fff;
}

/* Tum ekranlarda: orta navbar yok, sag drawer menu */
.dogus-header-nav {
  display: none !important;
}

body.dogus-layout .dogus-header-bar {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

body.dogus-layout .dogus-header-actions .dogus-header-invest-btn {
  display: inline-flex !important;
}

.dogus-menu-btn {
  display: inline-flex !important;
}

@media (min-width: 1100px) {
  body.dogus-layout .dogus-header-bar .logo {
    flex: 0 0 auto;
    max-width: min(220px, 52vw);
    margin-right: auto;
  }

  body.dogus-layout .dogus-header-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .dogus-menu-btn {
    min-width: auto;
    padding: 0 1rem !important;
  }

  .dogus-menu-btn > span:last-child {
    display: inline !important;
  }
}

@media (max-width: 1099px) {
  body.dogus-layout .dogus-header-bar {
    justify-content: space-between;
    align-items: center;
    padding: 0 max(1.25rem, env(safe-area-inset-right)) 0 max(1.25rem, env(safe-area-inset-left)) !important;
    gap: 0.75rem;
  }

  body.dogus-layout .dogus-header-actions .dogus-header-social {
    display: none !important;
  }

  body.dogus-layout .dogus-header-bar .logo {
    flex: 0 0 auto;
    max-width: min(180px, 42vw);
    margin-right: auto;
  }

  body.dogus-layout .dogus-header-actions {
    flex: 0 0 auto;
    margin-left: 0;
    gap: 0;
  }

  .dogus-menu-btn {
    display: inline-flex !important;
    border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    justify-content: center;
  }

  .dogus-menu-btn > span:last-child {
    display: none;
  }

  body.dogus-layout .dogus-header-actions .dogus-header-invest-btn {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    padding: 0 0.65rem;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  body.dogus-layout .dogus-header-actions .dogus-header-invest-btn {
    display: inline-flex !important;
    font-size: 0.52rem;
    letter-spacing: 0.05em;
    padding: 0 0.45rem !important;
    min-width: auto;
    max-width: 4.6rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    border-left: 1px solid rgba(0, 0, 0, 0.12) !important;
  }

  body.dogus-layout .dogus-header-bar .logo {
    max-width: min(128px, 34vw);
  }
}

@media (max-width: 420px) {
  body.dogus-layout .dogus-header-bar .logo {
    max-width: min(150px, 38vw);
  }
}

/* Mobil cekmece — yalnizca dar ekranlarda tum panel kayar */
@media (max-width: 900px) {
  body.dogus-layout .dogus-fullmenu {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  body.dogus-layout .dogus-nav-horizontal,
  body.dogus-layout .dogus-nav-main {
    flex: 0 0 auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  body.dogus-layout .dogus-nav-item {
    overflow: visible !important;
  }

  body.dogus-layout .dogus-nav-toggle {
    touch-action: manipulation;
  }
}

@media (max-width: 768px) {
  :root {
    --izci-header-height: 64px;
  }

  body.dogus-layout .dogus-header-bar {
    height: var(--izci-header-height) !important;
    padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.75rem, env(safe-area-inset-right)) !important;
  }

  body.dogus-layout.home-wide main {
    padding-top: calc(var(--izci-header-height) + env(safe-area-inset-top, 0px)) !important;
  }
}
