/* ==================================================
   1. NAVBAR ANA YAPISI
================================================== */

#ana-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 80px;
  padding: 8px 24px;

  border-bottom: 1px solid rgba(22, 141, 255, 0.25);
  background:
    radial-gradient(
      circle at 8% 50%,
      rgba(22, 141, 255, 0.16),
      transparent 24%
    ),
    linear-gradient(90deg, #020817 0%, #051329 45%, #020817 100%);

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

/* Navbarın altında hareket eden renkli ışık çizgisi. */
#ana-navbar::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;

  height: 2px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    #0757b8 18%,
    #168dff 38%,
    #65ddff 50%,
    #168dff 62%,
    #0757b8 82%,
    transparent 100%
  );
  background-size: 200% 100%;

  opacity: 0.78;
  pointer-events: none;

  animation: navbar-isik-akisi 6s linear infinite;
}

/* ==================================================
   2. LOGO VE MARKA ALANI
================================================== */

#navbar-logo-baglantisi {
  display: flex;
  align-items: center;
  gap: 13px;

  min-width: 0;

  color: #ffffff;
  text-decoration: none;
}

#navbar-logo-gorseli {
  display: block;
  flex-shrink: 0;

  width: 58px;
  height: 58px;

  border-radius: 50%;
  object-fit: cover;

  transition:
    filter 180ms ease,
    transform 180ms ease;

  animation: navbar-logo-hareketi 4s ease-in-out infinite;
}

#navbar-marka-alani {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;

  padding-left: 14px;
}

/* Logo ile marka yazısı arasındaki dikey neon çizgi. */
#navbar-marka-alani::before {
  content: "";

  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;

  width: 2px;

  border-radius: 999px;
  background: linear-gradient(180deg, #55d9ff, #168dff, #0757b8);

  box-shadow:
    0 0 7px rgba(85, 217, 255, 0.6),
    0 0 12px rgba(22, 141, 255, 0.7);
}

#navbar-marka-basligi {
  color: #ffffff;

  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #cdeeff 35%,
    #55d9ff 70%,
    #ffffff 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;

  filter: drop-shadow(0 0 8px rgba(22, 141, 255, 0.4));
  animation: marka-yazi-isigi 5s linear infinite;
}

#navbar-marka-aciklamasi {
  color: #c8b4d4;

  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.8px;
}

#navbar-logo-baglantisi:hover #navbar-logo-gorseli {
  filter: brightness(1.13) drop-shadow(0 0 14px rgba(22, 141, 255, 0.9));
  transform: scale(1.06);
  animation-play-state: paused;
}

#navbar-logo-baglantisi:focus-visible {
  outline: 2px solid #55d9ff;
  outline-offset: 5px;
  border-radius: 8px;
}

/* ==================================================
   3. GİRİŞ VE KAYIT BUTONLARI
================================================== */

#navbar-uyelik-butonlari {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-uyelik-butonu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  height: 42px;
  padding: 0 17px;

  border: 1px solid transparent;
  border-radius: 11px;

  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;

  cursor: default;

  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

#navbar-giris-yap-butonu {
  color: #ffffff;
  text-decoration: none;
  color: #ece9f3;
  background: #292735;
  border-color: rgba(255, 255, 255, 0.06);
}

#navbar-giris-yap-butonu:hover {
  color: #ffffff;
  background: #353143;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

#navbar-kayit-ol-butonu {
  color: #ffffff;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #075bb6, #168dff);
  border-color: rgba(85, 217, 255, 0.38);
  box-shadow: 0 5px 18px rgba(22, 141, 255, 0.24);
}

#navbar-kayit-ol-butonu:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #0874df, #21b8ff);
  border-color: rgba(143, 231, 255, 0.62);
  box-shadow: 0 7px 22px rgba(22, 141, 255, 0.35);
  transform: translateY(-1px);
}

#navbar-giris-yap-ikonu,
#navbar-kayit-ol-ikonu {
  flex-shrink: 0;

  width: 19px;

  font-size: 17px;
  line-height: 1;
  text-align: center;
}

/* ==================================================
   4. ANİMASYONLAR
================================================== */

@keyframes navbar-logo-hareketi {
  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 5px rgba(22, 141, 255, 0.4));
    transform: translateY(0) scale(1);
  }

  50% {
    filter: brightness(1.08) drop-shadow(0 0 13px rgba(22, 141, 255, 0.82));
    transform: translateY(-2px) scale(1.035);
  }
}

@keyframes marka-yazi-isigi {
  from {
    background-position: 200% center;
  }

  to {
    background-position: -200% center;
  }
}

@keyframes navbar-isik-akisi {
  from {
    background-position: 200% center;
  }

  to {
    background-position: -200% center;
  }
}

/* ==================================================
   5. TABLET
================================================== */

@media (max-width: 800px) {
  #ana-navbar {
    min-height: 68px;
    padding: 7px 16px;
  }

  #navbar-logo-gorseli {
    width: 50px;
    height: 50px;
  }

  #navbar-marka-basligi {
    font-size: 19px;
  }

  #navbar-marka-aciklamasi {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
}

/* Butonlar dar ekranda navbarı sıkıştırmaması için gizlenir. */
@media (max-width: 768px) {
  #navbar-uyelik-butonlari {
    display: none;
  }
}

/* ==================================================
   6. TELEFON
================================================== */

@media (max-width: 560px) {
  #ana-navbar {
    justify-content: center;

    min-height: 66px;
    padding: 8px 10px;
  }

  #navbar-logo-baglantisi {
    justify-content: center;
    gap: 9px;
    width: 100%;
  }

  #navbar-logo-gorseli {
    width: 46px;
    height: 46px;
  }

  #navbar-marka-alani {
    padding-left: 10px;
  }

  #navbar-marka-basligi {
    font-size: 17px;
    letter-spacing: 1.4px;
  }

  #navbar-marka-aciklamasi {
    display: block;

    font-size: 7px;
    letter-spacing: 1.1px;
  }
}

/* ==================================================
   7. KÜÇÜK TELEFON
================================================== */

@media (max-width: 390px) {
  #ana-navbar {
    min-height: 60px;
  }

  #navbar-logo-gorseli {
    width: 42px;
    height: 42px;
  }

  #navbar-marka-basligi {
    display: block;
    font-size: 16px;
  }

  #navbar-marka-aciklamasi {
    display: none;
  }
}

/* ==================================================
   8. HAREKET HASSASİYETİ
================================================== */

@media (prefers-reduced-motion: reduce) {
  #navbar-logo-gorseli,
  #navbar-marka-basligi,
  #ana-navbar::after {
    animation: none;
  }
}
