/* === FLAT BUTONLAR === */
.pdb-download-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 25px;
  width: 100%;
}

.pdb-btn {
  width: 100%;
  background: #2b2b2b;
  color: #fff;
  padding: 12px 22px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: none;
  box-sizing: border-box;
}

.pdb-btn span {
  flex: 1;
  text-align: center;
}

.pdb-btn svg {
  flex-shrink: 0;
  fill: #fff;
  width: 14px;
  height: 14px;
  margin-left: 8px;
}

/* Hover sabit renk */
.pdb-btn:hover,
.pdb-btn:focus,
.pdb-btn:active {
  background: #2b2b2b !important;
  color: #fff !important;
}

/* === POPUP === */
.pdb-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  overflow: hidden;
}

.pdb-popup {
  position: relative;
  background: #fff;
  width: 85%;
  max-width: 900px;
  height: 80%;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: popupEnter 0.25s ease forwards;
  border-radius: 8px;
}

/* === İçerik === */
.pdb-popup-content {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.pdb-popup-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: auto;
}

.pdb-popup-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* === KAPATMA BUTONU (X) === */
.pdb-popup-close {
  position: absolute;
  top: 10px;            /* popup kutusuna göre hizalı */
  right: 10px;
  width: 34px;
  height: 34px;
  line-height: 30px;
  text-align: center;
  font-size: 22px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 1000;
  transition: 0.25s ease;
}

.pdb-popup-close:hover {
  background: rgba(0,0,0,0.7);
  transform: scale(1.05);
}

/* === ANİMASYON === */
@keyframes popupEnter {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .pdb-popup {
    width: 90%;
    height: 80%;
  }

  .pdb-popup-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .pdb-popup {
    width: 92%;
    height: 75%;
  }

  .pdb-popup-close {
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .pdb-popup {
    width: 95%;
    height: 70%;
  }

  .pdb-popup-close {
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}