/**
 * ============================================================
 * Studio 1 Invitation - Design & Asset Protection Layer
 * Copyright (c) Studio1.id. All rights reserved.
 * ============================================================
 */

/* 1. Mencegah drag & drop gambar dan ornamen */
img, svg, picture, video, canvas,
.ornament, .flower-accent, .decor, .divider, .frame-gate,
.bg-layer, .hero-top-gate, .cover-overlay, .photo-brush-masked {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    -webkit-touch-callout: none !important; /* Nonaktifkan popup tahan sentuh di iOS / Android */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* 2. Tetap izinkan input teks, textarea, tombol, dan salin nomor rekening bekerja normal */
input, textarea, select, button, .copy-btn, .btn, a, .rekening-number, .guest-name {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    pointer-events: auto !important;
}

/* 3. Notifikasi Toast Elegan saat klik kanan ditekan */
.s1-protect-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 9999999;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
}

.s1-protect-toast.s1-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.s1-protect-toast svg {
    width: 16px;
    height: 16px;
    fill: #f59e0b;
    flex-shrink: 0;
}

/* 4. Watermark Mendatar & Mode Scroll Khusus Mode Demo / Live Preview */
.s1-demo-watermark-wrapper {
    pointer-events: none !important;
    user-select: none !important;
}

/* Floating Sleek Horizontal Marquee Pill (Mendatar & Teks Berjalan Halus) */
.s1-demo-floating-ticker {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: min(200px, 86%);
    height: 30px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    z-index: 100000000000;
    display: flex;
    align-items: center;
    padding: 0 10px;
    overflow: hidden;
    pointer-events: none !important;
    transition: bottom 0.3s ease;
}

/* Icon kecil penanda preview */
.s1-ticker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.s1-ticker-icon svg {
    width: 14px;
    height: 14px;
    fill: #f59e0b;
}

/* Viewport & Running Text Animasi */
.s1-ticker-viewport {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.s1-ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: s1TickerScroll 18s linear infinite;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.s1-ticker-content span {
    padding-right: 15px;
    display: inline-block;
}

@keyframes s1TickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Ghost Background Watermark (Tembus pandang murni, tidak menutupi foto atau teks) */
.s1-demo-ghost-watermark {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none !important;
    z-index: 99999990;
    opacity: 0.08;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(14px, 3.5vw, 24px);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f4f7f5;
    white-space: nowrap;
}
