/* ===== DASAR ===== */
@layer base {
  html, body { margin: 0; padding: 0; }
  body { overscroll-behavior: none; background: #FBF4EA; }
}
::-webkit-scrollbar { display: none; }
html { scroll-behavior: smooth; }
::selection { background: #F9D6E0; color: #5C1A2D; }

/* ===== EASING BERSAMA ===== */
:root { --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1); --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1); }

/* ===== BANNER PROTOTIPE (shimmer maroon-pink) ===== */
.banner-shimmer {
  background-image: linear-gradient(100deg, #7A2236 0%, #9B3350 30%, #E9A6BC 50%, #9B3350 70%, #7A2236 100%);
  background-size: 200% 100%;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 9999px; background: #FFE8EE; }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 9999px; background: #FFE8EE;
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

/* ===== REVEAL SAAT MASUK LAYAR / SAAT PINDAH MENU ===== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ===== TRANSISI HALAMAN ===== */
.page-enter { animation: pageIn .75s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

/* ===== NAVIGASI ===== */
.nav-link { position: relative; transition: color .35s ease; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: #B8456C; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: #7A2236; font-weight: 700; }

/* ===== TOMBOL ===== */
.btn { transition: transform .3s var(--ease-out), background-color .35s ease, box-shadow .35s ease, color .35s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(122, 34, 54, .45); }
.btn:active { transform: scale(.97); }

/* ===== KARTU & GAMBAR ===== */
.lift { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.lift:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(122, 34, 54, .35); }
.zoom { overflow: hidden; cursor: zoom-in; }
.zoom img { transition: transform 1s var(--ease-out); }
.zoom:hover img { transform: scale(1.07); }
.zoom:focus-visible { outline: 3px solid #B8456C; outline-offset: 3px; }

/* Placeholder "foto menyusul" */
.ph {
  background: linear-gradient(110deg, #F3E7D6 8%, #FBF4EA 18%, #F3E7D6 33%);
  background-size: 200% 100%;
  animation: shimmer 2.6s linear infinite;
}

/* Chip filter */
.chip { transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .3s var(--ease-out); }
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: scale(.96); }

/* Logo & ikon kecil */
.logo-img { transition: transform .6s var(--ease-spring); }
a:hover > .logo-img { transform: rotate(-4deg) scale(1.05); }

/* Hero: lingkaran dekoratif lembut */
.blob { position: absolute; border-radius: 9999px; filter: blur(60px); opacity: .5; animation: drift 14s var(--ease-out) infinite alternate; pointer-events: none; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(24px,-18px,0) scale(1.08); } }

/* ===== LIGHTBOX (layar penuh) ===== */
.lb {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(40, 10, 20, .94); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility .4s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb-frame { transform: translate3d(0, 18px, 0) scale(.97); opacity: 0; transition: transform .55s var(--ease-out), opacity .55s var(--ease-out); }
.lb.open .lb-frame { transform: none; opacity: 1; }
.lb-media { animation: swapIn .5s var(--ease-out) both; }
@keyframes swapIn { from { opacity: 0; transform: translate3d(var(--dir, 0px), 0, 0) scale(.98); } to { opacity: 1; transform: none; } }
.lb-btn { transition: background-color .3s ease, transform .3s var(--ease-out); }
.lb-btn:hover { background: rgba(255,255,255,.18); transform: scale(1.08); }
.lb-btn:active { transform: scale(.94); }

/* ===== PENGURANGAN GERAK ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== IKON 3D ===== */
.ico {
  width: 1.5rem; height: 1.5rem; display: inline-block; vertical-align: middle; flex-shrink: 0;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 3px 4px rgba(122, 34, 54, .22));
  transition: transform .5s var(--ease-spring);
}
.lift:hover .ico, a:hover > .ico, button:hover > .ico { transform: translateY(-2px) scale(1.08); }

/* ===== LOGO BULAT ===== */
.logo-round { transition: transform .7s var(--ease-spring); }
a:hover > .logo-round { transform: rotate(-8deg) scale(1.05); }
.logo-float { animation: floaty 6s var(--ease-out) infinite; filter: drop-shadow(0 14px 18px rgba(122, 34, 54, .18)); }
@keyframes floaty { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }

/* Tombol di lightbox: ikon tetap terang */
.lb-btn .ico { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
