/* Sold Out Banner Styles */
.sold-out-banner {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  padding: 15px 0;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.5s ease-out;
}

.sold-out-banner .container {
  position: relative;
}

.sold-out-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.sold-out-banner-icon {
  font-size: 24px;
  margin-right: 10px;
  animation: pulse 2s infinite;
}

.sold-out-banner-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.sold-out-banner-dates {
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.8);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin: 0 2px;
}

.sold-out-banner-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.sold-out-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

/* Animations */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sold-out-banner {
    padding: 12px 0;
  }

  .sold-out-banner-content {
    flex-direction: row;
    gap: 5px;
    flex-wrap: nowrap; 
  }

  .sold-out-banner-icon {
    font-size: 20px;
    margin-right: 5px;
    flex-shrink: 0;
  }

  .sold-out-banner-text {
    font-size: 14px;
    text-align: center;
  }

  .sold-out-banner-close {
    right: 10px;
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .sold-out-banner {
    padding: 10px 0;
  }

  .sold-out-banner-text {
    font-size: 13px;
    padding: 0 40px 0 10px;
    flex: 1; 
  }

  .sold-out-banner-icon {
    font-size: 18px;
    margin-right: 8px;  
    flex-shrink: 0; 
  }
}

/* Hidden state */
.sold-out-banner.hidden {
  display: none;
}

/* Body padding to account for fixed banner */
body.has-sold-out-banner {
  padding-top: 60px;
}

@media (max-width: 768px) {
  body.has-sold-out-banner {
    padding-top: 70px;
  }
}

@media (max-width: 480px) {
  body.has-sold-out-banner {
    padding-top: 65px;
  }
}
