/* Shared Header Widget — atmavailability.com */
/* Matches the React header in portfolio + CISSP Prep */

.shared-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(15, 8, 75, 0.15);
  background: rgba(250, 251, 252, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dark .shared-header {
  background: rgba(15, 8, 75, 0.95);
  border-bottom-color: rgba(166, 207, 213, 0.15);
}

.shared-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}

/* Brand mark */
.shared-header-brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0F084B;
  text-decoration: none;
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.shared-header-brand:hover {
  color: #26408B;
}

.dark .shared-header-brand {
  color: #A6CFD5;
}

.dark .shared-header-brand:hover {
  color: #26408B;
}

/* Desktop nav */
.shared-header-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.shared-header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0D0221;
  text-decoration: none;
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.shared-header-nav a:hover,
.shared-header-nav a.active {
  color: #26408B;
}

.dark .shared-header-nav a {
  color: #ffffff;
}

.dark .shared-header-nav a:hover,
.dark .shared-header-nav a.active {
  color: #26408B;
}

/* Mobile controls */
.shared-header-mobile-controls {
  display: none;
  align-items: center;
  gap: 8px;
}

/* Theme toggle button */
.shared-header-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #0D0221;
  transition: background-color 200ms, color 200ms;
  position: relative;
}

.shared-header-theme-btn:hover {
  background: rgba(38, 64, 139, 0.1);
  color: #26408B;
}

.dark .shared-header-theme-btn {
  color: #ffffff;
}

.dark .shared-header-theme-btn:hover {
  background: rgba(38, 64, 139, 0.3);
}

.shared-header-theme-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* Sun/Moon icon visibility */
.shared-header-sun { display: block; }
.shared-header-moon { display: none; }
.dark .shared-header-sun { display: none; }
.dark .shared-header-moon { display: block; }

/* Hamburger button */
.shared-header-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #0D0221;
  transition: background-color 200ms, color 200ms;
}

.shared-header-hamburger:hover {
  background: rgba(38, 64, 139, 0.1);
  color: #26408B;
}

.dark .shared-header-hamburger {
  color: #ffffff;
}

.dark .shared-header-hamburger:hover {
  background: rgba(38, 64, 139, 0.3);
}

.shared-header-hamburger svg {
  width: 20px;
  height: 20px;
}

/* Mobile nav panel */
.shared-header-mobile-nav {
  display: none;
  border-top: 1px solid rgba(15, 8, 75, 0.15);
  background: #FAFBFC;
  padding: 16px 24px;
}

.shared-header-mobile-nav.open {
  display: block;
}

.dark .shared-header-mobile-nav {
  border-top-color: rgba(166, 207, 213, 0.15);
  background: #0F084B;
}

.shared-header-mobile-nav a {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: #0D0221;
  text-decoration: none;
  padding: 8px 0;
  transition: color 200ms;
}

.shared-header-mobile-nav a:hover,
.shared-header-mobile-nav a.active {
  color: #26408B;
}

.dark .shared-header-mobile-nav a {
  color: #ffffff;
}

.dark .shared-header-mobile-nav a:hover,
.dark .shared-header-mobile-nav a.active {
  color: #26408B;
}

/* Theme dropdown */
.shared-header-theme-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 128px;
  background: #FAFBFC;
  border: 1px solid rgba(15, 8, 75, 0.15);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(15, 8, 75, 0.12);
  z-index: 60;
}

.shared-header-theme-dropdown.open {
  display: block;
}

.dark .shared-header-theme-dropdown {
  background: #0F084B;
  border-color: rgba(166, 207, 213, 0.15);
}

.shared-header-theme-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #0D0221;
  cursor: pointer;
  transition: background-color 200ms;
}

.shared-header-theme-dropdown button:hover {
  background: rgba(38, 64, 139, 0.1);
  color: #26408B;
}

.dark .shared-header-theme-dropdown button {
  color: #ffffff;
}

.dark .shared-header-theme-dropdown button:hover {
  background: rgba(38, 64, 139, 0.3);
}

/* Responsive */
@media (max-width: 767px) {
  .shared-header-desktop {
    display: none;
  }
  .shared-header-mobile-controls {
    display: flex;
  }
}
