/* Popup SukodCreative Public Styles */

.psc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.psc-popup-overlay.active {
    display: flex;
}

.psc-popup-container {
    position: relative;
    display: inline-block;
}

.psc-popup {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    animation: pscPopupZoomIn 0.3s ease-out;
    margin: 20px; /* Butonlar için alan bırak */
}

@keyframes pscPopupZoomIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.psc-popup-content {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Scroll olmaması için */
    box-sizing: border-box;
}

.psc-popup-content img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Butonlar - Popup container'a göre konumlandırılmış */
.psc-btn {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 5px 5px;
    white-space: nowrap;
}



/* Kapat butonu - Popup'ın sağ üst köşesi */
.psc-close-btn {
    top: -10px;
    right: 10px;
    transform: translateY(-100%);
}

/* Bir daha gösterme butonu - Popup'ın sol alt köşesi */
.psc-dont-show-btn {
    bottom: -10px;
    left: 10px;
    transform: translateY(100%);
}

/* İncele butonu - Popup'ın sağ alt köşesi */
.psc-inspect-btn {
    bottom: -10px;
    right: 10px;
    transform: translateY(100%);
}

/* Mobil için özel stiller */
@media (max-width: 768px) {
    .psc-popup {
        max-width: 90vw;
        max-height: 70vh;
        margin: 15px;
    }

    .psc-btn {
        font-size: 13px !important;
        padding: 4px 8px;
    }

    .psc-close-btn {
        top: -8px;
        right: 8px;
    }

    .psc-dont-show-btn {
        bottom: -8px;
        left: 8px;
    }

    .psc-inspect-btn {
        bottom: -8px;
        right: 8px;
    }
}

/* Tablet için özel stiller */
@media (min-width: 769px) and (max-width: 1024px) {
    .psc-popup {
        max-width: 80vw;
        max-height: 80vh;
        margin: 18px;
    }

    .psc-btn {
        font-size: 14px !important;
        padding: 4px 9px;
    }
}

/* Animasyon sınıfı kapatma için */
.psc-popup-overlay.closing {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.psc-popup-overlay.closing .psc-popup {
    animation: pscPopupZoomOut 0.3s ease-out;
}

@keyframes pscPopupZoomOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.7);
        opacity: 0;
    }
}

/* Hover efektleri için ek stiller */
.psc-btn {
    position: relative;
}

.psc-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.psc-btn:hover::after {
    width: 100%;
}

/* Popup içeriği responsive ayarları */
.psc-popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.psc-popup-content > * {
    max-width: 100%;
    max-height: 100%;
}

/* WordPress editör içeriği için stil düzeltmeleri */
.psc-popup-content p {
    margin: 0 0 1em 0;
}

.psc-popup-content p:last-child {
    margin-bottom: 0;
}



/* ==== SUKODCUSTOM v2: Adjust button positions with offsets ==== */
.psc-popup { position: relative; }

.psc-close-btn {
    position: absolute;
    top: -13px;
    right: 0px;
}

.psc-dont-show-btn {
    position: absolute;
    bottom: -10px;
    left: 0px;
}

.psc-inspect-btn {
    position: absolute;
    bottom: -10px;
    right: 0px;
}

@media (max-width: 1024px) {
    .psc-close-btn { top: -12px; right: -12px; }
    .psc-dont-show-btn { bottom: -12px; left: -12px; }
    .psc-inspect-btn { bottom: -12px; right: -12px; }
}

@media (max-width: 767px) {
    .psc-close-btn { top: -10px; right: -10px; }
    .psc-dont-show-btn { bottom: -10px; left: -10px; }
    .psc-inspect-btn { bottom: -10px; right: -10px; }
}
/* ==== END SUKODCUSTOM v2 ==== */
