/* style.css - gaya tambahan di luar utility class Tailwind */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Scrollbar gelap agar serasi dengan tema */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #22c55e; }

/* FAQ accordion: sembunyikan marker bawaan <summary> & beri animasi buka */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > .faq-answer { animation: faqFade 0.25s ease-out; }
@keyframes faqFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Editor mode admin ===== */
[data-off] { display: none !important; }
body.is-admin section[data-off] { display: block !important; opacity: .4; outline: 2px dashed #f59e0b; outline-offset: -4px; }
body.is-admin section[data-off]::before { content: 'Disembunyikan dari pengunjung'; position: absolute; z-index: 5; margin: 8px; padding: 2px 10px; border-radius: 999px; background: #f59e0b; color: #020617; font: 700 11px Inter, sans-serif; }
body.is-admin section[data-off] { position: relative; }
.tme-edit { outline: 1px dashed rgba(251, 191, 36, .55); outline-offset: 2px; cursor: text; min-width: 1ch; }
.tme-edit:focus { outline: 2px solid #fbbf24; background: rgba(251, 191, 36, .08); }

/* ===== Pengaturan tata letak di dalam bagian (js/layout.js) ===== */
@media (min-width: 768px) {
  [data-cols="1"] { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
  [data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  [data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
[data-align="left"] { text-align: left !important; margin-left: 0 !important; margin-right: auto !important; }
section[data-pad="sm"] { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
section[data-pad="lg"] { padding-top: 7rem !important; padding-bottom: 7rem !important; }
[data-width="narrow"] { max-width: 56rem !important; }
[data-width="wide"] { max-width: 92rem !important; }
