/* Suhana Safar Offer Popup Styles */

:root {
  --offer-primary-color: #ff6b35;
  --offer-secondary-color: #f7931e;
  --offer-accent-color: #4ecdc4;
  --offer-dark-bg: #2c3e50;
}

/* Snowfall animations */
.winter-wrapper-offer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9998;
}

.snowflake-offer {
  position: absolute;
  z-index: 9998;
  font-size: 10px;
  width: 2px;
  height: 2px;
  border-radius: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  top: -2vh;
  animation: fall-offer linear infinite;
  opacity: 0.8;
}

.snowflake-offer._md {
  width: 3px;
  height: 3px;
}

.snowflake-offer._lg {
  width: 5px;
  height: 5px;
}

@keyframes fall-offer {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20vw, 110vh);
  }
}

/* Candy/Fireworks effect */
.candy-offer {
  position: fixed;
  width: 20px;
  height: 20px;
  background-color: #add8e6;
  border-radius: 50%;
  pointer-events: none;
  animation: explode-offer 1.25s ease-out forwards;
  z-index: 9999;
}

@keyframes explode-offer {
  0% {
    transform: scale(0.5) translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: scale(0.2) translate(var(--x), var(--y));
    opacity: 0;
  }
}

/* Offer Popup Styling */
.offer-popup {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(90vw, 700px);
  max-height: 90vh;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 25px;
  background: transparent;
  z-index: 99999;
  overflow: visible;
  animation: popupSlideIn-offer 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.offer-popup::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  animation: backdropFadeIn-offer 0.3s ease-out;
}

@keyframes popupSlideIn-offer {
  0% {
    transform: translate(-50%, -50%) scale(0.5) rotate(-5deg);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes backdropFadeIn-offer {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.offer-inner {
  position: relative;
  padding: 40px 35px;
  color: #2c3e50;
  text-align: center;
  background: linear-gradient(
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.85)
    ),
    url("../assets/img/ads_image/suhana_safar.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Decorative corner elements */
.offer-inner::before,
.offer-inner::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(
    135deg,
    var(--offer-primary-color),
    var(--offer-secondary-color)
  );
  opacity: 0.1;
  border-radius: 50%;
}

.offer-inner::before {
  top: -50px;
  left: -50px;
}

.offer-inner::after {
  bottom: -50px;
  right: -50px;
}

.offer-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(44, 62, 80, 0.2);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 24px;
  font-weight: 300;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10;
}

.offer-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--offer-primary-color);
  color: white;
  border-color: var(--offer-primary-color);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.offer-badge {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #2c3e50;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: pulse-offer 2s ease-in-out infinite;
}

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

.offer-title {
  margin: 20px 0;
  padding: 0;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(
    135deg,
    var(--offer-primary-color) 0%,
    var(--offer-secondary-color) 50%,
    #e91e63 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 10px rgba(255, 107, 53, 0.2);
  animation: shimmer-offer 3s ease-in-out infinite;
}

@keyframes shimmer-offer {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.offer-brand {
  display: block;
  font-size: 3.2rem;
  letter-spacing: 3px;
  font-weight: 900;
}

.offer-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: #555;
  margin-bottom: 25px;
  font-style: italic;
}

.offer-content {
  margin: 30px 0;
}

.offer-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--offer-dark-bg);
  margin-bottom: 10px;
}

.offer-description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 25px;
  font-weight: 300;
}

.offer-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.highlight-item {
  padding: 15px 10px;
  background: linear-gradient(
    135deg,
    rgba(78, 205, 196, 0.1) 0%,
    rgba(78, 205, 196, 0.05) 100%
  );
  border: 2px solid rgba(78, 205, 196, 0.3);
  border-radius: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.3s ease;
  animation: slideInUp-offer 0.6s ease-out backwards;
}

.highlight-item:nth-child(1) {
  animation-delay: 0.1s;
}
.highlight-item:nth-child(2) {
  animation-delay: 0.2s;
}
.highlight-item:nth-child(3) {
  animation-delay: 0.3s;
}
.highlight-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInUp-offer {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.highlight-item:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(
    135deg,
    rgba(78, 205, 196, 0.2) 0%,
    rgba(78, 205, 196, 0.1) 100%
  );
  border-color: var(--offer-accent-color);
  box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
}

.offer-cta {
  margin: 30px 0 20px;
}

.btn-primary-offer {
  padding: 16px 50px;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(
    135deg,
    var(--offer-primary-color) 0%,
    var(--offer-secondary-color) 100%
  );
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary-offer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary-offer:hover::before {
  left: 100%;
}

.btn-primary-offer:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary-offer:active {
  transform: translateY(-1px) scale(1.02);
}

.offer-footer {
  font-size: 0.85rem;
  color: #999;
  font-weight: 500;
  margin-top: 20px;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .offer-popup {
    width: 95%;
    max-width: 95%;
  }

  .offer-inner {
    padding: 30px 20px;
  }

  .offer-title {
    font-size: 2rem;
  }

  .offer-brand {
    font-size: 2.3rem;
    letter-spacing: 2px;
  }

  .offer-subtitle {
    font-size: 1.1rem;
  }

  .offer-tagline {
    font-size: 1.2rem;
  }

  .offer-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .highlight-item {
    padding: 12px 8px;
    font-size: 0.85rem;
  }

  .btn-primary-offer {
    padding: 14px 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .offer-highlights {
    grid-template-columns: 1fr !important;
  }
}

/* Image Wrapper Styles */
.offer-image-wrapper {
  width: 100%;
  max-width: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.offer-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.offer-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.offer-image-wrapper:hover img {
  filter: brightness(1.1);
}

/* Fullscreen Image Popup Styles */
.image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-popup-overlay.active {
  display: flex;
  opacity: 1;
  animation: fadeIn-popup 0.3s ease-out;
}

@keyframes fadeIn-popup {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.image-popup-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn-popup 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes zoomIn-popup {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.image-popup-content {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-popup-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 28px;
  font-weight: 300;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10;
}

.image-popup-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--offer-primary-color);
  border-color: var(--offer-primary-color);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.6);
}

/* Responsive Image Popup */
@media (max-width: 768px) {
  .image-popup-container {
    max-width: 95%;
    max-height: 85%;
  }

  .image-popup-close {
    top: -45px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .image-popup-content {
    max-height: 80vh;
  }
}

@media (max-width: 480px) {
  .image-popup-close {
    top: 10px;
    right: 10px;
  }
}

/* Popup Image Styles */
.offer-popup img {
  width: 100%;
  max-width: 900px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 25px;
}

/* Responsive Popup Sizing */
@media (max-width: 1400px) {
  .offer-popup {
    max-width: min(85vw, 800px);
  }
}

@media (max-width: 768px) {
  .offer-popup {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 15px;
  }

  .offer-popup img {
    border-radius: 15px;
  }

  .offer-close {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .offer-popup {
    max-width: 95vw;
    max-height: 80vh;
    border-radius: 10px;
  }

  .offer-popup img {
    border-radius: 10px;
  }

  .offer-close {
    width: 30px;
    height: 30px;
    font-size: 18px;
    top: 10px;
    right: 10px;
  }
}
