
/* === GLOBAL RESET & OVERFLOW FIX === */
html, body {
  overflow-x: hidden; /* ✅ Prevent horizontal scroll */
}



/* === HEADER WRAPPER === */
.main-header {
  background: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: fixed;
    left: 0;
    right: 0;
  top: 0;
  z-index: 1000;
}

/* === CONTAINER === */
.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
  overflow-x: hidden; /* ✅ Fix for flex gap overflow */
}

/* === LOGO === */
.brand-logo {
  flex-shrink: 0;
}

.logo-image {
  width: 80px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

/* === DESKTOP NAVIGATION === */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #2563eb;
  background: #f8fafc;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* === USER ACTIONS === */
.user-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* === USER PROFILE === */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
}

.logout-btn {
  background: #dc2626;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* === AUTH BUTTONS === */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-link {
  text-decoration: none;
}

.auth-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: none;
 border: 1px solid lightgrey;
 background: transparent;
}

.login-btn {
    color: #262729;
}

.login-btn:hover {
  background: #FFD30A;
  color: black;
  transform: translateY(-1px);
}

.signup-btn {
    
    color: #262729;
    background-image: white !important;
}

.signup-btn:hover {
  background: #FFD30A;
  color: black;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* === MOBILE MENU TOGGLE === */
.mobile-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}

.hamburger-icon {
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: all 0.3s ease;
}

.hamburger-icon::before {
  top: -6px;
}

.hamburger-icon::after {
  bottom: -6px;
}

/* === MOBILE OVERLAY & PANEL === */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 100vw;
  height: 100%;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-overlay.active .mobile-panel {
  transform: translateX(0);
}

/* === MOBILE PANEL CONTENT === */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-logo-image {
  width: 60px;
  height: auto;
}

.close-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-icon {
  width: 20px;
  height: 2px;
  background: #1a1a1a;
  position: relative;
  transform: rotate(45deg);
}

.close-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #1a1a1a;
  transform: rotate(-90deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  flex: 1;
}

.mobile-nav-link {
  padding: 16px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.mobile-nav-link:hover {
  background: #f8fafc;
  color: #2563eb;
}

/* === MOBILE AUTH === */
.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid #e2e8f0;
}

.mobile-auth-btn {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.mobile-login-btn {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.mobile-login-btn:hover {
  background: #2563eb;
  color: white;
}

.mobile-signup-btn {
  background: #2563eb;
  color: white;
}

.mobile-signup-btn:hover {
  background: #1d4ed8;
}

.mobile-logout-btn {
  width: 100%;
  padding: 16px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-logout-btn:hover {
  background: #b91c1c;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }

  .header-nav {
    height: 70px;
  }

  .nav-menu,
  .user-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .logo-image {
    width: 70px;
  }
}

@media (max-width: 480px) {
  .mobile-panel {
    width: 100vw;
  }
}

/* Highlight active navigation link */
.nav-link.active,
.mobile-nav-link.active {
  color: #2563eb;
  background: #f1f5ff;
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  width: 80%;
  background: #2563eb;
}
