/* ================= HEADER ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 1000;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

header .left {
  display: flex;
  align-items: center;
  gap: 40px;
}

header .left h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

header nav {
  display: flex;
  gap: 20px;
}

header nav a {
  color: #ddd;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #fff;
}

/* Right section */
header .right {
  display: flex;
  align-items: center;
  gap: 20px;
}

header .right form {
  display: flex;
  align-items: center;
}

header .right input {
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  outline: none;
}

header .login,
header .signup {
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s ease;
}

header .login {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

header .login:hover {
  background: #fff;
  color: #000;
}

header .signup {
  background: #e50914;
  color: #fff;
  border: none;
}

header .signup:hover {
  background: #b20710;
}

/* Push content below header */
body {
  margin: 0;
  padding-top: 70px;
}

/* ================= Responsive ================= */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  user-select: none;
}

/* Mobile */
@media (max-width: 900px) {
  header {
    height: auto;
    flex-wrap: wrap;
    padding: 15px;
  }

  header .left {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  /* Hide nav by default on mobile */
  header nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
    display: none;
  }

  header nav.active {
    display: flex;
  }

  header .right {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  header .right form {
    flex: 1;
  }

  header .right input {
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }
}

