/* Site içi duyuru pop-up'ı.
   Renkler app.css değişkenlerinden gelir; karanlık tema onları yeniden
   tanımladığı için burada ayrı bir dark kuralı gerekmez. */

.sp-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(14, 21, 38, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), visibility .22s var(--ease);
}

.sp-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sp-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateY(12px) scale(.98);
    transition: transform .26s var(--ease-out);
}

.sp-overlay.is-open .sp-box {
    transform: translateY(0) scale(1);
}

.sp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    color: var(--ink2);
    cursor: pointer;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}

.sp-close:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.sp-close svg {
    width: 16px;
    height: 16px;
}

.sp-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius) var(--radius) 0 0;
}

.sp-body {
    padding: 22px 24px 24px;
}

.sp-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.sp-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink2);
}

.sp-text p {
    margin: 0 0 10px;
}

.sp-text p:last-child {
    margin-bottom: 0;
}

.sp-text a {
    color: var(--blue);
}

.sp-text ul,
.sp-text ol {
    margin: 0 0 10px;
    padding-left: 20px;
}

.sp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s var(--ease);
}

.sp-cta:hover {
    background: var(--blue-hover);
}

@media (max-width: 520px) {
    .sp-body {
        padding: 18px 18px 20px;
    }

    .sp-title {
        font-size: 17px;
    }
}

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