/* FRONTEND_UPDATE_START: [Popup modal stilleri] */
/* 
 * Cerrahpaşa Tıp Fakültesi — Aday Öğrenci Websitesi
 * Component: Entry Announcement Popup Modal
 */

.entry-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 3, 5, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000; /* Ensure it floats above lightboxes (z-index 2000) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding: 24px;
}

.entry-popup.open {
  opacity: 1;
  pointer-events: all;
}

.entry-popup-content {
  position: relative;
  max-width: 500px;
  width: 100%;
  background: rgba(26, 5, 8, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.entry-popup.open .entry-popup-content {
  transform: scale(1);
}

.entry-popup-body {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.entry-popup-body a {
  display: block;
  width: 100%;
  height: 100%;
}

.entry-popup-body img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-normal);
}

.entry-popup-body img[src=""] {
  display: none;
}

.entry-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 3, 5, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 3010;
}

.entry-popup-close:hover {
  background: var(--color-gold);
  transform: rotate(90deg);
  border-color: var(--color-gold);
}

.entry-popup-close svg {
  stroke: var(--color-white);
  fill: none;
  width: 16px;
  height: 16px;
  stroke-width: 3;
  transition: stroke var(--transition-fast);
}

.entry-popup-close:hover svg {
  stroke: var(--color-primary-dark);
}

@media (max-width: 576px) {
  .entry-popup {
    padding: 16px;
  }
  .entry-popup-content {
    max-width: 100%;
  }
  .entry-popup-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }
}
/* FRONTEND_UPDATE_END */
