/* Açılış popup'ı */
body.welcome-popup-open {
  overflow: hidden;
}

.welcome-popup[hidden] {
  display: none !important;
}

.welcome-popup {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.welcome-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.welcome-popup__dialog {
  position: relative;
  z-index: 1;
  max-width: min(640px, 100%);
  animation: welcome-popup-in 0.3s ease;
}

.welcome-popup__link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.welcome-popup__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
}

.welcome-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.welcome-popup__close:hover {
  background: #fff;
  color: #a60a27;
}

@keyframes welcome-popup-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
