/* CR-P5NB02B3
   CLIPRENDER PARASEO -- notification-bar.css
   Presale notification bar styles for cliprender-minimal public pages.
   Design tokens from instructions/DESIGN_SYSTEM.md (Radix rewrite)
*/

/* ============================================================
   PRESALE NOTIFICATION BAR
   ============================================================ */

.notification-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: rgba(10, 10, 10, 0.88);
  overflow: hidden;
  padding: 0 var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  animation: notificationBarEnter var(--duration-layout) var(--ease-out) forwards;
}

/* Ascii-art texture behind notification bar */
.notification-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/dot_backgrounds/ascii-art-1.png') center / cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Dark overlay for legibility */
.notification-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 0;
}

/* Keep all children above pseudo-elements */
.notification-bar > * {
  position: relative;
  z-index: 1;
}

@keyframes notificationBarEnter {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hidden state */
.notification-bar[data-dismissed="true"] {
  display: none;
}

/* --- Text --- */

.notification-bar-text {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- CTA Button --- */

.notification-bar-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #000000;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.90);
  border-radius: var(--radius-full);
  text-decoration: none;
  letter-spacing: -0.2px;
  cursor: pointer;
  flex-shrink: 0;
}

.notification-bar-cta .cta-logomark {
  width: 16px;
  height: 14px;
  color: #000000;
}

.notification-bar-cta:hover {
  background: #ffffff;
  color: #000000;
}

.notification-bar-cta:active {
  filter: brightness(0.9);
  transform: scale(0.97);
}

/* --- Dismiss Button --- */

.notification-bar-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--radius-2);
  color: #ffffff;
  opacity: 0.6;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity var(--duration-normal) var(--ease-default);
}

.notification-bar-dismiss:hover {
  opacity: 1;
}

.notification-bar-dismiss svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   RESPONSIVE -- MOBILE (<768px)
   ============================================================ */

@media (max-width: 767px) {
  .notification-bar {
    gap: var(--space-2);
    padding: 0 var(--space-3);
  }

  .notification-bar-text {
    font-size: 12px;
  }
}
