/**
 * FILE: backend/public/css/christmas-gift-banner.css
 * PURPOSE: Styles for Christmas gift promotion banner
 * DESCRIPTION: Bright, festive, dismissable banner for promoting gift subscriptions and storybooks
 */

.christmas-gift-banner-hidden {
  display: none !important;
}

.christmas-gift-banner {
  position: relative;
  background: linear-gradient(135deg, #c41e3a 0%, #165b33 100%);
  background-image:
    linear-gradient(135deg, #c41e3a 0%, #165b33 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.05) 10px,
      rgba(255, 255, 255, 0.05) 20px
    );
  color: white;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 4px solid #FFD700;
  animation: slideDown 0.5s ease-out;
  z-index: 9999;
}

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

.banner-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  z-index: 10;
}

.banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.banner-icon {
  font-size: 3rem;
  animation: bounce 2s infinite;
  flex-shrink: 0;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.banner-text {
  flex: 1;
  min-width: 250px;
}

.banner-text-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.banner-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-title::before {
  content: "✨";
  animation: sparkle 1.5s infinite;
}

.banner-title::after {
  content: "✨";
  animation: sparkle 1.5s infinite 0.75s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.banner-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-description strong {
  color: #FFD700;
  font-weight: 700;
}

.banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.banner-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-btn-primary {
  background: #FFD700;
  color: #165b33;
}

.banner-btn-primary:hover {
  background: #FFC700;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
  color: #165b33;
}

.banner-btn-primary::after {
  content: "🎁";
}

.banner-btn-secondary {
  background: white;
  color: #c41e3a;
}

.banner-btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
  color: #c41e3a;
}

.banner-btn-secondary::after {
  content: "📖";
}

/* Mobile responsive */
@media (max-width: 768px) {
  .christmas-gift-banner {
    padding: 1rem;
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .banner-icon {
    font-size: 2.5rem;
  }

  .banner-title {
    font-size: 1.25rem;
    justify-content: center;
  }

  .banner-description {
    font-size: 0.9rem;
  }

  .banner-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .banner-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem;
  }

  .banner-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
  }
}

/* Accessibility */
.banner-btn:focus,
.banner-close:focus {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .christmas-gift-banner {
    animation: none;
  }

  .banner-icon,
  .banner-title::before,
  .banner-title::after {
    animation: none;
  }

  .banner-btn:hover,
  .banner-close:hover {
    transform: none;
  }
}
