/* styles/header.css */
header {
  background: var(--bg-dark);
  color: white;
  padding: 1rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background-color: var(--primary);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
}

.logo:hover .logo-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px #00d4c2);
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}


nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

nav a:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
}

/* Smooth transition for active page */
nav a {
  border-bottom: 2px solid transparent;
  transition: 
    color 0.3s ease,
    border-bottom-color 0.3s ease;
}

nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}



.user-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logged-out buttons */
.login-btn {
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.login-btn:hover {
  background: var(--bg-dark);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.signup-btn {
  background: transparent;
  color: white;
  border: 1px solid var(--primary);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.signup-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

/* Logged-in styles */
.user-section.logged-in {
  gap: 1rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(0,212,194,0.15);
  padding: 0.5rem 1rem;
  padding-right: 1.2rem;
  border-radius: 50px;
  font-weight: 500;
}

.user-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.logout-btn {
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s;
}

.logout-btn:hover {
  background: #00b8a9;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}