/**
 * a2ui_universal_header.css
 * Standard: PRT-A2UI-001 / PRT-A2UI-PRETEXT / Rule 69 / Rule 70 / Rule 73 / DECO-OPT-0152
 * Authority: CEO Lead (PSN-0012) & TypeSafe Jev (JEV-0001) & Superpowers Lead (PSN-0030)
 * Pointer: PTR-HD-A2UI-UNIVERSAL-001 • VAR-LOC-SOV-001
 * 
 * Single authoritative header design tokens ensuring zero drift across all domain.fileos.cloud surfaces.
 */

:root {
  --a2ui-header-height: 48px;
  --a2ui-bg-header: #080c14;
  --a2ui-border-header: #1a2333;
  --a2ui-text-white: #ffffff;
  --a2ui-text-muted: #94a3b8;
  --a2ui-accent-cyan: #38bdf8;
  --a2ui-accent-emerald: #10b981;
  --a2ui-accent-purple: #c084fc;
  --a2ui-accent-amber: #fbbf24;
}

.a2ui-universal-topbar {
  height: var(--a2ui-header-height);
  min-height: var(--a2ui-header-height);
  background-color: var(--a2ui-bg-header);
  border-bottom: 1px solid var(--a2ui-border-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  user-select: none;
  position: relative;
  z-index: 10000;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Brand Capsule Left */
.a2ui-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.a2ui-header-logo {
  height: 24px;
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.45));
}

.a2ui-header-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stacked Brand Wordmark (Agentic / Business) */
.a2ui-brand-stacked {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.a2ui-brand-agentic {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(226, 232, 240, 0.45));
}
.a2ui-brand-business {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: linear-gradient(135deg, #a855f7 0%, #818cf8 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.a2ui-domain-pill {
  font-size: 10px;
  color: var(--a2ui-accent-cyan);
  font-family: 'Cascadia Code', 'JetBrains Mono', monospace;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

/* Navigation Studio Switchers Center */
.a2ui-header-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.a2ui-nav-link {
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  color: var(--a2ui-text-muted);
  background: transparent;
}

.a2ui-nav-link:hover {
  color: var(--a2ui-text-white);
  background: rgba(255, 255, 255, 0.05);
}

.a2ui-nav-link.active {
  color: #fff;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Right Status & Enclave */
.a2ui-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.a2ui-mrl-ceiling-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--a2ui-accent-emerald);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'Cascadia Code', 'JetBrains Mono', monospace;
  text-decoration: none;
}

.a2ui-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--a2ui-accent-emerald);
  box-shadow: 0 0 6px var(--a2ui-accent-emerald);
  animation: a2uiPulse 2s infinite;
}

@keyframes a2uiPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.a2ui-profile-capsule-btn {
  height: 28px;
  padding: 0 10px;
  background: #0f172a;
  border: 1px solid #334155;
  color: #cbd5e1;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.a2ui-profile-capsule-btn:hover {
  border-color: var(--a2ui-accent-cyan);
  color: #fff;
}
