/* Site pop-up (modal) — mobil ve masaüstü uyumlu */
.sp-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 10, 10, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .25s ease;
  overscroll-behavior: contain;
}
.sp-overlay.sp-acik { opacity: 1; }

.sp-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  background: #fff;
  color: #151515;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(.97);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.sp-overlay.sp-acik .sp-modal { transform: none; }
.sp-modal.sp-kucuk { max-width: 420px; }
.sp-modal.sp-orta { max-width: 560px; }
.sp-modal.sp-buyuk { max-width: 760px; }

.sp-kapat {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #151515;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: transform .15s ease, background .15s ease;
}
.sp-kapat svg { display: block; }
.sp-kapat:hover { transform: rotate(90deg); background: #fff; }
.sp-kapat:focus-visible { outline: 2px solid #c9a24d; outline-offset: 2px; }

.sp-gorsel {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;      /* 2:1 sabit oran; görsel ne olursa olsun kutu büyümez */
  overflow: hidden;
  background: #f2f2f2;
}
.sp-gorsel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.sp-govde {
  padding: 28px 28px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sp-baslik {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  padding-right: 24px;
}
.sp-icerik { font-size: 15.5px; line-height: 1.65; color: #333; }
.sp-icerik p { margin: 0 0 12px; }
.sp-icerik p:last-child { margin-bottom: 0; }
.sp-icerik ul, .sp-icerik ol { margin: 0 0 12px; padding-left: 22px; }
.sp-icerik a { color: #151515; text-decoration: underline; }
.sp-icerik strong { font-weight: 700; }

.sp-eylem { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.sp-buton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #151515;
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: background .15s ease, transform .15s ease;
}
.sp-buton:hover { background: #000; transform: translateY(-1px); }
.sp-buton-ikincil { background: transparent; color: #151515 !important; border: 1.5px solid #dcdcdc; }
.sp-buton-ikincil:hover { background: #f5f5f5; }

body.sp-kilit { overflow: hidden; }

@media (max-width: 600px) {
  .sp-overlay { padding: 0; align-items: flex-end; }
  .sp-modal, .sp-modal.sp-kucuk, .sp-modal.sp-orta, .sp-modal.sp-buyuk {
    max-width: 100%;
    max-height: 78vh;
    max-height: 78dvh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  /* Görsel ekranın en fazla ~%30'unu kaplasın; metin ve butonlar görünür kalsın */
  .sp-gorsel { padding-bottom: 0; height: 30vh; height: 30dvh; max-height: 240px; }
  .sp-govde { padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); }
  .sp-baslik { font-size: 19px; margin-bottom: 8px; padding-right: 36px; }
  .sp-icerik { font-size: 14.5px; line-height: 1.55; }
  .sp-eylem { margin-top: 14px; flex-direction: row; gap: 8px; }
  .sp-buton { flex: 1 1 0; min-height: 44px; padding: 10px 14px; font-size: 14px; }
  .sp-kapat { top: 8px; right: 8px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-overlay, .sp-modal, .sp-kapat { transition: none; }
}
