/* Header Announcement */
.announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--text-primary), #334155);
  color: white;
  padding: 0.75rem 1rem;
  text-align: center;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  z-index: 1000;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.announcement--show {
  transform: translateY(0);
}

.announcement__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.announcement__text {
  flex: 1;
  min-width: 200px;
}

.announcement__link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.announcement__link:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.announcement__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.announcement__close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Dark theme support */
.dark .announcement {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

/* Body padding when announcement is shown */
body.announcement-active {
  padding-top: 60px !important;
}

/* Adjust theme toggle position when announcement is shown */
body.announcement-active .theme-toggle {
  top: calc(2rem + 60px);
}

/* Responsive */
@media (max-width: 768px) {
  .announcement {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .announcement__content {
    gap: 0.75rem;
  }

  .announcement__text {
    min-width: auto;
    text-align: center;
  }

  body.announcement-active {
    padding-top: 70px !important;
  }

  body.announcement-active .theme-toggle {
    top: calc(1rem + 70px);
  }
}