/*==============================
    Duyuru Popup Styles
==============================*/

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Body scroll lock when popup is active */
body.popup-active {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

.duyuru-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.duyuru-popup.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.duyuru-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.duyuru-popup-content {
  position: relative;
  background-color: var(--white-color, #ffffff);
  border-radius: 12px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000000;
}

.duyuru-popup.active .duyuru-popup-content {
  transform: scale(1);
}

.duyuru-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  background-color: var(--theme-color, #caa13e);
  color: var(--white-color, #ffffff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000001;
  transition: all 0.3s ease;
  font-size: 18px;
  line-height: 1;
}

.duyuru-popup-close:hover {
  background-color: var(--title-color, #000000);
  transform: rotate(90deg);
}

.duyuru-popup-close:focus {
  outline: 2px solid var(--theme-color, #caa13e);
  outline-offset: 2px;
}

.duyuru-popup-body {
  padding: 40px 30px;
}

.duyuru-popup-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.duyuru-popup-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.duyuru-popup-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .duyuru-popup-content {
    max-width: 95%;
  }

  .duyuru-popup-body {
    padding: 30px 20px;
  }
}

@media (max-width: 767.98px) {
  .duyuru-popup {
    padding: 15px;
  }

  .duyuru-popup-content {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 8px;
  }

  .duyuru-popup-body {
    padding: 25px 15px;
  }

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

  .duyuru-popup-image {
    margin-bottom: 15px;
  }

  .duyuru-popup-image:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .duyuru-popup-body {
    padding: 20px 10px;
  }
}

/* Scrollbar Styling */
.duyuru-popup-content::-webkit-scrollbar {
  width: 8px;
}

.duyuru-popup-content::-webkit-scrollbar-track {
  background: var(--light-color, #f8f9fa);
  border-radius: 4px;
}

.duyuru-popup-content::-webkit-scrollbar-thumb {
  background: var(--theme-color, #caa13e);
  border-radius: 4px;
}

.duyuru-popup-content::-webkit-scrollbar-thumb:hover {
  background: var(--title-color, #000000);
}

/* Animation for images */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.duyuru-popup.active .duyuru-popup-image {
  animation: fadeInUp 0.5s ease forwards;
}

.duyuru-popup.active .duyuru-popup-image:nth-child(1) {
  animation-delay: 0.1s;
}

.duyuru-popup.active .duyuru-popup-image:nth-child(2) {
  animation-delay: 0.2s;
}

