/* Lapisan VREOKA di atas tema undangan: pita contoh + tampilan per paket. */

/* Catatan: JANGAN beri overflow pada <html> di halaman tema.
   Tema sudah memakai body{overflow-x:hidden} dan mengunci body (overflow:hidden; height:100vh) saat sampul tertutup.
   Overflow pada <html> membuat Safari iPhone menjadikan body area gulir sendiri, sehingga pita VREOKA
   dan sampul tema yang "position: fixed" ikut bergeser ke tengah layar. */

/* ---------- Pita VREOKA ---------- */
.vr-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 2147483000;
    display: flex; align-items: center; gap: 10px 16px;
    padding: 8px 14px;
    background: rgba(14, 13, 16, .94);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #f4f1f5;
    font: 500 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: 0; text-transform: none; text-align: left;
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .6);
}
.vr-bar a { color: inherit; text-decoration: none; }
.vr-back { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.vr-back img { height: 12px; width: auto; display: block; }
.vr-back span { color: #a5a0ab; }
.vr-switch { display: flex; gap: 4px; margin-left: auto; padding: 3px; background: rgba(255, 255, 255, .08); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.vr-switch::-webkit-scrollbar { display: none; }
.vr-switch a { padding: 6px 12px; border-radius: 999px; white-space: nowrap; color: #d9d4dd; transition: background-color .2s, color .2s; }
.vr-switch a:hover { color: #fff; }
.vr-switch a[aria-current="page"] { background: #fe5483; color: #0e0d10; font-weight: 700; }
.vr-order { flex: none; padding: 8px 14px; border-radius: 999px; background: #fe5483; color: #0e0d10 !important; font-weight: 700; }
.vr-order:hover { background: #e8406f; }

/* Dropdown "Tema lain" */
.vr-themes { position: relative; flex: none; }
.vr-themes summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22); color: #f4f1f5;
    transition: border-color .2s, background-color .2s;
    user-select: none;
}
.vr-themes summary::-webkit-details-marker { display: none; }
.vr-themes summary:hover,
.vr-themes[open] summary { border-color: #fe5483; background: rgba(254, 84, 131, .12); }
.vr-themes summary span { font-size: 10px; transition: transform .2s; }
.vr-themes[open] summary span { transform: rotate(180deg); }
.vr-menu {
    position: absolute; top: calc(100% + 10px); left: 0;
    width: 290px; max-height: 70vh; overflow-y: auto;
    padding: 6px;
    background: #18171c; border: 1px solid #2d2a33; border-radius: 14px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
}
.vr-menu a { display: block; padding: 9px 12px; border-radius: 9px; transition: background-color .15s; }
.vr-menu a:hover { background: rgba(255, 255, 255, .06); }
.vr-menu a b { display: block; font-weight: 700; color: #f4f1f5; }
.vr-menu a small { display: block; margin-top: 2px; font-size: 12px; color: #a5a0ab; }
.vr-menu a[aria-current="page"] { background: rgba(254, 84, 131, .14); }
.vr-menu a[aria-current="page"] b::after { content: " · sedang dilihat"; font-weight: 400; font-size: 12px; color: #fe5483; }
.vr-menu .vr-menu-all { margin-top: 4px; border-top: 1px solid #2d2a33; border-radius: 0 0 9px 9px; color: #fe5483; font-weight: 700; font-size: 12px; }

@media (max-width: 640px) {
    .vr-bar { flex-wrap: wrap; padding: 7px 10px; gap: 6px 10px; }
    .vr-back span { display: none; }
    .vr-themes summary { padding: 6px 12px; }
    .vr-order { margin-left: auto; padding: 6px 12px; }
    .vr-switch { order: 3; margin-left: 0; width: 100%; justify-content: space-between; }
    .vr-switch a { flex: 1; text-align: center; padding: 6px 8px; }
    .vr-menu { position: fixed; top: auto; left: 10px; right: 10px; width: auto; margin-top: 8px; }
}

/* ---------- Paket "Tanpa Foto": sembunyikan foto mempelai & galeri ---------- */
html[data-paket="teks"] #galeri,
html[data-paket="teks"] #mempelai .portrait,
html[data-paket="teks"] #mempelai .photo,
html[data-paket="teks"] #mempelai .window,
html[data-paket="teks"] #mempelai .ph,
html[data-paket="teks"] nav a[href="#galeri"] { display: none !important; }

/* ---------- Foto contoh ---------- */
.vr-photo { background-size: cover !important; background-position: center !important; }
.vr-photo > *,
.vr-photo-text { visibility: hidden; }

/* ---------- Bagian video (paket Foto + Video) ---------- */
.vr-video {
    position: relative;
    width: 100%; max-width: 760px; margin: 28px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 14px; overflow: hidden;
    background: #111;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
}
.vr-video video,
.vr-video iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vr-video-ph {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .14), transparent 55%),
        linear-gradient(135deg, #2b2724, #0f0e0d);
    color: rgba(255, 255, 255, .85);
    font: 400 14px/1.4 system-ui, sans-serif; letter-spacing: .02em; text-align: center; padding: 20px;
}
.vr-video-ph svg { width: 64px; height: 64px; opacity: .9; }

/* Pratinjau kecil di halaman /undangan: tanpa interaksi */
html[data-preview="1"] body { pointer-events: none; }
