/* ===================================
    Site bildirim penceresi (js/site-modal.js)
====================================== */
html.sm-kilit {
    overflow: hidden;
}
.site-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.site-modal[hidden] {
    display: none;
}
.sm-arka {
    position: absolute;
    inset: 0;
    background: rgba(22, 32, 44, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sm-pencere {
    --renk: #2e8b57;
    --renk-acik: rgba(46, 139, 87, 0.1);
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 44px 36px 32px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 40px 80px rgba(22, 32, 44, 0.3);
    text-align: center;
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-modal[data-tur="hata"] .sm-pencere {
    --renk: #b5462f;
    --renk-acik: rgba(181, 70, 47, 0.1);
}
.site-modal.acik .sm-arka {
    opacity: 1;
}
.site-modal.acik .sm-pencere {
    opacity: 1;
    transform: none;
}

/* Kapat (×) */
.sm-pencere .sm-kapat {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8a929c;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.sm-pencere .sm-kapat:hover,
.sm-pencere .sm-kapat:focus-visible {
    background: #f2eee9;
    color: #16202c;
    outline: none;
}

/* Çizilerek gelen simge */
.sm-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--renk-acik);
}
.sm-ikon svg {
    width: 52px;
    height: 52px;
    fill: none;
    stroke: var(--renk);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sm-halka {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    transform: rotate(-90deg);
    transform-origin: center;
}
.sm-isaret {
    stroke-width: 3.5;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
}
.site-modal.acik .sm-halka {
    animation: sm-ciz 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}
.site-modal.acik .sm-isaret {
    animation: sm-ciz 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.55s forwards;
}
@keyframes sm-ciz {
    to { stroke-dashoffset: 0; }
}

.sm-baslik {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #16202c;
}
.sm-mesaj {
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.6;
    color: #5b6470;
}
.sm-pencere .sm-dugme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 14px 28px;
    border: 0;
    border-radius: 50px;
    background: #16202c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.sm-pencere .sm-dugme:hover,
.sm-pencere .sm-dugme:focus-visible {
    background: #b07f49;
    box-shadow: 0 12px 26px rgba(176, 127, 73, 0.35);
    outline: none;
}

@media (max-width: 575px) {
    .site-modal {
        align-items: flex-end;
        padding: 12px;
    }
    .sm-pencere {
        padding: 38px 24px 26px;
        border-radius: 22px;
    }
    .sm-pencere .sm-dugme {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sm-pencere,
    .sm-arka {
        transition: none;
    }
    .sm-halka,
    .sm-isaret {
        stroke-dashoffset: 0;
        animation: none !important;
    }
}
