/* Simple Center Popup - Frontend */
.scp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: scpFadeIn 0.25s ease;
}

.scp-popup {
    position: relative;
    display: flex;
    flex-direction: row;          /* desktop: görsel solda, metin sağda */
    align-items: flex-start;       /* görsel doğal yüksekliğini koru */
    background: #fff;
    width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scpZoomIn 0.25s ease;
}

.scp-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.2s;
}
.scp-close:hover { background: rgba(0, 0, 0, 0.85); }

/* Görsel - desktopta 300px sabit sol sütun, kırpmadan doğal oranında */
.scp-image {
    flex: 0 0 300px;
    align-self: stretch;
    background: #fff;
    overflow: hidden;
}
.scp-image img {
    display: block;
    width: 300px;
    height: auto;                /* doğal oran korunur, kırpılmaz */
    max-height: 90vh;
}

/* Metin alanı - sağda, görsel yüksekliğine uyar, gerekirse scroll */
.scp-body {
    flex: 1 1 auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    max-height: 90vh;
}

.scp-message {
    flex: 1 1 auto;
    padding: 24px 26px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #222;
    overflow-y: auto;
    word-wrap: break-word;
}
.scp-message > *:first-child { margin-top: 0; }
.scp-message > *:last-child  { margin-bottom: 0; }

.scp-message p {
    margin: 0 0 12px;
}
.scp-message h1,
.scp-message h2,
.scp-message h3,
.scp-message h4 {
    margin: 18px 0 10px;
    line-height: 1.3;
    color: #111;
}
.scp-message h1 { font-size: 22px; }
.scp-message h2 { font-size: 20px; }
.scp-message h3 { font-size: 17px; }
.scp-message h4 { font-size: 15px; }

.scp-message ul,
.scp-message ol {
    margin: 0 0 12px;
    padding-left: 22px;
}
.scp-message li { margin: 4px 0; }

.scp-message a {
    color: #2271b1;
    text-decoration: underline;
}
.scp-message a:hover { color: #135e96; }

.scp-message img {
    max-width: 100%;
    height: auto;
    margin: 8px 0;
}

.scp-message blockquote {
    margin: 10px 0;
    padding: 8px 14px;
    border-left: 3px solid #ddd;
    color: #555;
    background: #fafafa;
}

.scp-message hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 14px 0;
}

.scp-message strong { font-weight: 600; }

/* "Bir daha gösterme" alanı */
.scp-dont-show {
    flex: 0 0 auto;
    padding: 10px 28px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
    font-size: 13px;
    color: #555;
}
.scp-dont-show label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.scp-dont-show input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

@keyframes scpFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scpZoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* MOBİL: görsel üstte, metin altta */
@media (max-width: 600px) {
    .scp-popup {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
    .scp-image {
        flex: 0 0 auto;
        width: 100%;
    }
    .scp-image img {
        width: 100%;
        height: auto;
        max-height: 40vh;
    }
    .scp-body { max-height: none; }
    .scp-message {
        padding: 16px 18px 10px;
        font-size: 14px;
        overflow-y: visible;
    }
    .scp-dont-show { padding: 10px 18px 14px; }
    .scp-close { top: 6px; right: 6px; }
}
