/* Popup Banner Component Styles */

.popup-banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.popup-banner-overlay.popup-show {
  opacity: 1;
}

.popup-banner-container {
  position: relative;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #fafafa;
  border-radius: 30px;
  border: 8px solid #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-30px);
  transition: transform 0.3s ease-out;
}

.popup-banner-overlay.popup-show .popup-banner-container {
  transform: translateY(0);
}

.popup-banner-content {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  overflow: hidden;
}

.popup-close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.popup-close-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.popup-close-button:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

.popup-banner-inner {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.popup-banner-media {
  width: 100%;
  margin: 0;
}

.popup-banner-image {
  width: 100%;
  overflow: hidden;
}

.popup-banner-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px 22px 0 0;
}

.popup-banner-video {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 22px 22px 0 0;
}

.popup-banner-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.popup-banner-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.popup-banner-text {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.popup-banner-text .hero-title {
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}

.popup-banner-subtitle {
  font-family: "Mikado", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.popup-banner-button-container {
  margin-top: 10px;
  text-align: center;
}

.popup-banner-button {
  display: inline-block;
  padding: 15px 30px;
  background: #6193ff;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-family: "Mikado", sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.popup-banner-button:hover {
  background: #4a7ae8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(97, 147, 255, 0.3);
  color: white;
  text-decoration: none;
}

.popup-banner-button:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

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

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
  .popup-banner-overlay {
    padding: 15px;
  }

  .popup-banner-container {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 25px;
    border-width: 6px;
  }

  .popup-banner-content {
    border-radius: 25px;
  }

  .popup-banner-inner {
    flex-direction: column;
    gap: 0;
  }

  .popup-banner-text {
    padding: 20px;
    gap: 15px;
  }

  .popup-banner-video {
    border-radius: 19px 19px 0 0;
  }

  .popup-banner-image img {
    border-radius: 19px 19px 0 0;
  }

  .popup-banner-subtitle {
    font-size: 14px;
  }

  .popup-banner-button {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
  }

  .popup-close-button {
    width: 36px;
    height: 36px;
    top: 10px;
    right: 10px;
  }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
  .popup-banner-overlay {
    padding: 10px;
  }

  .popup-banner-text {
    padding: 15px;
    gap: 12px;
  }

  .popup-banner-subtitle {
    font-size: 15px;
  }
}

/* Touch Device Optimizations */
.popup-touch .popup-banner-button {
  padding: 18px 32px;
  font-size: 18px;
}

.popup-touch .popup-close-button {
  width: 44px;
  height: 44px;
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
  .popup-banner-overlay,
  .popup-banner-container,
  .popup-banner-button,
  .popup-close-button {
    transition: none;
    animation: none;
  }

  .popup-banner-overlay.popup-show .popup-banner-container {
    transform: none;
  }
}

@media print {
  .popup-banner-overlay {
    display: none !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .popup-banner-container {
    background: #2c2c2c;
    color: #fff;
  }

  .popup-banner-title {
    color: #fff;
  }

  .popup-banner-subtitle {
    color: #ccc;
  }

  .popup-close-button {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .popup-close-button:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}
