/* Welcome Popup Styles */

.welcome-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: popupFadeIn 0.3s ease-out forwards;
}

.welcome-popup {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid #FFD700;
  border-radius: 20px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  animation: popupSlideIn 0.3s ease-out forwards;
}

.popup-closing {
  animation: popupFadeOut 0.3s ease-in forwards;
}

.popup-closing .welcome-popup {
  animation: popupSlideOut 0.3s ease-in forwards;
}

/* Popup Header */
.popup-header {
  text-align: center;
  margin-bottom: 25px;
}

.popup-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.popup-header h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  font-family: 'Poppins', sans-serif;
}

.popup-subtitle {
  color: #FFD700;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

/* Popup Content */
.popup-content {
  margin-bottom: 25px;
}

.discount-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  padding: 15px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.discount-amount {
  font-size: 32px;
  font-weight: 900;
  font-family: 'Poppins', sans-serif;
}

.discount-off {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.popup-description {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.coupon-code {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed #FFD700;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.coupon-code span {
  color: #fff;
  font-size: 14px;
}

.coupon-code code {
  background: #FFD700;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.copy-code {
  background: #0077B5;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-code:hover {
  background: #005a8b;
  transform: translateY(-2px);
}

.offer-details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.offer-details p {
  color: #ccc;
  font-size: 14px;
  margin: 5px 0;
  display: flex;
  align-items: center;
}

.offer-details p:before {
  content: '•';
  color: #FFD700;
  margin-right: 8px;
  font-weight: bold;
}

/* Popup Actions */
.popup-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Popup Footer */
.popup-footer {
  text-align: center;
}

.dont-show-again {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
}

.dont-show-again input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #FFD700;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

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

/* Animations */
@keyframes popupFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupSlideIn {
  from {
    transform: scale(0.9) translateY(20px);
  }
  to {
    transform: scale(1) translateY(0);
  }
}

@keyframes popupFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes popupSlideOut {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(0.9) translateY(20px);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .welcome-popup {
    padding: 20px;
    margin: 20px;
    max-width: calc(100% - 40px);
  }
  
  .popup-header h2 {
    font-size: 20px;
  }
  
  .popup-subtitle {
    font-size: 16px;
  }
  
  .discount-amount {
    font-size: 28px;
  }
  
  .popup-actions {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .coupon-code {
    flex-direction: column;
    gap: 10px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .welcome-popup-overlay,
  .welcome-popup {
    animation: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .welcome-popup {
    border-width: 3px;
  }
  
  .discount-badge {
    border: 2px solid #000;
  }
  
  .coupon-code {
    border-width: 3px;
  }
}

/* Focus styles for accessibility */
.popup-close:focus,
.copy-code:focus,
.btn-primary:focus,
.btn-secondary:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .welcome-popup-overlay {
    display: none;
  }
} 