/* ==========================================================================
   Ruang Sunyi — Nocturne theme
   Gaya kustom di atas Bootstrap 5.3 (dark mode).
   ========================================================================== */

:root {
  --bs-body-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --bs-body-bg: #0f131c;
  --bs-body-color: #dfe2ee;
}

body {
  background-color: #0f131c;
  color: #dfe2ee;
  font-family: var(--bs-body-font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tipografi -------------------------------------------------------------- */
.font-editorial {
  font-family: 'Newsreader', serif;
  font-size: 1.15rem;
  line-height: 1.8;
}
.font-editorial-quote {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.7;
}
.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Permukaan / kartu ------------------------------------------------------ */
.bg-surface-card {
  background-color: #181c24;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.bg-surface-card:hover {
  background-color: #1c2028;
}
.bg-surface-subtle-dark {
  background-color: #121620;
}

/* Badge lembut ----------------------------------------------------------- */
.badge-soft-primary {
  background-color: rgba(99, 102, 241, 0.15);
  color: #c0c1ff;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.badge-soft-info {
  background-color: rgba(56, 189, 248, 0.12);
  color: #7bd0ff;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.badge-soft-secondary {
  background-color: rgba(189, 194, 255, 0.1);
  color: #bdc2ff;
}

/* Pil filter kategori ---------------------------------------------------- */
.btn-pill-filter {
  border-radius: 50rem;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.38rem 1.1rem;
  transition: all 0.2s ease;
  color: #908fa0;
  background-color: #181c24;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.btn-pill-filter.active,
.btn-pill-filter:hover {
  color: #0d0096;
  background-color: #c0c1ff;
  border-color: #c0c1ff;
}

/* Tombol reaksi ---------------------------------------------------------- */
.btn-reaction {
  border-radius: 50rem;
  font-size: 0.85rem;
  padding: 0.28rem 0.8rem;
  background-color: #1c2028;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c7c4d7;
  transition: all 0.15s ease;
}
.btn-reaction:hover,
.btn-reaction.active {
  background-color: #262a33;
  border-color: #8083ff;
  color: #fff;
}

/* Garis aksen catatan yang disematkan ------------------------------------ */
.pinned-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8083ff, #7bd0ff, #bdc2ff);
}

/* Hiasan bulan pada banner profil (vektor screen.html) ------------------- */
.profile-moon-deco {
  position: absolute;
  right: -70px;                                     /* membludak & terpotong di kanan */
  bottom: -70px;                                    /* condong ke bawah, seperti desain */
  width: 400px;
  height: 400px;
  max-width: 48%;
  opacity: 0.4;                                     /* redup/gelap seperti watermark */
  pointer-events: none;
  user-select: none;
  z-index: 0;                                       /* selalu di belakang teks banner */
}

/* Konten markdown pada kartu linimasa ------------------------------------ */
.note-markdown > :last-child { margin-bottom: 0; }
.note-markdown h1,
.note-markdown h2,
.note-markdown h3,
.note-markdown h4 {
  font-family: var(--bs-body-font-family);
  font-weight: 700;
  color: #f2f3f8;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.note-markdown a { color: #a8b0ff; text-decoration: none; }
.note-markdown a:hover { text-decoration: underline; }
.note-markdown strong { color: #f2f3f8; }
.note-markdown blockquote {
  font-family: 'Newsreader', serif;
  font-style: italic;
  color: #dfe2ee;
  border-left: 3px solid #8083ff;
  background-color: rgba(99, 102, 241, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}
.note-markdown blockquote > :last-child { margin-bottom: 0; }
.note-markdown code {
  font-family: 'JetBrains Mono', monospace;
  color: #bdc2ff;
  font-size: 0.9em;
}
.note-markdown pre {
  background-color: #121620;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
}
.note-markdown pre code { color: #7bd0ff; }
.note-markdown img { max-width: 100%; border-radius: 0.5rem; }
.note-markdown ul,
.note-markdown ol { padding-left: 1.35rem; }

/* Paginasi (selaras tema gelap) ------------------------------------------ */
.pagination {
  --bs-pagination-bg: #181c24;
  --bs-pagination-border-color: rgba(255, 255, 255, 0.07);
  --bs-pagination-color: #dfe2ee;
  --bs-pagination-hover-bg: #262a33;
  --bs-pagination-hover-border-color: #2b303d;
  --bs-pagination-hover-color: #fff;
  --bs-pagination-focus-bg: #262a33;
  --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(128, 131, 255, 0.25);
  --bs-pagination-active-bg: #8083ff;
  --bs-pagination-active-border-color: #8083ff;
  --bs-pagination-active-color: #10122e;
  --bs-pagination-disabled-bg: #14171f;
  --bs-pagination-disabled-border-color: rgba(255, 255, 255, 0.07);
  --bs-pagination-disabled-color: #5a5f70;
}

/* Utilitas tambahan (tidak disediakan Bootstrap) ------------------------- */
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

.backdrop-blur { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.hover-light:hover { color: #dfe2ee !important; }

@media (min-width: 992px) {
  .border-start-lg { border-left: 1px solid rgba(255, 255, 255, 0.08); }
}

/* ==========================================================================
   Halaman "Tentang Saya"
   ========================================================================== */

/* Override variabel & glow ambien khusus halaman ini (di-scope ke body) */
body.accent-glow {
  --bs-secondary-color: #a0a4b8;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  background-image: radial-gradient(600px circle at 50% -10%, rgba(128, 131, 255, 0.12), transparent 70%);
  background-repeat: no-repeat;
}

.font-code { font-family: 'JetBrains Mono', monospace; }
.font-editorial-italic { font-family: 'Newsreader', Georgia, serif; font-style: italic; }

.card-sunyi {
  background-color: #181c24;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.card-sunyi-dark {
  background-color: #12161f;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Aksen garis kiri tebal pada kartu manifesto */
.border-start-3 { border-left-width: 3px !important; }
.border-start-primary { border-left-color: #8083ff !important; }

/* Sparkline "frekuensi malam" */
.sparkline-bar {
  width: 10px;
  border-radius: 3px 3px 0 0;
  background-color: rgba(192, 193, 255, 0.2);
}
.sparkline-bar.active {
  background-color: #c0c1ff;
  box-shadow: 0 0 10px rgba(192, 193, 255, 0.5);
}

/* ==========================================================================
   Halaman "Special Note" (/special-note)
   ========================================================================== */

/* Isi surat catatan khusus — kontras lebih tinggi agar nyaman dibaca
   (menggantikan .text-secondary yang terlalu redup di body.accent-glow). */
.special-note-body {
  color: #c3c7d6;
}
.special-note-body p {
  color: #c3c7d6;
}
/* Font paragraf surat — samakan dengan Notepad Windows 11 (Consolas).
   Judul sorotan ".special-note-highlight" dikecualikan agar tetap gayanya. */
.special-note-body p:not(.special-note-highlight) {
  font-family: Consolas, 'Cascadia Mono', 'Courier New', monospace;
  font-size: 1rem;
  line-height: 1.7;
}
/* Padding kiri-kanan hanya di layar lebar (desktop), tidak berlaku di mobile. */
@media (min-width: 992px) {
  .special-note-body {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Baris sorotan di tengah catatan — "I LIKE YOU" */
.special-note-highlight {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 1.5rem;
  color: #c0c1ff;
  text-align: center;
  margin: 1.75rem 0;
  text-shadow: 0 0 22px rgba(128, 131, 255, 0.45);
}

/* Ilustrasi "No comment yet" */
.comment-empty-art {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

/* Loncat ke ruang komentar (dari tombol 💭) tanpa ketutup navbar sticky */
html { scroll-behavior: smooth; }
.comment-section { scroll-margin-top: 84px; }

/* Satu komentar pada daftar */
.comment-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* ==========================================================================
   Pratinjau gambar (lightbox) — berlaku di semua halaman publik
   ========================================================================== */
.img-preview {
  cursor: zoom-in;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.img-preview:hover {
  opacity: 0.9;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;                       /* di atas navbar sticky & lainnya */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.img-lightbox.show {
  display: flex;
}
.img-lightbox img {
  max-width: min(92vw, 880px);
  max-height: 88vh;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  object-fit: contain;
  cursor: default;
  animation: imgLightboxIn 0.18s ease-out;
}
@keyframes imgLightboxIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.img-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: #dfe2ee;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50rem;
  cursor: pointer;
}
.img-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ==========================================================================
   Dialog share
   ========================================================================== */
.share-pop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 10, 16, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.share-pop.show { display: flex; }
.share-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #181c24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: imgLightboxIn 0.18s ease-out;
}
.share-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50rem;
  background: transparent;
  color: #908fa0;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.share-close:hover { color: #fff; }

/* ==========================================================================
   Halaman legal (Privacy Policy / Terms of Service)
   ========================================================================== */
.legal-prose {
  color: #c7cad8;
  line-height: 1.75;
}
.legal-prose > p:first-child {
  margin-top: 0;
}
.legal-prose h2 {
  color: #f2f3f8;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
}
.legal-prose p,
.legal-prose li {
  font-size: 0.95rem;
}
.legal-prose ul {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}
.legal-prose li {
  margin-bottom: 0.4rem;
}
.legal-prose a {
  color: #a8b0ff;
  text-decoration: none;
}
.legal-prose a:hover {
  text-decoration: underline;
}
.legal-prose strong {
  color: #f2f3f8;
}
.legal-prose code {
  font-family: 'JetBrains Mono', monospace;
  color: #bdc2ff;
  font-size: 0.88em;
}
.comment-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #c0c1ff;
  background-color: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.comment-bubble {
  flex: 1;
  background-color: #12161f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.85rem;
  padding: 0.65rem 0.9rem;
}
.comment-text {
  white-space: pre-wrap;
  word-break: break-word;
}
