/* ============================================================
   TrTierlist — ORTAK NAVBAR STİLLERİ
   Oval (hap) yüzen navbar — tüm sayfalarda aynı görünüm.
   ============================================================ */

nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 6px 8px;
  height: 58px;
  width: min(920px, 94vw);
  border-radius: 999px;
  background: rgba(15, 10, 13, 0.82);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 22px 60px -22px rgba(0, 0, 0, 0.9);
  animation: navIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

@keyframes navIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-24px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* gradyan kenar çizgisi */
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(224, 64, 64, 0.55), rgba(255, 107, 74, 0.12) 45%, rgba(224, 64, 64, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

nav.scrolled {
  top: 8px;
  height: 50px;
  width: min(860px, 92vw);
  background: rgba(20, 12, 15, 0.92);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.95);
}
nav.scrolled .nav-logo { font-size: 16px; padding: 6px 12px; }
nav.scrolled .nav-links a { padding: 7px 12px; font-size: 12px; }
nav.scrolled .nav-cta { padding: 8px 16px; font-size: 11px; }

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.4px;
  color: var(--text, #faf3f3);
  text-decoration: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.35s ease;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}
.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.nav-ico svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(224, 64, 64, 0.45);
  transform: translateY(-1px);
}
.nav-links a.active {
  color: #fff;
  font-weight: 700;
  background: rgba(224, 64, 64, 0.14);
  border-color: rgba(224, 64, 64, 0.5);
  box-shadow: 0 6px 20px -10px rgba(224, 64, 64, 0.65);
}

/* navbar oyuncu arama */
.navbar-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.navbar-search:focus-within {
  border-color: rgba(224, 64, 64, 0.45);
  background: rgba(224, 64, 64, 0.07);
  box-shadow: 0 6px 20px -10px rgba(224, 64, 64, 0.55);
}
.navbar-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}
.navbar-search-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}
.navbar-search-input {
  width: 92px;
  background: none;
  border: none;
  outline: none;
  color: var(--text, #faf3f3);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
}
.navbar-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #e04242, #ff6a45);
  flex-shrink: 0;
  transition: all 0.25s;
  box-shadow: 0 8px 24px -8px rgba(224, 64, 64, 0.6);
}
.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -8px rgba(224, 64, 64, 0.75);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  z-index: 110;
  transition: all 0.2s;
}
.hamburger:hover { border-color: rgba(224, 64, 64, 0.45); background: rgba(224, 64, 64, 0.08); }
.hamburger span { display: block; width: 15px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 104;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.active { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  nav { animation: none; }
}

@media (max-width: 1024px) {
  .navbar-search { display: none; }
}

.nav-search-mobile { display: none; }
@media (max-width: 768px) {
  .nav-search-mobile { display: block; width: 100%; margin-bottom: 4px; }
  .nav-search-mobile .navbar-search {
    width: 100%;
    display: flex;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }
  .nav-search-mobile .navbar-search-input { width: auto; flex: 1; font-size: 13px; }
}

@media (max-width: 768px) {
  nav { width: 94vw; gap: 0.3rem; padding: 5px 6px; height: 52px; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(300px, 92vw);
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    max-height: 0;
    padding: 0 10px;
    overflow: hidden;
    background: rgba(16, 10, 13, 0.98);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(224, 64, 64, 0.2);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: max-height 0.35s ease, padding 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.active {
    max-height: 400px;
    padding: 10px;
    opacity: 1;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-align: center;
    transform: none;
  }
  .nav-links a:hover { background: rgba(224, 64, 64, 0.08); transform: none; }
  .nav-links a.active { background: rgba(224, 64, 64, 0.14); }
}

@media (max-width: 480px) {
  nav { width: 92vw; padding: 4px 6px; }
  .nav-logo { padding: 6px 10px; font-size: 15px; gap: 7px; }
}