/* Common Header Styles - Shared across all pages */

/* White glass header styling */
#header .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Brand styling */
#header .navbar-brand {
  color: #1a252f !important;
  font-weight: 800 !important;
  font-size: 1.4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#header .navbar-brand:hover {
  color: #667eea !important;
  transform: scale(1.02);
}

/* Navigation links */
#header .nav-link {
  color: #2c3e50 !important;
  font-weight: 600 !important;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#header .nav-link:hover {
  color: #667eea !important;
  background: rgba(102, 126, 234, 0.1) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

#header .nav-link.active {
  color: #667eea !important;
  font-weight: 700 !important;
  background: rgba(102, 126, 234, 0.15) !important;
}

/* Logout button styling */
#header .btn-outline-light {
  color: #555 !important;
  border-color: #ddd !important;
  background: transparent;
  transition: all 0.3s ease;
}

#header .btn-outline-light:hover {
  color: white !important;
  border-color: #667eea !important;
  background: #667eea !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Mobile navbar toggler */
#header .navbar-toggler {
  border-color: #ddd !important;
}

#header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* User profile section */
#header .user-name {
  color: #333 !important;
}

#header .user-avatar {
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* User profile section with gradient background - matching dashboard sizing */
#header .user-profile.logged-in-only {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: flex !important;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

#header .user-profile .user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#header .user-profile .user-name {
  color: white !important;
  font-weight: 500;
  font-size: 0.95rem;
}

#header .user-profile .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#header .user-profile .logout-btn {
  color: white !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

#header .user-profile .logout-btn:hover {
  color: #667eea !important;
  border-color: white !important;
  background: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Login link styling */
#header .login-link.logged-out-only {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2c3e50 !important;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

#header .login-link.logged-out-only:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea !important;
}

#header .login-link i {
  font-size: 1.1rem;
}

/* Page-specific active states */
/* Create Ad page */
body[data-page="create-ad"] #header .nav-link[href="create-ad.html"] {
  color: #667eea !important;
  font-weight: 700 !important;
  background: rgba(102, 126, 234, 0.15) !important;
  border-radius: 8px;
}

/* Dashboard page */
body[data-page="dashboard"] #header .nav-link[href="dashboard.html"] {
  color: #667eea !important;
  font-weight: 700 !important;
  background: rgba(102, 126, 234, 0.15) !important;
  border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  #header .user-profile {
    width: 100%;
    justify-content: space-between;
  }
  
  #header .nav-link {
    padding: 6px 12px !important;
    font-size: 0.9rem;
  }
} 