/* 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: linear-gradient(135deg, #1f202e, #25273a);
  color: #fff;
  border-radius: 5px;
  padding: 28px 14px 14px 14px;
  min-width: 35%;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
  animation: popup-in 0.3s cubic-bezier(.4,2,.6,1) 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.25s cubic-bezier(.4,2,.6,1) 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: 12px;
  right: 18px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.popup-close:hover { 
  opacity: 1; 
}

.popup-icon {
  font-size: 55px;
  margin-bottom: 12px;
}

.popup-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.popup-message {
  margin: 0 0 18px 0;
  font-size: 16px;
}

.popup-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.popup-btn {
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 32px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  min-width: 100px;
}

/* Hover efekti */
.popup-btn:hover {
  background: #357abd; /* daha koyu mavi */
}
.popup-btn-secondary {
  background: #e74c3c;
  color: #fff;
}

.popup-btn-secondary:hover { 
  background: #c0392b; 
}

/* Form elemanları için modern stiller */
.popup-message input[type="text"],
.popup-message textarea {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  width: 100%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.popup-message input[type="text"]::placeholder,
.popup-message textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

/* Popup image styles */
.popup-image {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 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: 20px 10px 10px 10px;
    min-width: 95%;
  }
  
  .popup-title {
    font-size: 24px;
  }
  
  .popup-message {
    font-size: 16px;
  }
  
  .popup-btn {
    padding: 8px 24px;
    font-size: 16px;
    min-width: 80px;
  }
  
  .popup-buttons {
    gap: 8px;
  }
}
