/* Notification Bar Styles - Dark Glassmorphism Theme */

.notification-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
  z-index: 10000 !important; /* Above header (1000) but reasonable */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  /* Dark black glassmorphism styling */
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(20, 20, 20, 0.6) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  transition: transform 0.3s ease;
}

.notification-bar.hidden {
  display: none;
}

.notification-content {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.notification-marquee {
  display: inline-flex !important;
  white-space: nowrap !important;
  animation: marquee 20s linear infinite !important;
  will-change: transform !important;
  /* Force marquee to be wider than container for scrolling */
  width: max-content !important;
  min-width: 200% !important;
}

.notification-text {
  display: inline-block;
  padding-right: 150px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  /* Ensure text doesn't shrink */
  flex-shrink: 0;
}

.notification-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  opacity: 0.9;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.notification-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* Pause animation on hover */
.notification-bar:hover .notification-marquee {
  animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .notification-bar {
    height: 45px;
  }

  .notification-text {
    font-size: 14px;
    padding-right: 25px;
  }

  .notification-close {
    padding: 6px;
    margin-right: 8px;
  }
}

/* Adjust body padding when notification bar is visible */
body.notification-bar-active {
  padding-top: 50px;
}

@media (max-width: 640px) {
  body.notification-bar-active {
    padding-top: 45px;
  }
}
