/* ===================================
   ANNOUNCEMENT BANNER
   =================================== */

.announcement {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--color-blue) 0%, rgba(52, 124, 191, 0.95) 100%);
  border-bottom: 1px solid rgba(52, 124, 191, 0.2);
  box-shadow: 0 2px 10px rgba(28, 47, 64, 0.1);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  transform: translateY(0);
  opacity: 1;
}

.announcement.announcement--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.announcement__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--space-3) var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.announcement__content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  flex-wrap: wrap;
}

.announcement__badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.announcement__text {
  margin: 0;
  color: var(--color-white);
  font-size: var(--text-sm);
  line-height: 1.5;
  flex: 1;
}

.announcement__text strong {
  font-weight: 600;
  color: var(--color-white);
}

.announcement__link {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.announcement__link:hover {
  opacity: 0.8;
}

.announcement__link:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.announcement__close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), opacity var(--transition-fast);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.announcement__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.announcement__close:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.announcement__close:active {
  opacity: 0.7;
}

.announcement__close svg {
  width: 16px;
  height: 16px;
}

/* Dark theme support */
[data-theme="dark"] .announcement {
  background: linear-gradient(135deg, var(--color-blue) 0%, rgba(52, 124, 191, 0.95) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .announcement {
    top: 60px;
  }

  .announcement__container {
    padding: var(--space-2) var(--space-4);
    flex-wrap: wrap;
  }

  .announcement__content {
    flex: 1 1 100%;
    gap: var(--space-2);
  }

  .announcement__text {
    font-size: var(--text-xs);
    line-height: 1.4;
  }

  .announcement__close {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
  }
}

@media (max-width: 480px) {
  .announcement__text {
    font-size: var(--text-xs);
  }

  .announcement__badge {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-2);
  }
}

/* Adjust hero padding when announcement is visible */
body:not(.announcement-hidden) .hero {
  padding-top: 140px !important;
}

@media (max-width: 768px) {
  body:not(.announcement-hidden) .hero {
    padding-top: 120px !important;
  }
}

/* Theme Toggle */
.theme-toggle {
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  color: var(--color-black) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  position: relative;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-blue) !important;
}

.theme-toggle:focus {
  outline: none;
  background: rgba(52, 124, 191, 0.1);
}

.theme-toggle:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  color: #f4f3f3 !important;
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  transition: color var(--transition-fast);
  position: absolute;
}

/* Show/hide icons based on theme */
.theme-toggle__icon--sun {
  display: block;
}

.theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: block;
}

[data-theme="dark"] .theme-toggle {
  color: #f4f3f3;
}

[data-theme="dark"] .theme-toggle:hover {
  color: var(--color-blue-light) !important;
}

[data-theme="dark"] .theme-toggle:focus {
  background: rgba(52, 124, 191, 0.15);
}

[data-theme="dark"] .theme-toggle:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  color: #f4f3f3 !important;
}

/* Ensure theme toggle never has persistent state */
.theme-toggle,
.theme-toggle:visited,
.theme-toggle:focus,
.theme-toggle:active,
.theme-toggle:checked,
.theme-toggle:selected,
.theme-toggle[aria-pressed="true"],
.theme-toggle[aria-pressed="false"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}

/* Note: Mobile menu toggle and hamburger styles have been moved to navbar.css where they belong */

/* Enhanced Navbar Interactions */
.nav__link.active {
  color: var(--color-black);
  background: rgba(52, 124, 191, 0.1);
}

.nav__link.active::after {
  width: 80%;
}

/* Navbar Scroll Effects - Disabled to prevent flashing */
