/**
 * PopupAnnouncement Component Styles
 * 
 * Provides styling for popup announcements with multiple templates:
 * - centered: Classic centered modal
 * - left_image: Image on left, content on right
 * - right_image: Content on left, image on right
 * - fullscreen: Full viewport popup
 * - minimal: Small, compact popup
 */

/* ==========================================================================
   Overlay
   ========================================================================== */
.popup-announcement-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-announcement-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-announcement-overlay .popup-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/* ==========================================================================
   Popup Container - Base Styles
   ========================================================================== */
.popup-announcement {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.popup-announcement-overlay.active .popup-announcement {
  transform: translateY(0) scale(1);
}

/* Close Button */
.popup-announcement-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.popup-announcement-close:hover {
  background: #fff;
  transform: rotate(90deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Template: Centered (Default)
   ========================================================================== */
.popup-announcement.template-centered {
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.popup-announcement.template-centered .popup-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.popup-announcement.template-centered .popup-content {
  padding: 30px;
}

.popup-announcement.template-centered .popup-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #151515;
  line-height: 1.3;
}

.popup-announcement.template-centered .popup-short-desc {
  font-size: 1.1rem;
  color: #fc8dcf;
  font-weight: 500;
  margin-bottom: 10px;
}

.popup-announcement.template-centered .popup-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* ==========================================================================
   Template: Left Image
   ========================================================================== */
.popup-announcement.template-left_image {
  width: 90%;
  max-width: 800px;
  display: flex;
  flex-direction: row;
}

.popup-announcement.template-left_image .popup-image-container {
  flex: 0 0 45%;
  min-height: 350px;
}

.popup-announcement.template-left_image .popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-announcement.template-left_image .popup-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-announcement.template-left_image .popup-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #151515;
}

.popup-announcement.template-left_image .popup-short-desc {
  font-size: 1.1rem;
  color: #fc8dcf;
  font-weight: 500;
  margin-bottom: 10px;
}

.popup-announcement.template-left_image .popup-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* ==========================================================================
   Template: Right Image
   ========================================================================== */
.popup-announcement.template-right_image {
  width: 90%;
  max-width: 800px;
  display: flex;
  flex-direction: row-reverse;
}

.popup-announcement.template-right_image .popup-image-container {
  flex: 0 0 45%;
  min-height: 350px;
}

.popup-announcement.template-right_image .popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-announcement.template-right_image .popup-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-announcement.template-right_image .popup-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #151515;
}

.popup-announcement.template-right_image .popup-short-desc {
  font-size: 1.1rem;
  color: #fc8dcf;
  font-weight: 500;
  margin-bottom: 10px;
}

.popup-announcement.template-right_image .popup-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* ==========================================================================
   Template: Fullscreen
   ========================================================================== */
.popup-announcement.template-fullscreen {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.popup-announcement.template-fullscreen .popup-content {
  text-align: center;
  padding: 60px;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.popup-announcement.template-fullscreen .popup-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #151515;
}

.popup-announcement.template-fullscreen .popup-short-desc {
  font-size: 1.25rem;
  color: #fc8dcf;
  font-weight: 500;
  margin-bottom: 15px;
}

.popup-announcement.template-fullscreen .popup-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 30px;
}

.popup-announcement.template-fullscreen .popup-announcement-close {
  top: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  font-size: 24px;
}

/* ==========================================================================
   Template: Minimal
   ========================================================================== */
.popup-announcement.template-minimal {
  width: 90%;
  max-width: 380px;
  text-align: center;
  border-radius: 16px;
}

.popup-announcement.template-minimal .popup-content {
  padding: 35px 30px;
}

.popup-announcement.template-minimal .popup-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #151515;
}

.popup-announcement.template-minimal .popup-short-desc {
  font-size: 1rem;
  color: #fc8dcf;
  margin-bottom: 8px;
}

.popup-announcement.template-minimal .popup-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.popup-announcement.template-minimal .popup-announcement-close {
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  font-size: 16px;
}

/* ==========================================================================
   CTA Button
   ========================================================================== */
.popup-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.popup-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.popup-cta-button:active {
  transform: translateY(0);
}

.popup-cta-button i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.popup-cta-button:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes popupShake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes popupPulse {
  0%,
  100% {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 25px 80px rgba(252, 141, 207, 0.4);
  }
}

.popup-announcement.animate-attention {
  animation: popupPulse 2s ease-in-out infinite;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
  /* Left/Right Image templates stack vertically on mobile */
  .popup-announcement.template-left_image,
  .popup-announcement.template-right_image {
    flex-direction: column;
    max-width: 90%;
  }

  .popup-announcement.template-left_image .popup-image-container,
  .popup-announcement.template-right_image .popup-image-container {
    flex: none;
    min-height: 180px;
  }

  .popup-announcement.template-left_image .popup-content,
  .popup-announcement.template-right_image .popup-content {
    padding: 25px;
  }

  .popup-announcement.template-left_image .popup-title,
  .popup-announcement.template-right_image .popup-title {
    font-size: 1.4rem;
  }

  /* Fullscreen adjustments */
  .popup-announcement.template-fullscreen .popup-content {
    padding: 30px 20px;
    margin: 20px;
    border-radius: 12px;
  }

  .popup-announcement.template-fullscreen .popup-title {
    font-size: 1.75rem;
  }

  .popup-announcement.template-fullscreen .popup-description {
    font-size: 1rem;
  }

  /* Centered adjustments */
  .popup-announcement.template-centered .popup-content {
    padding: 20px;
  }

  .popup-announcement.template-centered .popup-title {
    font-size: 1.4rem;
  }

  /* Button adjustments */
  .popup-cta-button {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .popup-announcement {
    margin: 10px;
    max-height: 85vh;
  }

  .popup-announcement.template-centered .popup-image {
    height: 150px;
  }

  .popup-announcement-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}
