/* =========================
   HEADER BASE
========================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================
   LOGO
========================= */
.logo img {
  height: 40px;
}

/* =========================
   NAVBAR
========================= */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.navbar a.active {
  color: #0d6efd;
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 4px;
}

/* =========================
   DROPDOWN (JS CONTROLLED ONLY)
========================= */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

/* IMPORTANT: NO HOVER */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  border-radius: 6px;
  min-width: 180px;
  z-index: 1001;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: #333;
}

.dropdown-menu a:hover {
  background: #f4f6f8;
}

/* =========================
   USER AREA
========================= */
.user {
  display: flex;
  gap: 10px;
  align-items: center;
}

.username {
  font-weight: 600;
  color: #555;
}

.logout {
  color: #dc3545;
}

/* =========================
   BACKED BY
========================= */
.backed-by {
  text-align: right;
  font-size: 12px;
}

.backed-by img {
  height: 30px;
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }

  .navbar {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 1000;
  }

  .navbar.open {
    display: block;
  }

  .navbar ul {
    flex-direction: column;
    gap: 0;
  }

  .navbar li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
  }
}
