/* ============================================================
   GasGo — App shell & navigation styles.
   Konten layar memakai inline-style asli dari desain (tidak diubah).
   File ini hanya untuk: bingkai HP (desktop), full-screen (HP),
   transisi antar-layar, dan alat pratinjau.
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #08080A;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ---- Shell: pusatkan di desktop, full-screen di HP ---- */
.app-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* latar gelap halus di belakang bingkai */
  background:
    radial-gradient(900px 500px at 18% 0%, rgba(212,175,55,0.06), transparent 70%),
    #08080A;
  padding: 0;
}

.app-viewport {
  position: relative;
  width: 100%;
  height: 100dvh;
  max-width: 100%;
  overflow: hidden;
  background: #0E0E11;
  isolation: isolate;
}

/* Desktop / layar lebar: tampilkan sebagai HP mengambang berbingkai. */
@media (min-width: 480px) {
  .app-shell { padding: 28px; }
  .app-viewport {
    width: 430px;
    height: min(920px, calc(100dvh - 56px));
    max-height: 920px;
    border-radius: 44px;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.05),
      0 30px 80px -20px rgba(0,0,0,0.75),
      0 0 60px -20px rgba(212,175,55,0.18);
  }
}

/* ---- Layar ---- */
.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* sembunyikan secara default; hanya .is-active yang tampil */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8px) scale(0.995);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  z-index: 1;
}

/* layar yang sedang keluar (animasi mundur) */
.screen.is-leaving {
  z-index: 0;
}

/* .gg-screen pakai inset:0 absolut dari desain — biarkan mengisi penuh */
.screen .gg-screen { position: absolute; inset: 0; }

/* elemen yang dapat diklik (di-wire oleh app.js) */
[data-nav] { cursor: pointer; }

/* ============================================================
   ALAT PRATINJAU (preview) — bisa dihapus untuk produksi.
   ============================================================ */
.rev-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.4);
  background: rgba(20,20,23,0.72);
  backdrop-filter: blur(10px);
  color: #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.6);
}
.rev-fab:hover { opacity: 1; transform: scale(1.05); }

.rev-panel {
  position: fixed;
  right: 16px;
  bottom: 70px;
  width: 250px;
  max-height: 70dvh;
  background: rgba(18,18,21,0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.rev-panel[hidden] { display: none; }

.rev-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.rev-close {
  border: none;
  background: none;
  color: #8A8A93;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.rev-list { overflow-y: auto; padding: 6px; }

.rev-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
  color: #E4E4E7;
  font-family: inherit;
}
.rev-item:hover { background: rgba(255,255,255,0.06); }
.rev-item.is-current { background: rgba(212,175,55,0.14); }

.rev-idx {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(212,175,55,0.16);
  color: #D4AF37;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rev-lbl {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rev-theme {
  flex: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 99px;
}
.rev-theme--dark  { background: rgba(255,255,255,0.08); color: #A1A1AA; }
.rev-theme--light { background: rgba(212,175,55,0.16);  color: #D4AF37; }
