/* =====================================================================
   STP 3D ONIZLEME PENCERESI  (web/js/stp-onizleme.js)
   ===================================================================== */

html.stp-acik { overflow: hidden; }

.stp-pencere {
    position: fixed;
    inset: 0;
    z-index: 6000; /* ust menu 5000 */
    background: rgba(8, 12, 40, .62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.stp-pencere[hidden] { display: none !important; }

.stp-kutu {
    width: min(1200px, 100%);
    height: min(820px, 100%);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.stp-kutu:fullscreen { width: 100%; height: 100%; border-radius: 0; }

.stp-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px 12px 20px;
    border-bottom: 1px solid #e2e7f2;
}
.stp-baslik-alani { min-width: 0; }
.stp-etiket {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8a94a8;
}
.stp-baslik {
    font-size: 17px;
    font-weight: 700;
    color: #00006b;
    margin: 2px 0 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stp-bilgi { display: block; font-size: 12.5px; color: #5a6780; margin-top: 2px; }

.stp-araclar { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.stp-arac {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dfe4ee;
    border-radius: 9px;
    background: #fff;
    color: #00006b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
}
.stp-arac:hover { background: #f1f4fa; color: #00006b; }
.stp-arac[aria-pressed="true"] { background: #00006b; border-color: #00006b; color: #fff; }
.stp-arac.stp-indir { background: #00006b; border-color: #00006b; color: #fff; }
.stp-arac.stp-indir:hover { background: #1a1a8f; color: #fff; }
.stp-arac.stp-kapat { margin-left: 4px; }

.stp-tuval { position: relative; flex: 1 1 auto; min-height: 0; background: #f3f5f9; }
.stp-canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }

.stp-durum {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.stp-durum[hidden] { display: none; }
.stp-durum-ic { text-align: center; max-width: 420px; }
.stp-durum-metin { font-size: 15px; font-weight: 600; color: #1f2a44; margin: 14px 0 10px; }
.stp-durum-not { font-size: 13px; color: #5a6780; margin: 10px 0 0; }
.stp-cubuk { height: 6px; width: 260px; max-width: 100%; margin: 0 auto; background: #dfe4ee; border-radius: 3px; overflow: hidden; }
.stp-cubuk[hidden] { display: none; }
.stp-cubuk span { display: block; height: 100%; width: 0; background: #00006b; transition: width .15s linear; }
.stp-donen {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    border: 3px solid #dfe4ee;
    border-top-color: #00006b;
    border-radius: 50%;
    animation: stp-don .8s linear infinite;
}
@keyframes stp-don { to { transform: rotate(360deg); } }
.stp-durum.hata .stp-donen { display: none; }
.stp-durum.hata .stp-durum-metin { color: #a32d2d; }

.stp-alt {
    padding: 8px 20px;
    font-size: 12.5px;
    color: #5a6780;
    border-top: 1px solid #e2e7f2;
    text-align: center;
}

@media (max-width: 767.98px) {
    .stp-pencere { padding: 0; }
    .stp-kutu { width: 100%; height: 100%; border-radius: 0; }
    .stp-ust { padding: 10px 10px 10px 14px; flex-wrap: wrap; }
    .stp-baslik-alani { flex: 1 1 100%; }
    .stp-araclar { flex: 1 1 100%; justify-content: flex-end; }
    .stp-arac.stp-indir span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .stp-donen { animation-duration: 2.4s; }
}

/* "Onizle" dugmesi (Destek sayfasi: .destek-onizle, urun sayfasi: .stp-onizle-dugme) */
button.btn.destek-onizle,
button.btn.stp-onizle-dugme {
    background: #fff;
    border: 1px solid #00006b;
    color: #00006b;
    border-radius: 7px;
    padding: 6px 12px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 6px;
}
button.btn.destek-onizle:hover,
button.btn.destek-onizle:focus-visible,
button.btn.stp-onizle-dugme:hover,
button.btn.stp-onizle-dugme:focus-visible { background: #eef1f7; color: #00006b; }
button.btn.destek-onizle i,
button.btn.stp-onizle-dugme i { margin-right: 6px; }
@media (max-width: 767.98px) {
    button.btn.destek-onizle i,
    button.btn.stp-onizle-dugme i { margin-right: 0; }
}
