/* ===================================================================
   Sayfa popup'ları (duyuru_popup)
   konum=orta      → Metronic 8 / Bootstrap 5 modal (perde tıklaması kapatır)
   konum=köşeler   → perdesiz, sayfayı kilitlemeyen kutu
   Başlık yoktur: yalnız medya/içerik + kapat düğmesi.
   =================================================================== */

/* ---------- Ortak kutu ---------- */
.pk-modal .modal-content,
.pk-kose-kutu {
    position: relative;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

/* Başlıksız tasarım: gövde dolgusuz, medya kenara dayanır */
.pk-govde { padding: 0; }

.pk-medya { display: block; width: 100%; }
.pk-medya img,
.pk-medya video { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #000; }
.pk-medya img { background: #f2f4f7; }

.pk-icerik {
    font-family: 'Lato', sans-serif;
    font-size: 15px; line-height: 1.7; color: #33363a;
    padding: 18px 22px;
    max-height: 40vh; overflow-y: auto;
}
.pk-icerik > :last-child { margin-bottom: 0; }
.pk-icerik a { color: #e85a50; }

.pk-aksiyon { padding: 0 22px 20px; }
.pk-btn {
    display: inline-block; padding: 10px 22px; border-radius: 9px;
    background: linear-gradient(135deg, #6fb2d2 0%, #e85a50 100%);
    color: #fff !important; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14px;
    text-decoration: none; transition: filter .2s ease;
}
.pk-btn:hover { filter: brightness(1.06); }

/* ---------- Kapat düğmesi (her zaman görünür, min 40x40 dokunma alanı) ---------- */
.pk-kapat {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    width: 40px; height: 40px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%;
    background: rgba(18, 22, 28, .55); color: #fff;
    font-size: 20px; line-height: 1; cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.pk-kapat:hover { background: rgba(18, 22, 28, .8); transform: scale(1.06); }
.pk-kapat:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* RTL: kapat düğmesi sol üste geçer */
[dir="rtl"] .pk-kapat { right: auto; left: 10px; }

/* ---------- Köşe konumları (perdesiz) ---------- */
.pk-kose {
    position: fixed; z-index: 1060;
    max-width: calc(100vw - 32px);
    opacity: 0; transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease;
}
.pk-kose.acik { opacity: 1; transform: translateY(0); }
.pk-kose--sag-alt { right: 20px; bottom: 20px; }
.pk-kose--sol-alt { left: 20px; bottom: 20px; }
.pk-kose--sag-ust { right: 20px; top: 20px; transform: translateY(-16px); }
.pk-kose--sol-ust { left: 20px; top: 20px; transform: translateY(-16px); }
.pk-kose--sag-ust.acik, .pk-kose--sol-ust.acik { transform: translateY(0); }

[dir="rtl"] .pk-kose--sag-alt { right: auto; left: 20px; }
[dir="rtl"] .pk-kose--sol-alt { left: auto; right: 20px; }
[dir="rtl"] .pk-kose--sag-ust { right: auto; left: 20px; }
[dir="rtl"] .pk-kose--sol-ust { left: auto; right: 20px; }

/* Mobilde köşeler alt kenarda tam genişlik şerit olur */
@media (max-width: 575.98px) {
    .pk-kose,
    [dir="rtl"] .pk-kose--sag-alt, [dir="rtl"] .pk-kose--sol-alt,
    [dir="rtl"] .pk-kose--sag-ust, [dir="rtl"] .pk-kose--sol-ust {
        left: 8px; right: 8px; top: auto; bottom: 8px;
        max-width: none; width: auto;
    }
    .pk-icerik { padding: 14px 16px; font-size: 14.5px; }
    .pk-aksiyon { padding: 0 16px 16px; }
}

/* ---------- Modal ince ayar ---------- */
.pk-modal .modal-dialog { max-height: 90vh; }
.pk-modal .modal-content { max-height: 90vh; overflow-y: auto; }

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
    .pk-kose { transition: none; opacity: 1; transform: none; }
    .pk-modal.fade, .pk-modal.fade .modal-dialog { transition: none !important; }
    .pk-kapat { transition: none; }
}
