/* ═══════════════════════════════════════════════════════
   WILDLIFE GUARDIAN – nav.css  (Ultra Transparent)
═══════════════════════════════════════════════════════ */
body {
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  margin: 0
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  z-index: 1000;
  display: flex;
  align-items: center;
  /* Fully transparent by default */
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background .5s ease, backdrop-filter .5s ease, border-color .5s ease, box-shadow .5s ease;
}

/* Scrolled → subtle dark glass */
.navbar.scrolled {
  background: rgba(2, 12, 5, .6);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-color: rgba(255, 255, 255, .05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

.nav-container {
  max-width: 1350px;
  margin: 0 auto;
  width: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area,
.nav-menu,
.nav-actions {
  display: flex;
  align-items: center
}

.logo-area {
  gap: 10px;
  cursor: pointer;
  text-decoration: none
}

.logo-icon {
  background: linear-gradient(135deg, #16a34a, #15803d);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease;
}

.logo-area:hover .logo-icon {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(22, 163, 74, .5)
}

.logo-icon svg {
  width: 20px;
  height: 20px
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4)
}

.nav-menu {
  gap: 2px
}

.nav-item {
  text-decoration: none;
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all .25s ease;
  position: relative
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09)
}

.nav-item.active {
  color: #fff;
  background: rgba(34, 197, 94, .18);
  border: 1px solid rgba(34, 197, 94, .28);
  font-weight: 600
}

.nav-actions {
  gap: 10px
}

.btn-report {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, .35);
  transition: transform .2s ease, box-shadow .2s ease;
  font-family: inherit;
}

.btn-report:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(249, 115, 22, .5)
}

.btn-report:active {
  transform: scale(.97)
}

.btn-login {
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .88);
  border: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  padding: 10px 21px;
  /* 1px added to compensate for border removal */
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all .25s ease;
  font-family: inherit;
}

.btn-login:hover {
  background: rgba(255, 255, 255, .17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  transform: translateY(-2px);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
  cursor: pointer;
  padding: 8px;
  transition: background .2s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, .15)
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, .8);
  border-radius: 2px;
  display: block;
  transition: all .3s ease
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0)
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

.mobile-nav {
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  background: rgba(5, 20, 10, .96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  z-index: 999;
  display: none;
  flex-direction: column;
}

.mobile-nav.show {
  display: flex;
  animation: mobileIn .3s cubic-bezier(.22, 1, .36, 1)
}

@keyframes mobileIn {
  0% {
    opacity: 0;
    transform: translateY(-10px)
  }

  100% {
    opacity: 1;
    transform: translateY(0)
  }
}

.mobile-nav a {
  padding: 14px 24px;
  text-decoration: none;
  color: rgba(255, 255, 255, .6);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: all .2s
}

.mobile-nav a:hover {
  background: rgba(34, 197, 94, .1);
  color: #4ade80;
  padding-left: 32px
}

.mobile-nav .active-mobile {
  color: #4ade80;
  font-weight: 700
}

.mobile-actions {
  display: none;
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 10px
}

.mobile-actions .btn-report,
.mobile-actions .btn-login {
  width: 100%;
  justify-content: center
}

.mobile-actions .theme-toggle-btn,
.mobile-actions #mobileThemeToggleBtn {
  display: none !important;
}

.mobile-only-buttons {
  display: none
}

@media(min-width:1025px) {
  .mobile-nav {
    display: none !important
  }

  .hamburger {
    display: none !important
  }

  .nav-menu {
    display: flex !important
  }

  .nav-actions .btn-report,
  .nav-actions .btn-login {
    display: flex !important
  }
}

@media(max-width:1024px) and (min-width:769px) {
  .nav-menu {
    display: none
  }

  .hamburger {
    display: flex
  }

  .mobile-actions {
    display: none !important
  }
}

@media(max-width:768px) {
  .nav-menu {
    display: none
  }

  .hamburger {
    display: flex
  }

  .nav-actions .btn-report,
  .nav-actions .btn-login {
    display: none !important
  }

  .mobile-actions {
    display: flex !important
  }
}

/* ==========================================
   USER DROPDOWN POPUP & MODALS
========================================== */
.user-dropdown-popup {
  position: fixed;
  background: rgba(4, 14, 8, 0.96) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 197, 94, 0.18) !important;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  padding: 24px 20px;
  width: 220px;
  text-align: center;
  z-index: 10002;
  transition: all 0.3s;
}

.user-dropdown-popup::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent rgba(34, 197, 94, 0.3) transparent;
}

.user-dropdown-popup::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 7px 7px 7px;
  border-style: solid;
  border-color: transparent transparent rgba(4, 14, 8, 0.98) transparent;
}

.dropdown-avatar-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid #22c55e;
  padding: 3px;
}

.dropdown-name-text {
  margin: 0 0 16px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.dropdown-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-btn {
  width: 100%;
  padding: 10px 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.2s;
}

.dropdown-btn-settings {
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.dropdown-btn-settings:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.dropdown-btn-logout {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.dropdown-btn-logout:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

#saveProfileBtn {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: #fff !important;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

#saveProfileBtn:hover {
  box-shadow: 0 6px 22px rgba(34, 197, 94, 0.5) !important;
  transform: translateY(-2px);
}

#skipProfileBtn {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

#skipProfileBtn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

#closeProfileModal {
  background: none !important;
  border: none !important;
  font-size: 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35) !important;
}

/* ═══════════════════════════════════════════════════════════
   PROFILE SETUP MODAL OVERRIDES (Dark Theme)
════════════════════════════════════════════════════════════ */
#profileSetupModal>div {
  background: rgba(4, 14, 8, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
}

#profileSetupModal h3,
#profileSetupModal p {
  color: rgba(255, 255, 255, 0.92) !important;
}

#profileSetupModal input {
  background: rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

#profileSetupModal input:focus {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18) !important;
}