/* styles/header.css */

/* Hero/overlay keeps your banner image but adds readability */
header {
  position: relative;
  padding: 10px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 35, 0.55),
    rgba(10, 20, 35, 0.35)
  );
  pointer-events: none;
}

/* Header content row */
.header-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 1;
}

.logo img {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #ffe08a;
}

/* Search */
.search-bar {
  margin-bottom: 10px;
  text-align: center;
}
.search-bar form {
  display: flex;
  justify-content: center;
}
.search-bar input[type="text"] {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.4);
  border-right: none;
  border-radius: 999px 0 0 999px;
  width: 100%;
  max-width: 230px;
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(6px);
}
.search-bar button {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.4);
  border-left: none;
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  transition: background .25s ease;
}
.search-bar button:hover { background: rgba(255,255,255,.3); }

/* Glassy nav */
nav {
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(14,58,93,.55), rgba(11,47,74,.55));
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  display: flex;
  gap: 6px;
  overflow: hidden;
  max-height: none; /* desktop */
}

nav ul li { display: block; }

nav ul li a,
nav ul li button.auth-button {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 1px 10px rgba(0,0,0,.4);
  transition: color .25s ease, background-color .25s ease, transform .2s ease;
  background: linear-gradient(to top, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
nav ul li a:hover,
nav ul li button.auth-button:hover {
  background-color: rgba(0,0,0,.25);
  color: #ffd24a;
  -webkit-text-fill-color: initial;
  transform: translateY(-1px);
}

/* Notifications dropdown */
.notifications { position: relative; margin-left: 10px; }
.notifications-button { color: #fff; text-decoration: none; cursor: pointer; position: relative; }
.notifications-dropdown {
  display: none;
  position: absolute;
  right: 0; top: 30px;
  background: rgba(255,255,255,.98);
  color: #000 !important;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  width: 320px; max-height: 420px; overflow-y: auto;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  z-index: 1000;
}
.notifications-dropdown a { color: #111; font-size: 1em; }
.notification { padding: 12px; border-bottom: 1px solid #eee; }
.notification:last-child { border-bottom: 0; }
.notification:hover { background-color: #f5f7fb; }

/* Hamburger */
.hamburger { display: none; cursor: pointer; font-size: 30px; color: #fff; }

/* Mobile */
@media (max-width: 768px) {
  header { background-position: center center; height: auto; }

  .header-content {
    flex-direction: column;
    align-items: center;
  }
  .user-info { align-items: center; }
  .logo { text-align: center; margin-bottom: 10px; }

  .hamburger { display: block; }

  nav ul {
    flex-direction: column;
    width: 100%;
    max-height: 0;       /* collapsed by default */
    transition: max-height 0.6s ease;
  }
  nav ul.open {
    max-height: 1000px;  /* opened via JS */
  }

  .search-bar input[type="text"] { width: 80%; }
}