@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --md-primary-fg-color: #00f0ff;
  --md-primary-bg-color: #0d121d;
  --md-accent-fg-color: #00f0ff;
}
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #06090f;
  --md-default-fg-color: #cbd5e1;
  --md-default-fg-color--light: #94a3b8;
  --md-default-fg-color--lighter: #64748b;
  --md-code-bg-color: #090e17;
  --md-code-fg-color: #38bdf8;
}
.md-typeset details.info summary {
  color: #00f0ff;
  font-weight: bold;
}
.md-typeset details.note summary {
  color: #38bdf8;
  font-weight: bold;
}

/* ==========================================================================
   Global Site Header (Unified for all PalSupervisor domains)
   ========================================================================== */
.global-site-header {
  position: relative;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 24, 38, 0.96);
  border-bottom: 1px solid rgba(28, 63, 95, 0.75);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
}

.global-site-header * {
  box-sizing: border-box;
}

.global-site-header .header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.global-site-header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #f2f5fa;
  flex-shrink: 0;
}

.global-site-header .brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ff2d4d, #ff5570);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(255, 45, 77, 0.45);
}

.global-site-header .brand-text {
  display: flex;
  flex-direction: column;
}

.global-site-header .brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff 40%, #ff5570 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.global-site-header .brand-subtitle {
  font-size: 11px;
  color: #6482a0;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.global-site-header .header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.global-site-header .nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  color: #a9c3db !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1;
}

.global-site-header .nav-link:hover,
.global-site-header .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.global-site-header .nav-link.active {
  border: 1px solid rgba(255, 45, 77, 0.35);
  background: rgba(255, 45, 77, 0.12);
}

.global-site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.global-site-header .btn-kofi-header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ff5e5b, #ff3366);
  border: 1px solid rgba(255, 120, 150, 0.45);
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 14px rgba(255, 94, 91, 0.35);
  transition: all 0.2s ease;
}
.global-site-header .btn-kofi-header:hover {
  background: linear-gradient(135deg, #ff7370, #ff4d79);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 94, 91, 0.55);
  color: #fff !important;
}

.global-site-header .discord-header-link {
  color: #7289da !important;
}
.global-site-header .discord-header-link:hover {
  background: rgba(114, 137, 218, 0.15);
  color: #fff !important;
}

.global-site-header .status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(79, 209, 165, 0.12);
  border: 1px solid rgba(79, 209, 165, 0.35);
  color: #4fd1a5;
  font-size: 12px;
  font-weight: 700;
  border-radius: 24px;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', Consolas, monospace;
}

.global-site-header .status-dot {
  width: 8px;
  height: 8px;
  background: #4fd1a5;
  border-radius: 50%;
  box-shadow: 0 0 10px #4fd1a5;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

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