/* Public header styles (single source for homepage-style header) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 17, 22, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #e7f0f8;
  text-decoration: none;
}
.site-header .brand span { white-space: nowrap; }

.site-header .brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.site-header .nav-links {
  display: flex;
  gap: 18px;
  color: rgba(231, 240, 248, 0.80);
  font-size: 0.95rem;
}

.site-header .nav-links a,
.site-header .nav-links a:visited {
  color: rgba(231, 240, 248, 0.80);
  text-decoration: none;
  font-weight: 600;
}
.site-header .nav-links a:hover { color: #e7f0f8; text-decoration: none; }
.site-header .nav-links a:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.65);
  outline-offset: 3px;
  border-radius: 10px;
}

.site-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.site-header .nav-greeting {
  font-size: 0.9rem;
  color: rgba(231, 240, 248, 0.75);
}

.site-header .nav-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header button styles only */
.site-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  color: #e7f0f8;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  height: auto;
}
.site-header .btn:hover { transform: translateY(-1px); }

.site-header .btn-primary {
  background: #f97316;
  color: #111827;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
}
.site-header .btn-primary:hover { background: #fb923c; }

.site-header .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(231, 240, 248, 0.80);
}
.site-header .btn-ghost:hover {
  color: #e7f0f8;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hamburger: hidden by default (desktop) */
.site-header .hamburger-btn { display: none !important; padding: 10px 14px; border-radius: 12px; }

/* Dropdown menu: keep inside viewport to avoid horizontal scroll */
.site-header .mobile-menu {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 10px);
  width: min(88vw, 360px);
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  max-height: 70vh;
  background: rgba(23, 24, 27, .98);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  padding: 10px;
  z-index: 1000;
  display: none;
}
.site-header .mobile-menu:not([hidden]) { display: flex; flex-direction: column; gap: 8px; }
.site-header .mobile-menu[hidden] { display: none !important; }
.site-header .mobile-menu .menu-head { display: flex; align-items: center; justify-content: space-between; }
.site-header .mobile-menu .greet { font-size: 14px; opacity: .9; }
.site-header .mobile-menu .menu-item {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .06);
  color: #eaeaea;
  text-decoration: none;
  font-weight: 700;
}
.site-header .mobile-menu .menu-item:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .15); }
.site-header .mobile-menu .menu-item:active { filter: brightness(.95); }
.site-header .btn.small { height: 30px; padding: 0 10px; font-size: 12px; }

@media (max-width: 960px) {
  .site-header .nav-links { display: none; }
  .site-header .nav { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .site-header .nav { padding: 14px 0; gap: 12px; }
  .site-header .brand img { width: 38px; height: 38px; border-radius: 12px; }
  .site-header .nav-actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* Mobile/tablet: use hamburger, hide duplicate buttons */
@media (max-width: 900px) {
  .site-header .hamburger-btn { display: inline-flex !important; }
  .site-header .nav-actions > a[href$="/dashboard"],
  .site-header .nav-actions > a[href$="/logout"] { display: none !important; }
}
