/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  margin-right: 2rem;
}

.logo img {
  height: 50px;
  width: auto;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4CAF50;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
  color: #4CAF50;
}

/* Auth Buttons */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.auth-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.login-btn {
  border: 2px solid #4CAF50;
  color: #4CAF50;
}

.login-btn:hover {
  background: #4CAF50;
  color: #fff;
}

.signup-btn {
  background: #4CAF50;
  color: #fff;
}

.signup-btn:hover {
  background: #45a049;
}

.logout-btn {
  background: #f44336;
  color: #fff;
}

.logout-btn:hover {
  background: #d32f2f;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn img {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: 0.5rem;
}

.mobile-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
}

.mobile-dropdown {
  display: none;
  padding-left: 1rem;
}

.mobile-dropdown.active {
  display: block;
}

.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-toggle i {
  transition: transform 0.3s ease;
}

.dropdown-toggle.active i {
  transform: rotate(180deg);
}

.mobile-auth-buttons {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-auth-buttons .auth-btn {
  width: 100%;
  text-align: center;
}

/* Footer */
.footer {
  background: #333;
  color: #fff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-link {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #4CAF50;
}

.footer-info {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-section {
  max-width: 300px;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #4CAF50;
}

.footer-section p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section i {
  color: #4CAF50;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* User Menu Styles from auth-status.js */
.user-menu-item {
  position: relative;
}

.user-menu-item span {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.user-menu-item .dropdown-menu {
  min-width: 180px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .auth-buttons {
    display: none;
  }

  .mobile-auth-buttons {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-auth-buttons .auth-btn {
    width: 100%;
    text-align: center;
  }

  .footer-info {
    gap: 2rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section p {
    justify-content: center;
  }
}

/* Container utility class */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Add margin to main content to account for fixed header */
main {
  margin-top: 80px;
} 