/* Ust bar, marka, hamburger menu, nav ve dropdown, nav rozetleri */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0.75rem;
}

.brand {
  display: block;
  justify-content: center;
  text-align: center;
}

.brand-title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: background 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle.is-open span {
  background: transparent;
}

.menu-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 0.9rem;
  font-size: clamp(0.78rem, 0.85vw, 0.9rem);
  font-weight: 600;
}

nav a,
nav .dropbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.62rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav .dropdown:hover .dropbtn {
  background: #eef4ff;
  color: var(--blue);
}

nav .dropdown {
  position: relative;
  z-index: 30;
}

nav .dropdown:hover,
nav .dropdown:focus-within {
  z-index: 40;
}

nav .dropdown::before {
  content: "";
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: min(220px, calc(100vw - 2rem));
  height: 0.65rem;
  z-index: 31;
}

nav .dropdown:hover::before,
nav .dropdown:focus-within::before {
  display: block;
}

nav .dropbtn::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.35rem;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transform-origin: center;
}

nav .dropdown-content {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  display: none;
  min-width: 220px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 32;
}

nav .dropdown:hover .dropdown-content,
nav .dropdown:focus-within .dropdown-content {
  display: block;
}

nav .dropdown-content a {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-badge,
.nav-volunteer {
  min-height: 40px;
  padding: 0.55rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.nav-badge {
  border-color: rgba(23, 78, 166, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  color: #174ea6;
}

.nav-badge:hover {
  border-color: rgba(23, 78, 166, 0.32);
  background: #eaf1ff;
  color: #103b80;
  transform: translateY(-1px);
}

.nav-badge.italic {
  border-color: rgba(31, 77, 67, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #eef6f2 100%);
  color: var(--forest);
  font-style: normal;
}

.nav-badge.italic:hover {
  border-color: rgba(31, 77, 67, 0.35);
  background: #e5f1eb;
  color: var(--deep);
}

.nav-volunteer {
  background: #101828;
  color: var(--white);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.18);
}

.nav-volunteer:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(23, 78, 166, 0.2);
}
