/* ==========================================================================
   ELM-O-SANAT FLOATING COCKPIT HEADER & MOBILE LUXURY DRAWER
   Strict 3-Zone Symmetry | Wordmark-Only Brand Lockup | Responsive 100%
   ========================================================================== */

.site-header,
.cockpit-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  width: 100%;
}

.cockpit-island,
.cockpit-container {
  pointer-events: auto;
  width: 100%;
  max-width: 1360px;
  background: rgba(5, 10, 20, 0.78);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--hairline-gold);
  border-radius: 999px;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(251, 243, 222, 0.08);
  transition: border-color 0.35s var(--ease-maybach), background 0.35s var(--ease-maybach), box-shadow 0.35s var(--ease-maybach);
  box-sizing: border-box;
}

.site-header.is-scrolled .cockpit-island,
.cockpit-header.is-scrolled .cockpit-container {
  background: rgba(4, 8, 17, 0.92);
  border-color: rgba(227, 193, 110, 0.32);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(251, 243, 222, 0.12);
}

/* Zone 1: Uploaded Calligraphy Wordmark + Arrow (No extra text or circle emblem) */
.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 2px 4px;
}

.brand-wordmark-img {
  height: 36px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(212, 166, 68, 0.25));
  transition: transform 0.3s var(--ease-maybach), filter 0.3s var(--ease-maybach);
}

.brand-link:hover .brand-wordmark-img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 6px 18px rgba(242, 223, 168, 0.42));
}

/* Zone 2: Desktop Navigation */
.cockpit-nav {
  display: flex;
  align-items: center;
}

.cockpit-nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  list-style: none;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.32s var(--ease-maybach);
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--gold-100);
}

.nav-item a:hover::after,
.nav-item a.active::after {
  transform: scaleX(1);
}

/* Zone 3: Executive Actions Container */
.cockpit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.auth-header-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Login / Register Trigger */
.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline-gold);
  color: var(--gold-200);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.28s var(--ease-maybach);
  white-space: nowrap;
}

.btn-auth:hover {
  background: rgba(212, 166, 68, 0.12);
  border-color: var(--hairline-gold-active);
  color: var(--text-pure-white);
  transform: translateY(-1px);
}

.header-user-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  background: rgba(12, 23, 43, 0.88);
  border: 1px solid var(--hairline-gold-active);
  border-radius: 999px;
}

.header-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-100);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-portal-link {
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  color: #040811;
  background: var(--gradient-gold);
  padding: 4px 10px;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.header-portal-link:hover {
  transform: translateY(-1px);
}

.header-admin-link {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-200);
  padding: 4px 8px;
  border: 1px solid rgba(227, 193, 110, 0.35);
  border-radius: 999px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.header-admin-link:hover {
  background: rgba(227, 193, 110, 0.16);
}

.header-logout-btn {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #fca5a5;
  font-family: var(--font-main);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-logout-btn:hover {
  background: rgba(248, 113, 113, 0.22);
  color: #ffffff;
}

.btn-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--gradient-gold);
  color: #03070f;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 166, 68, 0.26);
  transition: transform 0.28s var(--ease-maybach), box-shadow 0.28s var(--ease-maybach);
  white-space: nowrap;
}

.btn-consult:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 166, 68, 0.42);
}

/* Mobile Hamburger Button */
.mobile-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-gold);
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.mobile-hamburger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--gold-200);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 6, 12, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-maybach), visibility 0.35s var(--ease-maybach);
  padding: 40px 24px;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-close {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline-gold);
  border-radius: 50%;
  color: var(--gold-200);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  list-style: none;
  text-align: center;
  width: 100%;
  max-width: 340px;
}

.mobile-drawer-nav a {
  text-decoration: none;
  color: var(--text-pure);
  font-size: 1.15rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-drawer-nav a:hover {
  color: var(--gold-200);
}

/* Strict Responsive Control */
@media (max-width: 1080px) {
  .cockpit-nav {
    display: none !important;
  }
  .mobile-hamburger {
    display: flex !important;
  }
  .btn-consult {
    display: none;
  }
  .cockpit-island,
  .cockpit-container {
    padding: 8px 16px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .cockpit-header {
    top: 8px;
    padding: 0 10px;
  }
  .cockpit-island,
  .cockpit-container {
    padding: 7px 12px;
  }
  .brand-wordmark-img {
    height: 29px;
  }
  .header-user-name {
    display: none;
  }
  .btn-auth {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .mobile-hamburger {
    width: 36px;
    height: 36px;
  }
}
