/* Header styling */
header {
  background: var(--theme-background);
  color: var(--logo-dark);
  padding: 16px 40px;
  user-select: none;
  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;
}

.app-header.hidden {
  transform: translateY(-100%);
}

/* Flex Layout */
.header-left {
  flex: 1;
  display: flex;
  align-items: center;
}
.header-center {
  flex: 2;
  display: flex;
  justify-content: center;
}
.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Logo */
.logo img {
  /* width: 70px; */
}

/* Navigation menu */
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);
  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: 0.5rem 0.9rem;
  border-radius: var(--border-radius);
  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);
  color: white;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  /* width: 32px;
  height: 28px; */
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: var(--logo-dark);
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* Sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -80%;
  width: 80%;
  height: 100%;
  background: var(--theme-background);
  z-index: 11000;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: left 0.3s ease;
}
.mobile-sidebar.open {
  left: 0;
}
.mobile-sidebar .close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-sidebar ul.menu {
  flex-direction: column;
  gap: 20px;
}
.mobile-sidebar .sidebar-auth {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-sidebar .sidebar-auth a {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background: var(--logo-yellow);
  color: var(--logo-dark);
  transition: background 0.3s ease;
}
.mobile-sidebar .sidebar-auth a:hover {
  background: var(--logo-green);
  color: white;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 10500;
  display: none;
}
.overlay.show {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
 
  .desktop-only {
    display: none !important;
  }
  .hamburger {
    display: flex;
    margin-left: -30px;
  }
  .header-left {
    display: flex;
    align-items: center;
    gap: 3px; 
  }

  .get-started a {
    display: block;
    align-items: center;
    border-radius: var(--border-radius);
    padding: 0.3rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .get-started a {
    /* padding: 0.1rem 0.1rem;
    font-size: 0.8rem; */
    padding: 0.2rem 0.3rem;
        font-size: 1.2rem;
  }

  .header-right {
    margin-right: -25px;
  }
}

/** profile menu after login */
.profile-wrapper {
  position: relative;
  display: inline-block;
}

.profile-button {
  background: transparent;
  color: var(--logo-dark);
  font-weight: 600;
  border: 2px solid var(--logo-dark-light);
  border-radius: var(--border-radius);
  padding: 0.1rem 0.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-button:hover {
  background: var(--logo-dark-light);
  color: white;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: 110%;
  background: white;
  border-radius: var(--border-radius);
  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: var(--logo-dark);
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  border-radius: var(--border-radius);
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: var(--logo-dark-light);
  
}

.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: var(--logo-orange) !important;
  border-bottom: 1px solid #eee;
}
/** end profile after login */