/* 
 * Modern, Responsive Header Styles
 */

/* 1. CSS Variables for easy theming */
:root {
  --primary-color: #005cb8;
  --secondary-color: #0091b9;
  --text-color: #333;
  --header-bg: #ffffff;
  --header-height: 80px;
  --border-radius: 25px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 2. General Header Structure */
.site-header {
  background-color: var(--header-bg);
  height: var(--header-height);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px; /* Slightly smaller for better balance */
  width: auto;
  display: block;
}

/* 3. Main Navigation Styles (Desktop) */
.main-nav {
  display: flex;
  align-items: center;
  background-color: white;
}

.menu-container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 20px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

/* Add a nice hover effect */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: orange;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: orange;
  background-color: white;
}

.nav-links a:hover::after {
  width: 100%;
}

/* 4. Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  border: none;
  padding: 10px 24px;
  color: white;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-login { background-color: var(--primary-color); }
.btn-signup { background-color: var(--secondary-color); }
.btn-dashboard { background-color: var(--primary-color); }


/* 5. Mobile Menu & Responsiveness */
.menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
  z-index: 1001; /* Above the mobile menu */
}

/* A helper class for screen-reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Apply mobile styles at 768px or less */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* Show the hamburger icon */
  }

  .menu-container {
    /* Full screen overlay */
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 100%;
    height: 100vh;
    background-color: var(--header-bg);
    
    /* Change layout to vertical */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    
    transition: right 0.4s ease-in-out;
  }

  /* When the menu is open */
  .menu-container.is-active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .nav-links a {
    font-size: 24px; /* Larger text for mobile */
  }
  
  .auth-buttons {
    flex-direction: column;
    gap: 20px;
  }
}