/* Pop-up and Floating Banner Styles */

/* Floating Banner */
.floating-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: linear-gradient(145deg, #181c2d, #2c344f);
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: slideInUp 0.5s ease-out;
  font-family: 'Poppins', sans-serif;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.floating-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.floating-banner-header {
  background: transparent;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.floating-banner-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.floating-banner-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  cursor: pointer;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.floating-banner-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.floating-banner-content {
  padding: 15px;
  background: transparent;
  color: #f0f0f0;
}

.floating-banner-subtitle {
  font-size: 12px;
  margin-bottom: 10px;
  color: #c0d0f0;
}

.floating-banner-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.floating-banner-benefits li {
  font-size: 11px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  color: #f0f0f0;
}

.floating-banner-benefits li::before {
  content: '✓';
  margin-right: 8px;
  font-size: 12px;
  color: #ff881b;
  font-weight: bold;
}

.floating-banner-cta {
  background: #ff881b;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 5px 20px rgba(255, 136, 27, 0.25);
}

.floating-banner-cta:hover {
  background: #ff9c3d;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 136, 27, 0.35);
}

/* Pop-up Modal */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 25, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.popup-overlay.active {
  visibility: visible;
}

.popup-modal {
  background: linear-gradient(145deg, #1c2541, #2a355a);
  border-radius: 20px;
  max-width: 650px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.popup-overlay.active .popup-modal {
  transform: scale(1);
}

.popup-header {
  background: transparent;
  padding: 35px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

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

.popup-title {
  color: white;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px 0;
  font-family: 'Source Sans Pro', sans-serif;
  line-height: 1.3;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.popup-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin: 0;
}

.popup-content {
  padding: 40px;
}

.popup-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.popup-benefits li {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: #e0e5f0;
  line-height: 1.5;
}

.popup-benefits li::before {
  content: '✓';
  margin-right: 15px;
  font-size: 18px;
  flex-shrink: 0;
  color: #ff881b;
  font-weight: bold;
}

.popup-highlight {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 136, 27, 0.2);
  text-align: center;
}

.popup-highlight-text {
  color: #ffc58c;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.popup-cta {
  background: #ff881b;
  color: white;
  border: none;
  padding: 18px 35px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 5px 20px rgba(255, 136, 27, 0.25);
}

.popup-cta:hover {
  background: #ff9c3d;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 136, 27, 0.35);
}

/* Animations */
@keyframes slideInUp {
  from {
    transform: translateY(100px);
  }
  to {
    transform: translateY(0);
  }
}

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

.floating-banner:hover {
  animation: pulse 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .popup-modal {
    max-width: 600px;
    width: 92%;
  }

  .popup-header {
    padding: 30px;
  }

  .popup-content {
    padding: 35px;
  }
}

@media (max-width: 768px) {
  .floating-banner {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    bottom: 20px;
    max-width: 400px;
    margin: 0 auto;
  }

  .popup-modal {
    margin: 15px;
    width: calc(100% - 30px);
    max-width: 500px;
  }

  .popup-header {
    padding: 25px 20px;
  }

  .popup-title {
    font-size: 22px;
    line-height: 1.2;
  }

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

  .popup-content {
    padding: 30px 25px;
  }

  .popup-benefits li {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .popup-highlight {
    padding: 20px;
    margin-bottom: 25px;
  }

  .popup-highlight-text {
    font-size: 18px;
  }

  .popup-cta {
    padding: 16px 30px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .floating-banner {
    width: calc(100% - 20px);
    right: 10px;
    left: 10px;
    bottom: 10px;
    max-width: none;
  }

  .floating-banner-header {
    padding: 10px 12px;
  }

  .floating-banner-title {
    font-size: 13px;
  }

  .floating-banner-content {
    padding: 12px;
  }

  .floating-banner-subtitle {
    font-size: 11px;
  }

  .floating-banner-benefits li {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .floating-banner-cta {
    padding: 8px 16px;
    font-size: 11px;
  }

  .popup-modal {
    margin: 10px;
    width: calc(100% - 20px);
    max-height: 95vh;
  }

  .popup-header {
    padding: 20px 15px;
  }

  .popup-title {
    font-size: 20px;
  }

  .popup-subtitle {
    font-size: 13px;
  }

  .popup-content {
    padding: 25px 20px;
  }

  .popup-benefits li {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .popup-benefits li::before {
    margin-right: 12px;
    font-size: 14px;
  }

  .popup-highlight {
    padding: 18px 15px;
    margin-bottom: 20px;
  }

  .popup-highlight-text {
    font-size: 16px;
  }

  .popup-cta {
    padding: 14px 25px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .floating-banner-title {
    font-size: 12px;
  }

  .floating-banner-benefits li {
    font-size: 9px;
  }

  .popup-title {
    font-size: 18px;
  }

  .popup-benefits li {
    font-size: 13px;
  }

  .popup-highlight-text {
    font-size: 15px;
  }
}

/* Landscape orientation for mobile */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .popup-modal {
    max-height: 95vh;
    width: 85%;
    max-width: 700px;
  }

  .popup-header {
    padding: 20px;
  }

  .popup-title {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .popup-subtitle {
    font-size: 13px;
  }

  .popup-content {
    padding: 25px;
  }

  .popup-benefits {
    margin-bottom: 20px;
  }

  .popup-benefits li {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .popup-highlight {
    padding: 15px;
    margin-bottom: 20px;
  }

  .popup-highlight-text {
    font-size: 16px;
  }

  .popup-cta {
    padding: 12px 25px;
    font-size: 14px;
  }

  .floating-banner {
    bottom: 10px;
    right: 10px;
    width: 280px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .popup-modal {
    border-radius: 18px;
  }

  .popup-header {
    border-radius: 18px 18px 0 0;
  }

  .floating-banner {
    border-radius: 12px;
  }
}
