/* Header Styles */
header {
  position: sticky;
  top: 0;
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.7rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo i {
  color: var(--primary);
}

.logo-text {
  color: var(--dark);
}

.text-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li {
  list-style: none;
  position: relative;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.login-link {
  color: var(--dark);
  font-weight: 500;
}

.sign-in-btn {
  background-color: var(--primary);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(66, 133, 244, 0.2);
  display: inline-block;
}

.sign-in-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(66, 133, 244, 0.3);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  position: relative;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: hidden;
}

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

.user-name {
  font-weight: 500;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
  padding: 1rem;
  min-width: 200px;
  display: none;
  margin-top: 1rem;
  z-index: 1000;
}

.user-profile:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background-color: white;
  transform: rotate(45deg);
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.dropdown-item {
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--dark);
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(66, 133, 244, 0.08);
  color: var(--primary);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.25rem;
  cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    background-color: white;
    padding-top: 5rem;
    transition: all 0.3s ease;
    z-index: 900;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    display: block;
    padding: 1rem 0;
    width: 100%;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
    z-index: 1000;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle:hover {
    color: var(--primary);
  }
  
  .nav-auth {
    position: fixed;
    bottom: 2rem;
    left: 0;
    width: 100%;
    justify-content: center;
    z-index: 900;
    flex-direction: column;
    gap: 1rem;
    display: none;
    padding: 0 2rem;
  }
  
  .nav-links.active + .nav-auth {
    display: flex;
  }
  
  .sign-in-btn {
    width: 100%;
    text-align: center;
  }
  
  /* Handle user profile menu for mobile */
  .user-profile {
    flex-direction: column;
  }
  
  .dropdown-menu {
    position: static;
    margin-top: 1rem;
    width: 100%;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .dropdown-menu::before {
    display: none;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 992px) {
  .mobile-only {
    display: block;
  }
} 