/* header.css */

/* :root variables (like --header-height, --accent-color) should be defined in your global CSS */

/* ─── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(0, 0, 50, 0.9);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  /* desktop: logo left, nav right */
}

/* ─── Logo + Title ───────────────────────────────────────────────────── */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  /* Remove underline from logo link */
}

.logo-container img {
  height: calc(var(--header-height) * 0.6);
  width: auto;
  max-height: 50px;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  /* Ensure title text is white */
  text-decoration: none;
}

/* ─── Desktop Nav ────────────────────────────────────────────────────── */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* ─── Sign-Up button (green accent) ─────────────────────────────────── */
.btn-signup {
  background: var(--accent-color);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-signup:hover {
  background: #00e0a0;
  /* slightly lighter green */
  transform: translateY(-2px);
}

/* ─── Hamburger (hidden on desktop) ─────────────────────────────────── */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 0.55rem;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem;
}

/* ─── Sidebar (slides in/out) ───────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 250px;
  height: calc(100vh - var(--header-height));
  background: radial-gradient(circle,
      rgba(17, 22, 128, 1) 55%,
      rgba(0, 0, 0, 1) 88%);
  transition: transform 0.3s ease;
  z-index: 1001;
  /* above content but below header */
}

.sidebar.open {
  transform: translateX(0);
}

/* ─── Mobile Layout ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
  }

  .sidebar {
    transform: translateX(-100%);
  }

  /* center logo/title */
  .navbar {
    justify-content: center;
    position: relative;
  }

  .logo-container {
    margin: 0 auto;
  }

  /* hide desktop nav links */
  .nav-links {
    display: none !important;
  }
}