/* ============================================================================
   Andrew GG Navigation Bar Stylesheet (Self-Contained & Encapsulated)
   Matches the official andrewgg.one header navigation
   ============================================================================ */

[x-cloak] {
  display: none !important;
}

.agg-nav-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  background-color: rgba(11, 12, 21, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.agg-nav-wrapper * {
  box-sizing: border-box;
}

.agg-nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.agg-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.agg-nav-brand img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.agg-nav-brand:hover img {
  opacity: 0.8;
}

/* Navigation items container */
.agg-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.agg-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.agg-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8 !important;
  text-decoration: none !important;
  border-radius: 12px;
  transition: all 0.2s ease;
  line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.agg-nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Hover-revealed color accents (No permanent colors) */

/* Calibration: Yellow Glow */
.agg-nav-calib-btn:hover {
  color: #FFDD00 !important;
  background-color: rgba(255, 221, 0, 0.12) !important;
  border-color: rgba(255, 221, 0, 0.6) !important;
  box-shadow: 0 0 15px rgba(255, 221, 0, 0.25);
}

/* Visualization: Electric Blue Glow */
.agg-nav-vis-btn:hover,
.agg-nav-vis-btn.open {
  color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

/* Hardware: Cyan Glow */
.agg-nav-hardware-btn:hover,
.agg-nav-hardware-btn.open {
  color: #22d3ee !important;
  background-color: rgba(34, 211, 238, 0.1) !important;
  border-color: rgba(34, 211, 238, 0.5) !important;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.25);
}

/* Galactic Sunset: Magenta Glow */
.agg-nav-galactic-btn:hover {
  color: #ff0099 !important;
  background-color: rgba(255, 0, 153, 0.1) !important;
  border-color: rgba(255, 0, 153, 0.5) !important;
  box-shadow: 0 0 15px rgba(255, 0, 153, 0.25);
}

/* VIP Studio: Amber Glow */
.agg-nav-vip-btn:hover {
  color: #fbbf24 !important;
  background-color: rgba(251, 191, 36, 0.1) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.25);
}

/* Dropdown Menu Popup - 100% Solid & High Contrast */
.agg-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  background: #0f111a !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 8px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: aggNavFadeIn 0.15s ease-out;
}

@keyframes aggNavFadeIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.agg-nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0 !important;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.agg-nav-dropdown-menu a:hover {
  background-color: #0891b2 !important;
  color: #ffffff !important;
}

.agg-dropdown-group {
  margin-bottom: 2px;
}

.agg-dropdown-group-header {
  padding: 6px 10px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #22d3ee;
}

.agg-dropdown-group-header a {
  color: #22d3ee !important;
  padding: 0 !important;
  background: transparent !important;
}

.agg-dropdown-group-header a:hover {
  text-decoration: underline !important;
}

.agg-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  font-family: monospace;
}

.agg-dropdown-group-sub {
  margin-left: 10px;
  padding-left: 8px;
  border-left: 2px solid rgba(34, 211, 238, 0.3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.agg-dropdown-group-sub a {
  font-size: 12px !important;
  padding: 5px 10px !important;
  color: #cbd5e1 !important;
}

.agg-dropdown-group-sub a:hover {
  background-color: #0891b2 !important;
  color: #ffffff !important;
}

.agg-dropdown-group-sub a.active {
  background-color: rgba(34, 211, 238, 0.15) !important;
  color: #22d3ee !important;
  font-weight: 700;
  border-left: 3px solid #22d3ee;
}

.agg-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.agg-nav-arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.agg-nav-arrow.rotated {
  transform: rotate(180deg);
}

/* Language and Divider */
.agg-nav-side {
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 12px;
  margin-left: 6px;
  gap: 4px;
}

.agg-nav-lang-btn {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 5px;
  text-decoration: none !important;
  transition: all 0.15s;
}

.agg-nav-lang-btn.active {
  background-color: #2563eb;
  color: #ffffff !important;
}

.agg-nav-lang-btn:not(.active) {
  color: #94a3b8 !important;
}

.agg-nav-lang-btn:not(.active):hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Mobile Hamburger Button */
.agg-nav-hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  padding: 6px 10px;
  cursor: pointer;
}

.agg-nav-hamburger svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Mobile Navigation Drawer */
.agg-nav-mobile-drawer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0c15;
}

.agg-nav-mobile-drawer .agg-nav-link {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
}

.agg-nav-mobile-drawer .agg-nav-dropdown-menu {
  position: static;
  width: 100%;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

@media (max-width: 1024px) {
  .agg-nav-links {
    display: none;
  }
  .agg-nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
