/* Ad Modal styles */
.ad-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.ad-modal[style*="display: block"] {
  display: flex !important;
}

.ad-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

.ad-modal__dialog {
  position: relative;
  /* width: 100%;
  max-width: 100%; */
  margin: 0 auto;
  /* background: white; */
  border-radius: 16px;
  overflow: hidden;
  /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); */
  z-index: 10001;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ad-modal__content {
  padding: 3rem;
  text-align: center;
}

.ad-modal__image {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.ad-modal__title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.ad-modal__description {
  font-size: 16px;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.ad-modal__button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #a62c00 0%, #d14005 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.ad-modal__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(166, 44, 0, 0.3);
}

.ad-modal__close {
  position: absolute;
  top: 6px;
  right: 38px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10002;
}

.ad-modal__close:hover {
  color: #d7d7d7;
}

/* Helper classes */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.ad-clickable {
  cursor: pointer;
}

/* Prevent background scroll when modal open */
.ad-modal-open {
  overflow: hidden;
}

/* Responsive styles */
@media (max-width: 640px) {
  .ad-modal__dialog {
    width: 95%;
    max-width: 95%;
    margin: 10px;
  }

  .ad-modal__content {
    padding: 1.5rem;
  }

  .ad-modal__title {
    font-size: 20px;
  }

  .ad-modal__description {
    font-size: 14px;
  }

  .ad-modal__button {
    padding: 10px 25px;
    font-size: 14px;
  }

  .ad-modal__close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .ad-modal__content {
    padding: 1rem;
  }

  .ad-modal__title {
    font-size: 18px;
  }
}