/* Popup Reklam CSS Dosyası (popup_ad.css) */

.popup-ad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Yarı saydam arka plan */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.popup-ad-container {
  background-color: #ffffff;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 850px; /* Gönderilen resimdeki gibi dar bir yapı */
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.popup-ad-overlay.show .popup-ad-container {
  transform: scale(1);
}

.popup-ad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #7b51fa;
  border-bottom: 1px solid #7b51fa;
}

.popup-ad-brand {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.popup-ad-close {
  display: flex;
  align-items: center;
  background-color: #e9ecef;
  border: none;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 14px;
  color: #495057;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.popup-ad-close:hover:not(:disabled) {
  background-color: #ced4da;
}

.popup-ad-close:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.8;
}

.popup-ad-close .popup-ad-timer {
  margin-right: 8px;
  font-weight: 700;
  min-width: 12px; /* Sayı değişirken kaymayı önler */
  text-align: center;
}

.popup-ad-close i {
  font-size: 16px;
}

.popup-ad-content {
  line-height: 0; /* Resim/video altındaki boşluğu kaldırır */
}

.popup-ad-content a {
  display: block;
}

.popup-ad-media {
  width: 100%;
  height: auto;
  max-height: 70vh; /* Ekranı kaplamasın */
  object-fit: cover;
  display: block;
}

.popup-ad-footer {
  padding: 12px 15px;
  text-align: center;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.popup-ad-cta-link {
  text-decoration: none;
  color: #007bff;
  font-weight: 600;
  font-size: 14px;
}

.popup-ad-cta-link i {
  font-size: 12px;
  margin-left: 4px;
}
