/* ============================================
   POPUP MODAL STYLES
   ============================================ */

.popup-modal {
  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: 99999;
  animation: fadeIn 0.3s ease-in-out;
}

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

.popup-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #307bc4;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background: #255a91;
  transform: rotate(90deg);
}

/* ============================================
   SADECE FOTOĞRAF
   ============================================ */

.popup-image-only {
  padding: 20px;
}

.popup-image-only .popup-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 15px;
  object-fit: contain;
}

/* ============================================
   FOTOĞRAF + METİN
   ============================================ */

.popup-mixed {
  display: flex;
  flex-direction: column;
  max-width: 700px;
}

.popup-mixed .popup-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.popup-mixed .popup-text {
  padding: 30px;
}

/* ============================================
   SADECE METİN
   ============================================ */

.popup-text-only {
  padding: 40px;
  max-width: 600px;
  text-align: center;
}

/* ============================================
   METIN STİLLERİ
   ============================================ */

.popup-title {
  font-size: 28px;
  font-weight: 600;
  color: #307bc4;
  margin-bottom: 15px;
  line-height: 1.3;
}

.popup-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .popup-content {
    max-width: 95%;
    max-height: 85vh;
    margin: 20px;
  }

  .popup-close {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 10px;
    right: 10px;
  }

  .popup-mixed {
    max-width: 100%;
  }

  .popup-mixed .popup-img {
    height: 250px;
  }

  .popup-mixed .popup-text {
    padding: 20px;
  }

  .popup-text-only {
    padding: 25px;
    max-width: 100%;
  }

  .popup-title {
    font-size: 22px;
  }

  .popup-description {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .popup-mixed .popup-img {
    height: 200px;
  }

  .popup-title {
    font-size: 20px;
  }

  .popup-description {
    font-size: 13px;
  }
}

/* ============================================
   SCROLL STİLLERİ
   ============================================ */

.popup-content::-webkit-scrollbar {
  width: 8px;
}

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

.popup-content::-webkit-scrollbar-thumb {
  background: #307bc4;
  border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: #255a91;
}
