/* General navbar styles */
.navbar {
  position: relative;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: 3rem;
  width: 3rem;
  transition: transform 0.3s ease;
}



.navbar-logo-text {
  font-family: "Orbitron", monospace;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(to right, #22c55e, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
}

/* Desktop links */
.navbar-menu {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
}

.navbar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #d1d5db;
  font-size: 0.875rem;
  transition: background 0.3s ease;
}

.navbar-link:hover {
  color: #fff;
  background-color: rgba(55, 65, 81, 0.3);
}

.navbar-link.active {
  background-color: rgba(34, 197, 94, 0.2);
  color: rgb(0 255 94);
}



/* Right section */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Discord button (desktop) */
.navbar-discord {
  display: none;
  background-color: #5865f2;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.navbar-discord:hover {
  background-color: #4752c4;
  transform: scale(1.05);
}

/* Hamburger (mobile) */
.navbar-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  border-radius: 0.375rem;
}

.hamburger-line {
  width: 1.5rem;
  height: 2px;
  background-color: #d1d5db;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.navbar-hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background-color: #22c55e;
}

.navbar-hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
  background-color: #22c55e;
}

/* Overlay */
.navbar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.navbar-overlay.active {
  visibility: visible;
}

/* Mobile menu */
.navbar-mobile {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0);
  backdrop-filter: blur(12px);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}
.navbar-mobile.active {
  transform: translateX(0);
}


/* Mobile header */
.navbar-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.navbar-mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-mobile-logo-img {
  width: 2rem;
  height: 2rem;
}

.navbar-mobile-logo-text {
  font-family: "Orbitron", monospace;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(to right, #22c55e, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
}

.navbar-mobile-close {
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #d1d5db;
  cursor: pointer;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.navbar-mobile-close:hover {
  background-color: rgba(55, 65, 81, 0.3);
  color: #fff;
}

/* Mobile menu links */
.navbar-mobile-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.navbar-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #d1d5db;
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.navbar-mobile-link:hover {
  background-color: rgba(55, 65, 81, 0.3);
  color: #ffffff;
}

.navbar-mobile-link span {
  color: inherit;
}

/* Mobile footer button */
.navbar-mobile-footer {
  padding: 1rem;
}

.navbar-mobile-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #5865f2;
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-bottom: 27rem;
}

.navbar-mobile-discord:hover {
  background-color: #4752c4;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  .navbar-menu { display: flex; }
  .navbar-discord { display: flex; }
  .navbar-hamburger { display: none; }
}

@media (max-width: 767px) {
  .navbar-hamburger { display: flex !important; }
  .navbar-container { padding: 0 0.75rem; }
  .navbar-logo-img { width: 2.5rem; height: 2.5rem; }
  .navbar-logo-text { font-size: 1.25rem; }
}

#navbar-container .navbar-mobile-link {
  color: #d1d5db;
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
}

#navbar-container .navbar-mobile-link:hover {
  color: #fff;
  background-color: rgba(55, 65, 81, 0.3);
}

.navbar-mobile-link:not(:last-child) {
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}


.navbar-mobile-link.active {
  background-color: rgba(34, 197, 94, 0.2);
  color: rgb(0 255 94);
}




.profile-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 180px;
}

.profile-box {
  background-color: #004d00;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  cursor: pointer;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}

.profile-username {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100px;
  display: inline-block;
}

.dropdown-icon {
  flex-shrink: 0;
  fill: white;
}

/* Slide-down dropdown with no opacity transition */
.profile-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #003300;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  max-height: 0;
  padding: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  box-sizing: border-box;
}

.profile-dropdown.show {
  max-height: 120px; /* adjust if you add more content */
  padding: 6px;
}

.logout-btn {
  background-color: #ff0000;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  box-sizing: border-box;
}

.logout-btn:hover {
  background-color: #006600;
}

.logout-btn-mobile {
  background-color: #cc0000;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-top: 12px;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.profile-box.open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  width: 100%;
  border-radius: 4px;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.admin-btn:hover {
  background-color: #004d00;
}

.modal.hidden { display: none; }
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.modal-content {
  background: #111;
  color: white;
  padding: 20px;
  border-radius: 12px;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-content input {
  padding: 10px 24px;

  background: #222;
  border: 1px solid #333;
  color: white;
  border-radius: 6px;
}
.modal-content button {
  background: #22c55e;
  color: black;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.profile-btn {
  background-color: transparent;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-bottom: 6px;
  transition: background 0.2s ease;
}

.profile-btn:hover {
  background-color: #006600;
}
