
/* Header styling */
header {
  background: white;
  color: var(--logo-dark);
  padding: 16px 40px;
  user-select: none;
  box-shadow: 0 2px 8px rgb(37 99 235 / 0.25);
  border-radius: 0 0 var(--border-radius) var(--border-radius);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;

  height: var(--header-height);
  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid #3b82f6;
}

.app-header.hidden {
  transform: translateY(-100%);
}

/* Left side: logo + nav menu inline */
.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  cursor: pointer;
  /* flex-shrink: 0;
  transition: transform 0.25s ease; */
}
.logo img{
  width: 70px;
}
.logo:hover {
  /* transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  transition: transform 0.4s ease, filter 0.4s ease; */
}


/* Navigation menu */
nav {
  display: block;
}
ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
ul.menu li a {
  color: var(--logo-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}
ul.menu li a::after{
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: -6px;
  left: 0;
  background-color: var(--logo-yellow);
  transition: width 0.3s ease;
  border-radius: 3px;
}
ul.menu li a:hover,
ul.menu li a:focus {
  color: var(--logo-green);
}
ul.menu li a.active{
  color: var(--logo-dark);
  border-bottom: solid 3px var(--logo-yellow);
  transition: width 0.3s ease;
  border-radius: 3px;
}
ul.menu li a:hover::after,
ul.menu li a:focus::after {
  width: 100%;
}

/* Get Started button */
.get-started a {
  background-color: var(--logo-yellow);
  color: var(--logo-dark);
  border: none;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}
.get-started a:hover,
.get-started a:focus {
  background-color: var(--logo-green);
  outline: none;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  position: absolute;
  top: 18px;
  right: 30px;
  width: 32px;
  height: 28px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--logo-dark);
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 16px 24px;
  }
  


  /* Hide nav & button by default */
  nav, .get-started {
    display: none;
  }

  nav.active, .get-started.active {
    display: block;
    /* background: #2563EB; */
    border-radius: 8px;
    padding: 16px 0;
    margin-top: 8px;
  }

  ul.menu {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .get-started {
    text-align: center;
    margin-top: 8px;
  }

  /* Hamburger visible */
  .hamburger {
    display: flex;
  }
}


/** profile menu after login */
.profile-menu {
  position: relative;
  cursor: pointer;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: white;
  color: #333;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  min-width: 160px;
  z-index: 999;
}

.dropdown-menu a,
.dropdown-menu button {
  padding: 0.75rem 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: #f3f4f6;
}

.profile-wrapper {
  position: relative;
  display: inline-block;
}

.profile-button {
  background: white;
  color: #4f46e5;
  font-weight: 600;
  border: 2px solid #4f46e5;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-button:hover {
  background: #4f46e5;
  color: white;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: 110%;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  min-width: 250px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-dropdown.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.profile-dropdown a,
.profile-dropdown button {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: #f3f4f6;
}

.icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  color: white;
}

.username {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Mobile menu overrides */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex;
  }

  .mobile-profile a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
  }

  .mobile-profile a:hover {
    text-decoration: underline;
  }
}
.dropdown-username {
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #4f46e5 !important;
  border-bottom: 1px solid #eee;
}
/** end profile after login */