/* ==========================================================================
   HARMONY GLOBAL · LUXURY FLOATING FROSTED GLASS NAVBAR
   Compatible with Oldharmony dark forest obsidian aesthetic & admin hub
   ========================================================================== */

:root {
  --hg-nav-bg: rgba(14, 27, 19, 0.86);
  --hg-nav-bg-scrolled: rgba(10, 20, 14, 0.95);
  --hg-nav-border: rgba(176, 211, 122, 0.22);
  --hg-nav-border-scrolled: rgba(176, 211, 122, 0.35);
  --hg-nav-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  --hg-nav-shadow-scrolled: 0 24px 60px -10px rgba(0, 0, 0, 0.85);
  --hg-nav-lime: #b0d37a;
  --hg-nav-lime-hover: #c5e79a;
  --hg-nav-text: #d8e5d3;
}

/* Floating Master Header Container */
.hg-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1280px;
  height: 72px;
  background: var(--hg-nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--hg-nav-border);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 1000;
  box-shadow: var(--hg-nav-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.hg-header.scrolled {
  top: 12px;
  height: 64px;
  background: var(--hg-nav-bg-scrolled);
  border-color: var(--hg-nav-border-scrolled);
  box-shadow: var(--hg-nav-shadow-scrolled);
}

/* Brand Logo Section */
.hg-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hg-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hg-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hg-logo-link:hover .hg-logo-img {
  transform: scale(1.04);
}

/* Primary Desktop Navigation Links */
.hg-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 16px;
}

.hg-nav-link {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--hg-nav-text);
  text-decoration: none;
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.hg-nav-link:hover,
.hg-nav-link.active,
.hg-nav-link[aria-current="page"] {
  color: var(--hg-nav-lime);
}

.hg-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--hg-nav-lime);
  transition: width 0.25s ease, left 0.25s ease;
  border-radius: 2px;
}

.hg-nav-link:hover::after,
.hg-nav-link.active::after,
.hg-nav-link[aria-current="page"]::after {
  width: 100%;
  left: 0;
}

/* Right Actions Container */
.hg-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Admin Hub Button */
.hg-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(176, 211, 122, 0.12);
  border: 1px solid rgba(176, 211, 122, 0.26);
  border-radius: 9999px;
  color: var(--hg-nav-lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hg-admin-btn svg {
  flex-shrink: 0;
}

.hg-admin-btn:hover {
  background: var(--hg-nav-lime);
  color: #0d1a11;
  border-color: var(--hg-nav-lime);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(176, 211, 122, 0.35);
}

/* Primary Booking Pill Button */
.hg-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--hg-nav-lime);
  border: 1px solid var(--hg-nav-lime);
  border-radius: 9999px;
  color: #112314;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(176, 211, 122, 0.25);
  white-space: nowrap;
}

.hg-book-btn:hover {
  background: var(--hg-nav-lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(176, 211, 122, 0.45);
}

/* Mobile Hamburger Toggle */
.hg-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(176, 211, 122, 0.08);
  border: 1px solid rgba(176, 211, 122, 0.2);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  color: var(--hg-nav-lime);
  transition: all 0.2s ease;
}

.hg-mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--hg-nav-lime);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hg-mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hg-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.hg-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Slide-Down Drawer */
.hg-mobile-drawer {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  background: rgba(14, 27, 19, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(176, 211, 122, 0.25);
  border-radius: 24px;
  padding: 24px;
  z-index: 999;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  animation: hgDrawerIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hg-mobile-drawer[hidden] {
  display: none;
}

@keyframes hgDrawerIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hg-mobile-drawer-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hg-mob-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #e0eade;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.hg-mob-link:hover,
.hg-mob-link.active {
  background: rgba(176, 211, 122, 0.12);
  color: var(--hg-nav-lime);
}

.hg-mob-admin {
  margin-top: 10px;
  border-top: 1px solid rgba(176, 211, 122, 0.15);
  padding-top: 16px;
  color: var(--hg-nav-lime);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .hg-nav-links {
    display: none;
  }
  .hg-mobile-toggle {
    display: flex;
  }
}

@media (max-width: 700px) {
  .hg-header {
    top: 12px;
    width: calc(100% - 24px);
    height: 60px;
    padding: 0 16px;
  }
  .hg-header.scrolled {
    top: 8px;
    height: 56px;
  }
  .hg-logo-img {
    height: 30px;
  }
  .hg-admin-btn span {
    display: none;
  }
  .hg-admin-btn {
    padding: 8px 10px;
  }
  .hg-book-btn {
    padding: 8px 14px;
    font-size: 12px;
    gap: 5px;
  }
  .hg-mobile-drawer {
    top: 76px;
    width: calc(100% - 24px);
    padding: 18px;
  }
}
