/**
 * Info Popup Styles
 * Non-intrusive, modern popup with Apple-like minimal design
 * All classes prefixed with 'info-popup-' to avoid conflicts
 */

/* Overlay backdrop */
.info-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-popup-overlay.info-popup-active {
  opacity: 1;
  visibility: visible;
}

/* Popup container */
.info-popup-container {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 100%;
  padding: 2.5rem 2rem 2rem;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  z-index: 9999;
}

.info-popup-overlay.info-popup-active .info-popup-container {
  transform: scale(1) translateY(0);
}

/* Close button */
.info-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
}

.info-popup-close:hover {
  background: #e5e7eb;
  color: #374151;
  transform: rotate(90deg);
}

.info-popup-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* Content */
.info-popup-content {
  text-align: center;
  margin-bottom: 2rem;
}

.info-popup-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.info-popup-message {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Buttons container */
.info-popup-buttons {
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

/* Button base styles */
.info-popup-btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
}

.info-popup-btn:active {
  transform: scale(0.98);
}

/* Accept button - Primary pink */
.info-popup-btn-accept {
  background: linear-gradient(135deg, #e13574 0%, #c71c5c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(225, 53, 116, 0.3);
}

.info-popup-btn-accept:hover {
  background: linear-gradient(135deg, #c71c5c 0%, #9e1646 100%);
  box-shadow: 0 6px 16px rgba(225, 53, 116, 0.4);
  transform: translateY(-1px);
}

/* Reject button - Secondary gray */
.info-popup-btn-reject {
  background: #f3f4f6;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-popup-btn-reject:hover {
  background: #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* Responsive design */
@media (min-width: 640px) {
  .info-popup-buttons {
    flex-direction: row;
  }
  
  .info-popup-btn {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .info-popup-container {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 16px;
  }
  
  .info-popup-title {
    font-size: 1.25rem;
  }
  
  .info-popup-message {
    font-size: 0.9375rem;
  }
  
  .info-popup-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* Prevent body scroll when popup is active */
body.info-popup-no-scroll {
  overflow: hidden;
}

/* Animation for fade out */
.info-popup-overlay.info-popup-closing {
  opacity: 0;
}

.info-popup-overlay.info-popup-closing .info-popup-container {
  transform: scale(0.9) translateY(20px);
}
