/* ==================================================
   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(183, 73, 255, 0.2);
  background:
    radial-gradient(
      circle at 8% 50%,
      rgba(139, 53, 242, 0.14),
      transparent 24%
    ),
    linear-gradient(90deg, #09060d 0%, #100718 45%, #09060d 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%,
    #7c3aed 25%,
    #ff9d00 50%,
    #7c3aed 75%,
    transparent 100%
  );
  background-size: 200% 100%;

  opacity: 0.65;
  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, #ff9d00, #b73cff, #6d28d9);

  box-shadow:
    0 0 7px rgba(255, 157, 0, 0.6),
    0 0 12px rgba(183, 60, 255, 0.7);
}

#navbar-marka-basligi {
  color: #ffffff;

  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #e8c7ff 35%,
    #ffb52e 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(183, 60, 255, 0.35));
  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(190, 60, 255, 0.9));
  transform: scale(1.06);
  animation-play-state: paused;
}

#navbar-logo-baglantisi:focus-visible {
  outline: 2px solid #c65cff;
  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: #7b2fbe;
  border-color: rgba(210, 139, 255, 0.28);
  box-shadow: 0 5px 18px rgba(123, 47, 190, 0.2);
}

#navbar-kayit-ol-butonu:hover {
  color: #ffffff;
  background: #913cd3;
  border-color: rgba(231, 176, 255, 0.5);
  box-shadow: 0 7px 22px rgba(145, 60, 211, 0.3);
  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(190, 60, 255, 0.35));
    transform: translateY(0) scale(1);
  }

  50% {
    filter: brightness(1.08) drop-shadow(0 0 13px rgba(190, 60, 255, 0.8));
    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;
  }
}
