/* ===========================================
   ZenOps - Top Bar (Event Announcement)
   =========================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 255, 154, 0.15);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
}

.topbar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.topbar__link:hover {
  opacity: 0.8;
}

.topbar__link:hover .topbar__arrow {
  opacity: 0.8;
}

.topbar__arrow {
  color: var(--color-accent-cyan);
  -webkit-text-fill-color: initial;
  transition: transform 0.2s ease;
}

.topbar__link:hover .topbar__arrow {
  transform: translateX(3px);
}

.topbar__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  padding: 4px;
  line-height: 1;
}

.topbar__close:hover {
  opacity: 1;
}

/* Push navbar down when topbar is present */
body.has-topbar .navbar {
  top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .topbar {
    font-size: 12px;
    height: auto;
    padding: 10px 40px 10px 16px;
  }

  .topbar__link {
    line-height: 1.5;
    white-space: normal;
    text-align: center;
  }

  body.has-topbar .navbar {
    top: 56px;
  }
}
