/* Site pop-up'ı — bkz. public/assets/js/site-popup.js, App\Core\SitePopup.
   Renkler temanın --t-* değişkenlerinden gelir (koyu mod dahil); panel önizlemesinde yedek değerler kullanılır. */
.spop{
  --sp-surface:var(--t-surface,#fff);
  --sp-text:var(--t-text,#0f172a);
  --sp-muted:var(--t-muted,#64748b);
  --sp-border:var(--t-border,rgba(15,23,42,.1));
  --sp-accent:var(--t-accent,#4f46e5);
  --sp-radius:24px;
  --sp-ease:cubic-bezier(.16,1,.3,1);
  position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;
  padding:24px;pointer-events:none;font-family:inherit;color:var(--sp-text);
}
.spop *{box-sizing:border-box}
.spop--bottom-right{align-items:flex-end;justify-content:flex-end;inset:auto 0 0 auto}
.spop--bottom-left{align-items:flex-end;justify-content:flex-start;inset:auto auto 0 0}

.spop-overlay{position:absolute;inset:0;background:rgba(2,6,23,.55);opacity:0;transition:opacity .35s ease;pointer-events:auto}
.spop--blur .spop-overlay{-webkit-backdrop-filter:blur(6px) saturate(120%);backdrop-filter:blur(6px) saturate(120%)}
.spop.is-open .spop-overlay{opacity:1}

.spop-dialog{
  position:relative;pointer-events:auto;width:100%;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);
  overflow:auto;overscroll-behavior:contain;background:var(--sp-surface);border-radius:var(--sp-radius);
  box-shadow:0 30px 80px -20px rgba(2,6,23,.45),0 0 0 1px var(--sp-border);
  opacity:0;transition:opacity .3s ease,transform .45s var(--sp-ease);outline:none;scrollbar-width:thin;
}
.spop--sm .spop-dialog{max-width:420px}
.spop--md .spop-dialog{max-width:560px}
.spop--lg .spop-dialog{max-width:820px}
.spop--bottom-right .spop-dialog,.spop--bottom-left .spop-dialog{max-width:min(380px,100%)}
.spop--bottom-right.spop--lg .spop-dialog,.spop--bottom-left.spop--lg .spop-dialog{max-width:min(460px,100%)}

/* Giriş animasyonları */
.spop--anim-zoom .spop-dialog{transform:scale(.92) translateY(10px)}
.spop--anim-slide .spop-dialog{transform:translateY(40px)}
.spop--anim-fade .spop-dialog{transform:none}
.spop.is-open .spop-dialog{opacity:1;transform:none}
.spop.is-closing .spop-dialog{opacity:0;transform:scale(.97) translateY(6px);transition-duration:.22s}
.spop.is-closing .spop-overlay{opacity:0;transition-duration:.22s}

/* Kapat düğmesi — koyu cam efektli yuvarlak düğme; her zeminde (açık/koyu/görsel üstü) okunur.
   Otomatik kapanma açıksa etrafındaki halka geri sayar (bkz. site-popup.js). */
.spop-close{
  position:absolute;top:14px;right:14px;z-index:5;width:40px;height:40px;padding:0;border:0;border-radius:50%;cursor:pointer;
  display:grid;place-items:center;color:#fff;
  background:rgba(15,23,42,.42);
  -webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 6px 18px -6px rgba(2,6,23,.45);
  transition:transform .35s var(--sp-ease),background .25s ease,box-shadow .25s ease;
  -webkit-tap-highlight-color:transparent;
}
.spop-close>svg{grid-area:1/1}
.spop-close-x{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;transition:transform .45s var(--sp-ease)}
.spop-close:hover{background:rgba(15,23,42,.72);transform:scale(1.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3),0 10px 24px -8px rgba(2,6,23,.55)}
.spop-close:hover .spop-close-x{transform:rotate(90deg)}
.spop-close:active{transform:scale(.94)}
.spop-close:focus-visible{outline:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3),0 0 0 3px var(--sp-surface),0 0 0 6px var(--sp-accent)}
.spop-close-ring{width:40px;height:40px;transform:rotate(-90deg);opacity:0;pointer-events:none}
.spop-close.has-timer .spop-close-ring{opacity:1}
.spop-ring-bg,.spop-ring-fg{fill:none;stroke-width:2.5}
.spop-ring-bg{stroke:rgba(255,255,255,.2)}
.spop-ring-fg{stroke:#fff;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:0}
/* Görselsiz metin pencerelerinde açık zemine uyan yumuşak düğme */
.spop-dialog:has(.spop-layout-none) .spop-close{
  color:var(--sp-text);background:color-mix(in srgb,var(--sp-text) 7%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sp-text) 10%,transparent);
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
.spop-dialog:has(.spop-layout-none) .spop-close:hover{background:var(--sp-text);color:var(--sp-surface)}
.spop-dialog:has(.spop-layout-none) .spop-ring-bg{stroke:color-mix(in srgb,var(--sp-text) 15%,transparent)}
.spop-dialog:has(.spop-layout-none) .spop-ring-fg{stroke:var(--sp-accent)}
/* Yan yerleşimde düğme metin tarafında (açık zemin) kalır */
@media (min-width:640px){
  .spop--center .spop-dialog:has(.spop-layout-side) .spop-close{color:var(--sp-text);background:color-mix(in srgb,var(--sp-text) 7%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sp-text) 10%,transparent);-webkit-backdrop-filter:none;backdrop-filter:none}
  .spop--center .spop-dialog:has(.spop-layout-side) .spop-close:hover{background:var(--sp-text);color:var(--sp-surface)}
  .spop--center .spop-dialog:has(.spop-layout-side) .spop-ring-fg{stroke:var(--sp-accent)}
  .spop--center .spop-dialog:has(.spop-layout-side) .spop-ring-bg{stroke:color-mix(in srgb,var(--sp-text) 15%,transparent)}
}

/* Yalnızca görsel */
.spop--type-image .spop-dialog{background:transparent;box-shadow:0 30px 80px -20px rgba(2,6,23,.55);overflow:hidden}
.spop-imglink{display:block;line-height:0;border-radius:var(--sp-radius);overflow:hidden}
.spop-img{display:block;width:100%;height:auto;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);object-fit:contain;background:var(--sp-surface)}
a.spop-imglink .spop-img{transition:transform .6s var(--sp-ease)}
a.spop-imglink:hover .spop-img{transform:scale(1.02)}
.spop--type-image .spop-dialog{background:var(--sp-surface)}
.spop--type-image .spop-imglink{border-radius:var(--sp-radius) var(--sp-radius) 0 0}
.spop--type-image .spop-dialog>.spop-imglink:last-child{border-radius:var(--sp-radius)}
.spop--type-image .spop-foot{padding:10px 18px 12px}

/* Başlık + metin */
.spop-body{display:flex;flex-direction:column}
.spop-media{margin:0;position:relative;overflow:hidden;background:color-mix(in srgb,var(--sp-accent) 8%,var(--sp-surface))}
.spop-media img{display:block;width:100%;height:auto;max-height:42vh;object-fit:cover}
.spop-media a{display:block;line-height:0}
.spop-layout-top .spop-media::after{content:"";position:absolute;inset:auto 0 0 0;height:36%;background:linear-gradient(to top,color-mix(in srgb,var(--sp-surface) 55%,transparent),transparent);pointer-events:none}
.spop-main{padding:30px 32px 30px}
.spop-layout-none .spop-main{padding-top:38px}
.spop-badge{
  display:inline-flex;align-items:center;gap:6px;margin-bottom:12px;padding:5px 12px;border-radius:999px;
  font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  color:var(--sp-accent);background:color-mix(in srgb,var(--sp-accent) 12%,transparent);
}
.spop-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb,var(--sp-accent) 20%,transparent)}
.spop-title{margin:0 0 10px;font-size:clamp(20px,2.6vw,26px);line-height:1.25;font-weight:800;letter-spacing:-.01em;color:var(--sp-text);padding-right:36px}
.spop-layout-top .spop-title,.spop-layout-side .spop-title{padding-right:0}
.spop-text{font-size:15px;line-height:1.65;color:var(--sp-muted)}
.spop-text>*:first-child{margin-top:0}
.spop-text>*:last-child{margin-bottom:0}
.spop-text p{margin:0 0 .75em}
.spop-text a{color:var(--sp-accent);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.spop-text strong,.spop-text b{color:var(--sp-text)}
.spop-text ul,.spop-text ol{margin:0 0 .75em;padding-left:1.25em}
.spop-text ul{list-style:disc}.spop-text ol{list-style:decimal}
.spop-text img{max-width:100%;height:auto;border-radius:12px}
.spop-text iframe{max-width:100%;border-radius:12px}
.spop-cta{
  margin-top:22px;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 24px;
  border:0;border-radius:14px;cursor:pointer;font:inherit;font-size:15px;font-weight:700;text-decoration:none;color:#fff;
  background:linear-gradient(135deg,var(--sp-accent),color-mix(in srgb,var(--sp-accent) 70%,#000));
  box-shadow:0 10px 24px -10px var(--sp-accent);transition:transform .2s var(--sp-ease),box-shadow .2s;
}
.spop-cta svg{transition:transform .25s var(--sp-ease)}
.spop-cta:hover{transform:translateY(-1px);box-shadow:0 14px 30px -10px var(--sp-accent);color:#fff}
.spop-cta:hover svg{transform:translateX(3px)}
.spop-cta:focus-visible{outline:3px solid color-mix(in srgb,var(--sp-accent) 45%,transparent);outline-offset:3px}

/* Yan yana görsel */
@media (min-width:640px){
  .spop-layout-side{flex-direction:row;align-items:stretch}
  .spop-layout-side .spop-media{flex:0 0 44%}
  .spop-layout-side .spop-media img,.spop-layout-side .spop-media a{height:100%;max-height:none}
  .spop-layout-side .spop-media img{min-height:100%}
  .spop-layout-side .spop-main{flex:1;display:flex;flex-direction:column;justify-content:center;padding:40px 36px}
  .spop-layout-side .spop-cta{align-self:flex-start}
  .spop--sm .spop-layout-side{flex-direction:column}
}

/* "Bir daha gösterme" */
.spop-foot{padding:12px 32px 16px;border-top:1px solid var(--sp-border)}
.spop-dont{display:inline-flex!important;align-items:center;gap:8px;font-size:13px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;color:var(--sp-muted);cursor:pointer;user-select:none;margin:0}
.spop-dont input{width:16px;height:16px;margin:0;accent-color:var(--sp-accent);cursor:pointer}

/* Köşe kartları: arka planı kapatmaz */
.spop--bottom-right .spop-layout-side,.spop--bottom-left .spop-layout-side{flex-direction:column!important}
.spop--bottom-right .spop-layout-side .spop-media,.spop--bottom-left .spop-layout-side .spop-media{flex:none}
.spop--bottom-right .spop-media img,.spop--bottom-left .spop-media img{max-height:200px;height:auto;min-height:0}
.spop--bottom-right .spop-layout-side .spop-main,.spop--bottom-left .spop-layout-side .spop-main{padding:22px 24px 22px}
.spop--bottom-right .spop-main,.spop--bottom-left .spop-main{padding:24px 24px 22px}
.spop--bottom-right .spop-title,.spop--bottom-left .spop-title{font-size:19px}
.spop--bottom-right .spop-foot,.spop--bottom-left .spop-foot{padding:10px 24px 14px}

/* Mobil: köşe kartları alttan açılan panele, ortadaki pencere kenar boşluklu karta dönüşür */
@media (max-width:767px){
  .spop{padding:14px}
  .spop-main{padding:24px 22px 22px}
  .spop-foot{padding:10px 22px 14px}
  .spop--bottom-right,.spop--bottom-left{inset:auto 0 0 0;padding:0}
  .spop--bottom-right .spop-dialog,.spop--bottom-left .spop-dialog{max-width:100%;border-radius:22px 22px 0 0;max-height:85vh}
  .spop--bottom-right .spop-dialog,.spop--bottom-left .spop-dialog{transform:translateY(100%)}
  .spop--bottom-right.is-open .spop-dialog,.spop--bottom-left.is-open .spop-dialog{transform:none}
  .spop-cta{width:100%}
  .spop-media img{max-height:32vh}
}

@media (prefers-reduced-motion:reduce){
  .spop-overlay,.spop-dialog,.spop-close,.spop-cta,.spop-img{transition:opacity .2s linear!important;transform:none!important}
}

/* Panel önizlemesi: tema değişkenleri olmadan da düzgün görünsün */
.spop--preview{--sp-surface:#fff;--sp-text:#0f172a;--sp-muted:#475569;--sp-border:rgba(15,23,42,.1)}

/* ═════════ Alt orta konum ═════════ */
.spop--bottom-center{align-items:flex-end;justify-content:center;inset:auto 0 0 0}
.spop--bottom-center .spop-dialog{max-width:min(560px,100%)}
.spop--bottom-center.spop--sm .spop-dialog{max-width:min(420px,100%)}
.spop--bottom-center.spop--lg .spop-dialog{max-width:min(760px,100%)}
.spop--bottom-center .spop-layout-side{flex-direction:column!important}
@media (max-width:767px){
  .spop--bottom-center{padding:0}
  .spop--bottom-center .spop-dialog{max-width:100%;border-radius:22px 22px 0 0;max-height:85vh;transform:translateY(100%)}
  .spop--bottom-center.is-open .spop-dialog{transform:none}
}

/* ═════════ Tasarım 2: VİTRİN — görsel tüm kartın arka planı, metin üzerinde ═════════ */
.spop--style-spotlight .spop-dialog{background:#0b1020;color:#fff;box-shadow:0 40px 90px -24px rgba(2,6,23,.7),0 0 0 1px rgba(255,255,255,.08)}
.spop-layout-spot{position:relative;min-height:min(520px,78vh);justify-content:flex-end;overflow:hidden;border-radius:var(--sp-radius) var(--sp-radius) 0 0}
.spop--style-spotlight .spop-dialog>.spop-body:last-child .spop-layout-spot,.spop--style-spotlight .spop-dialog>.spop-layout-spot:last-child{border-radius:var(--sp-radius)}
.spop-layout-spot .spop-media{position:absolute;inset:0;background:#0b1020}
.spop-layout-spot .spop-media a{height:100%}
.spop-layout-spot .spop-media img{width:100%;height:100%;max-height:none;object-fit:cover;transform:scale(1.06);transition:transform 6s cubic-bezier(.2,.7,.2,1)}
.spop--style-spotlight.is-open .spop-layout-spot .spop-media img{transform:scale(1)}
.spop-layout-spot .spop-media::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(11,16,32,0) 18%,rgba(11,16,32,.55) 52%,rgba(11,16,32,.94) 100%)}
.spop-layout-spot .spop-main{position:relative;z-index:2;padding:34px 34px 30px}
.spop--style-spotlight .spop-badge{color:#fff;background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.spop--style-spotlight .spop-badge::before{box-shadow:0 0 0 4px rgba(255,255,255,.18)}
.spop--style-spotlight .spop-title{color:#fff;font-size:clamp(24px,3.2vw,34px);letter-spacing:-.02em;text-shadow:0 2px 20px rgba(0,0,0,.35);padding-right:0}
.spop--style-spotlight .spop-text{color:rgba(255,255,255,.82)}
.spop--style-spotlight .spop-text strong,.spop--style-spotlight .spop-text b{color:#fff}
.spop--style-spotlight .spop-text a{color:#fff}
.spop--style-spotlight .spop-cta{background:#fff;color:#0b1020;box-shadow:0 12px 30px -10px rgba(0,0,0,.6)}
.spop--style-spotlight .spop-cta:hover{color:#0b1020;box-shadow:0 16px 36px -10px rgba(0,0,0,.7)}
.spop--style-spotlight .spop-foot{border-top-color:rgba(255,255,255,.1)}
.spop--style-spotlight .spop-dont{color:rgba(255,255,255,.7)!important}

/* ═════════ Tasarım 3: AURORA — renkli degrade ışıltı, ortalanmış büyük tipografi ═════════ */
.spop--style-aurora .spop-dialog{background:var(--sp-surface);isolation:isolate}
.spop--style-aurora .spop-dialog::before{
  content:"";position:absolute;inset:0 0 auto 0;height:320px;z-index:-1;pointer-events:none;opacity:.9;
  background:
    radial-gradient(60% 70% at 15% 10%,color-mix(in srgb,var(--sp-accent) 55%,transparent),transparent 70%),
    radial-gradient(50% 60% at 85% 0%,rgba(236,72,153,.45),transparent 70%),
    radial-gradient(60% 60% at 60% 45%,rgba(6,182,212,.35),transparent 70%);
  filter:blur(24px);animation:spopAurora 12s ease-in-out infinite alternate;
}
@keyframes spopAurora{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(-4%,3%,0) scale(1.08)}}
.spop--style-aurora .spop-dialog::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;padding:1.5px;z-index:3;
  background:linear-gradient(135deg,color-mix(in srgb,var(--sp-accent) 70%,transparent),rgba(236,72,153,.5),rgba(6,182,212,.5));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
}
.spop--style-aurora .spop-body{text-align:center}
.spop--style-aurora .spop-layout-top .spop-media,.spop--style-aurora .spop-layout-side .spop-media{margin:22px 22px 0;border-radius:18px;box-shadow:0 20px 40px -18px rgba(2,6,23,.45)}
.spop--style-aurora .spop-layout-top .spop-media::after{display:none}
.spop--style-aurora .spop-layout-side{text-align:left}
@media (min-width:640px){.spop--style-aurora .spop-layout-side .spop-media{margin:22px 0 22px 22px}}
.spop--style-aurora .spop-main{padding:30px 34px 32px}
.spop--style-aurora .spop-layout-none .spop-main{padding-top:48px}
.spop--style-aurora .spop-title{font-size:clamp(24px,3vw,32px);letter-spacing:-.025em;padding-right:0;
  background:linear-gradient(120deg,var(--sp-text) 30%,color-mix(in srgb,var(--sp-accent) 85%,var(--sp-text)));-webkit-background-clip:text;background-clip:text;color:transparent}
.spop--style-aurora .spop-badge{background:color-mix(in srgb,var(--sp-surface) 70%,transparent);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sp-accent) 30%,transparent)}
.spop--style-aurora .spop-cta{border-radius:999px;padding:0 28px;background:linear-gradient(120deg,var(--sp-accent),#ec4899);box-shadow:0 14px 30px -12px var(--sp-accent)}
.spop--style-aurora .spop-foot{text-align:center;border-top:0;padding-top:0}
.spop--style-aurora .spop-layout-side .spop-cta{align-self:flex-start}
.spop--style-aurora .spop-dialog:has(.spop-layout-none) .spop-close,.spop--style-aurora .spop-close{color:var(--sp-text);background:color-mix(in srgb,var(--sp-surface) 55%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sp-text) 12%,transparent)}
.spop--style-aurora .spop-close:hover{background:var(--sp-text);color:var(--sp-surface)}
.spop--style-aurora .spop-ring-fg{stroke:var(--sp-accent)}
.spop--style-aurora .spop-ring-bg{stroke:color-mix(in srgb,var(--sp-text) 15%,transparent)}

/* ═════════ Tasarım 4: KOMPAKT ŞERİT — yatay bildirim kartı (duyuru/hatırlatma) ═════════ */
.spop--style-compact .spop-dialog{max-width:min(640px,100%)!important;border-radius:20px;overflow:visible}
.spop--style-compact .spop-body{flex-direction:row!important;align-items:center;gap:16px;padding:14px 64px 14px 14px}
.spop--style-compact .spop-layout-none{padding-left:22px}
.spop--style-compact .spop-media{flex:none;width:76px;height:76px;border-radius:14px;overflow:hidden}
.spop--style-compact .spop-media::after{display:none}
.spop--style-compact .spop-media img{width:100%;height:100%;max-height:none;object-fit:cover}
.spop--style-compact .spop-main{flex:1;min-width:0;padding:0!important;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.spop--style-compact .spop-main>*{margin:0}
.spop--style-compact .spop-badge{order:-1;margin:0;padding:3px 9px;font-size:10.5px}
.spop--style-compact .spop-title{flex:1 1 220px;font-size:16px;line-height:1.35;padding:0}
.spop--style-compact .spop-text{flex:1 1 100%;order:3;font-size:13.5px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:-10px}
.spop--style-compact .spop-cta{order:2;margin:0;min-height:40px;padding:0 18px;font-size:14px;border-radius:999px}
.spop--style-compact .spop-close{top:50%;right:14px;margin-top:-18px;width:36px;height:36px;color:var(--sp-text);background:color-mix(in srgb,var(--sp-text) 7%,transparent);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.spop--style-compact .spop-close-ring{width:36px;height:36px}
.spop--style-compact .spop-close:hover{background:var(--sp-text);color:var(--sp-surface)}
.spop--style-compact .spop-ring-fg{stroke:var(--sp-accent)}
.spop--style-compact .spop-ring-bg{stroke:color-mix(in srgb,var(--sp-text) 15%,transparent)}
.spop--style-compact .spop-foot{display:none}
.spop--style-compact .spop-dialog::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:0 4px 4px 0;background:var(--sp-accent)}
.spop--style-compact .spop-body:has(.spop-media)~*,.spop--style-compact .spop-dialog:has(.spop-media)::before{display:none}
@media (max-width:767px){
  .spop--style-compact .spop-body{padding:14px 58px 16px 14px;align-items:flex-start}
  .spop--style-compact .spop-media{width:56px;height:56px;border-radius:12px}
  .spop--style-compact .spop-close{top:14px;margin-top:0}
  .spop--style-compact .spop-cta{width:auto;order:4}
  .spop--style-compact.spop--bottom-center .spop-dialog,.spop--style-compact.spop--bottom-right .spop-dialog,.spop--style-compact.spop--bottom-left .spop-dialog{border-radius:20px 20px 0 0}
}
