/* Popup System CSS */

#popupPanel {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: backdrop-filter 0.3s, background 0.3s;
}

.popup-content {
  background: #ffffff;
  color: #141414;
  border-radius: 12px;
  padding: 32px 24px 24px 24px;
  min-width: 380px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 18px 45px rgba(20, 20, 20, 0.12);
  text-align: left;
  position: relative;
  animation: popup-in 0.25s ease-out both;
}

/* Mobil görünüm için min-width'i 90% yap */
@media (max-width: 768px) {
  .popup-content {
    min-width: 90%;
  }
}

#popupPanel.closing .popup-content {
  animation: popup-out 0.2s ease-in both;
}

@keyframes popup-in {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes popup-out {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0; }
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: #98a1b0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.popup-close:hover { 
  color: #4b5563;
}

.popup-icon {
  font-size: 46px;
  margin-bottom: 10px;
  color: #2563eb;
}

.popup-title {
  margin: 0 0 8px 0;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #111827;
}

.popup-message {
  margin: 0 0 22px 0;
  font-size: 0.95rem;
  color: #374151;
}

.popup-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.popup-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  min-width: 110px;
}

/* Hover efekti */
.popup-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.popup-btn-secondary {
  background: #f1f5f9;
  color: #334155;
}

.popup-btn-secondary:hover { 
  background: #e2e8f0; 
}

/* Form elemanları için modern stiller */
/* Popup image styles */
.popup-image {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

/* Scrollbar gizleme */
.popup-content::-webkit-scrollbar {
  display: none;
}

.popup-content {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .popup-content {
    padding: 24px 18px 18px 18px;
    min-width: 0;
    max-width: 90vw;
  }

  .popup-title {
    font-size: 1.2rem;
  }

  .popup-message {
    font-size: 0.95rem;
  }

  .popup-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .popup-btn,
  .popup-btn-secondary {
    width: 100%;
  }
}
