/* Popup Modal Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.popup-modal {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

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

.popup-header {
  position: relative;
  padding: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.popup-header-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  transition: all 0.2s ease;
  z-index: 10;
}

.popup-close:hover {
  background: white;
  transform: scale(1.1);
}

.popup-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #2563eb;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.popup-content {
  padding: 32px;
}

.popup-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  line-height: 1.3;
}

.popup-description {
  color: #6b7280;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.popup-details {
  margin-bottom: 32px;
}

.popup-section {
  margin-bottom: 24px;
}

.popup-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup-section-icon {
  width: 20px;
  height: 20px;
  color: #2563eb;
}

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

.popup-list li {
  padding: 8px 0;
  color: #4b5563;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.popup-list li:before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.popup-highlight {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  border-left: 4px solid #2563eb;
}

.popup-highlight h4 {
  color: #1f2937;
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.popup-highlight p {
  color: #4b5563;
  margin: 0;
}

.popup-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.popup-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.popup-btn-primary {
  background: #2563eb;
  color: white;
}

.popup-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.popup-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.popup-btn-secondary:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.popup-btn svg {
  width: 16px;
  height: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .popup-modal {
    width: 95%;
    margin: 20px;
  }
  
  .popup-content {
    padding: 24px;
  }
  
  .popup-title {
    font-size: 1.5rem;
  }
  
  .popup-actions {
    flex-direction: column;
  }
  
  .popup-btn {
    justify-content: center;
  }
}

/* Animation for smooth scrolling */
.popup-modal::-webkit-scrollbar {
  width: 6px;
}

.popup-modal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.popup-modal::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.popup-modal::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}