/* public/css/public.css */

/* Default skala tampilan = 125%.
   Kelas Tailwind memakai rem, jadi menaikkan ukuran font dasar <html>
   memperbesar SEMUA teks, padding, dan jarak sekaligus (16px x 1.25 = 20px).
   Hasilnya identik dgn zoom 125%, tapi berlaku utk semua pengunjung tanpa men-zoom. */
html {
    font-size: 125%;
}

/* Base Setup */
body { 
    font-family: 'Source Sans 3', sans-serif; 
    background-color: #F7F8FC; 
    color: #191D29; 
    overflow-x: hidden; 
}

/* =========================================
   ANIMASI TOMBOL: SCALE UP + BLUR SHADOW
   ========================================= */
.btn-interactive { 
    /* Transisi diperlambat & dihaluskan (0.4s) */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                background-color 0.3s ease,
                border-color 0.3s ease;
}

.btn-interactive:hover { 
    /* Sedikit membesar, tidak berlebihan */
    transform: scale(1.02); 
    /* Bayangan hitam blur lembut di belakang */
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.15); 
}

.btn-interactive:active { 
    transform: scale(0.98); 
    box-shadow: 0 5px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Hapus efek hover bawaan Tailwind yang bikin bingung (khusus tombol) */
.btn-clean-hover:hover {
    background-color: inherit !important;
    border-color: inherit !important;
    color: inherit !important;
}

/* =========================================
   ANIMASI FOTO ABOUT (Naik + Shadow Blur)
   ========================================= */
.about-image { 
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
                filter 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
                grayscale 0.5s ease; 
}

.about-image:hover { 
    /* Naik ke atas */
    transform: translateY(-15px); 
    /* Bayangan blur ngikutin kontur badan lu */
    filter: grayscale(0) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25)); 
}

/* =========================================
   FAQ & REVEAL ANIMATION
   ========================================= */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * { animation: sweep .3s ease-in-out; }
@keyframes sweep { 0% {opacity: 0; transform: translateY(-10px)} 100% {opacity: 1; transform: translateY(0)} }
details[open] .icon-plus { transform: rotate(45deg); color: #1E3A8A; }

.js-enabled .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.js-enabled .reveal.active { opacity: 1; transform: translateY(0); }

/* Dropdown & Modal */
.dropdown-menu { opacity: 0; transform: scaleY(0.95); pointer-events: none; transition: all 0.2s ease-out; transform-origin: top; }
.dropdown-menu.active { opacity: 1; transform: scaleY(1); pointer-events: auto; }

.modal-overlay { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { transform: scale(0.95) translateY(10px); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .js-enabled .reveal { opacity: 1; transform: none; transition: none; }
    .btn-interactive { transition: none; }
    .about-image { transition: none; }
    details[open] summary ~ * { animation: none; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F7F8FC; border-left: 1px solid #E4E8F0; }
::-webkit-scrollbar-thumb { background: #1E3A8A; border-radius: 8px; border: 2px solid #F7F8FC; }
::-webkit-scrollbar-thumb:hover { background: #152C6B; }
/* =========================================
   BACA SELENGKAPNYA (deskripsi & changelog)
   ========================================= */
.readmore-body.readmore--clamped {
    position: relative;
    max-height: 260px;
    overflow: hidden;
}
.readmore-body.readmore--clamped::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(247,248,252,0), #F7F8FC);
    pointer-events: none;
}
.readmore-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    padding: 0;
    border: none;
    background: none;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: 'Instrument Sans', sans-serif;
}
.readmore-toggle:hover { text-decoration: underline; }
