/* =====================================================================
   WAHATUL MUJTAMA' - SATU FILE CSS UNTUK SEMUANYA (sidebar + halaman depan)
   Unggah di: Settings > Website > Appearance > Advanced > Journal Style Sheet
   (OJS hanya menerima satu file, jadi dua bagian di bawah digabung di sini)
   ===================================================================== */

/* ---------- BAGIAN 1: SIDEBAR (class uw-*) ---------- */
@keyframes uw-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* kartu muncul bertahap saat halaman dibuka (fill-mode backwards agar hover tetap bisa bekerja) */
#uw-sidebar > .uw-card { animation: uw-rise .6s cubic-bezier(.2,.7,.2,1) backwards; }
#uw-sidebar > .uw-card:nth-child(2)  { animation-delay: .05s; }
#uw-sidebar > .uw-card:nth-child(3)  { animation-delay: .10s; }
#uw-sidebar > .uw-card:nth-child(4)  { animation-delay: .15s; }
#uw-sidebar > .uw-card:nth-child(5)  { animation-delay: .20s; }
#uw-sidebar > .uw-card:nth-child(6)  { animation-delay: .25s; }
#uw-sidebar > .uw-card:nth-child(7)  { animation-delay: .30s; }
#uw-sidebar > .uw-card:nth-child(n+8) { animation-delay: .35s; }

.uw-card { transition: box-shadow .3s ease, transform .3s ease; }
.uw-card:hover { box-shadow: 0 12px 28px rgba(31,90,16,.22) !important; transform: translateY(-3px); }

/* judul grup menu (About Journal, For Authors, ...) */
.uw-sum { list-style: none; position: relative; }
.uw-sum::-webkit-details-marker { display: none; }
.uw-sum::after { content: "\25BE"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); transition: transform .3s ease; }
details[open] > .uw-sum::after { transform: translateY(-50%) rotate(180deg); }
.uw-sum:hover { background: #dcefd1 !important; color: #2f7d18 !important; padding-left: 21px !important; }

/* item menu */
.uw-item { position: relative; }
.uw-item::after { content: "\2192"; position: absolute; right: 16px; top: 50%; transform: translate(-8px,-50%); opacity: 0; color: #39921e; font-weight: bold; transition: all .25s ease; }
.uw-item:hover { background: linear-gradient(90deg,#dff0d6,#f4faf0) !important; color: #1f5a10 !important; padding-left: 24px !important; border-left-color: #39921e !important; font-weight: 600 !important; text-decoration: none !important; }
.uw-item:hover::after { opacity: 1; transform: translate(0,-50%); }

/* ikon */
.uw-ico { transition: transform .25s ease; }
.uw-item:hover .uw-ico, .uw-sum:hover .uw-ico { transform: scale(1.3) rotate(-6deg); }

/* gambar dan thumbnail */
.uw-thumb img, .uw-img { transition: transform .4s ease; }
.uw-thumb:hover img { transform: scale(1.06); }
.uw-img:hover { transform: scale(1.05); }

/* tombol (termasuk tombol WhatsApp hijau) */
.uw-btn:hover { filter: brightness(1.18); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(31,90,16,.35); color: #fff !important; }
.uw-btn:active { transform: translateY(0); }

/* tombol Browse */
.uw-pill:hover { background: linear-gradient(135deg,#1f5a10,#39921e) !important; color: #fff !important; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(31,90,16,.3); border-color: #39921e !important; }

/* form */
.uw-input:focus { outline: none; border-color: #39921e !important; box-shadow: 0 0 0 3px rgba(57,146,30,.22); }
.uw-submit:hover { filter: brightness(1.2); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(31,90,16,.35); }

/* ---------- BAGIAN 2: HALAMAN DEPAN (class wm-*) ---------- */
@keyframes wm-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes wm-float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-16px,18px) scale(1.1); } }
@keyframes wm-bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1.2deg); } }
@keyframes wm-glow { 0%,100% { text-shadow: 0 2px 10px rgba(0,0,0,.18); } 50% { text-shadow: 0 0 22px rgba(255,255,255,.55), 0 2px 10px rgba(0,0,0,.18); } }
@keyframes wm-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(44,193,123,.45); } 70% { box-shadow: 0 0 0 12px rgba(44,193,123,0); } }

/* backwards (bukan both) supaya efek hover kartu tidak tertimpa animasi masuk */
.wm-rise { animation: wm-rise .75s cubic-bezier(.2,.7,.2,1) backwards; }
.wm-orb { animation: wm-float 9s ease-in-out infinite; }
.wm-bob { animation: wm-bob 5s ease-in-out infinite; }
.wm-title { animation: wm-glow 4s ease-in-out infinite; }
.wm-num { animation: wm-pulse 2.6s ease-out infinite; }

.wm-cover { box-shadow: 0 16px 34px rgba(0,0,0,.38); transition: transform .4s ease; }
.wm-cover:hover { transform: scale(1.06) rotate(-2deg); }

.wm-badge { transition: all .25s ease; cursor: default; }
.wm-badge:hover { background: rgba(255,255,255,.34) !important; transform: translateY(-3px); }

.wm-lift { transition: transform .3s ease, box-shadow .3s ease; }
.wm-lift:hover { transform: translateY(-7px); box-shadow: 0 16px 30px rgba(11,93,59,.22) !important; }

.wm-note { transition: transform .3s ease, box-shadow .3s ease; }
.wm-note:hover { transform: translateX(6px); box-shadow: 0 8px 22px rgba(11,93,59,.18) !important; }

.wm-row td { transition: background .2s ease; }
.wm-row:hover td { background: #dcf3e7 !important; }

.wm-link { transition: color .2s ease; }
.wm-link:hover { color: #c98a0b !important; text-decoration: underline !important; }

.wm-logo { transition: all .3s ease; }
.wm-logo:hover { transform: translateY(-5px) scale(1.07); border-color: #2cc17b !important; box-shadow: 0 10px 22px rgba(11,93,59,.22); }

@media (prefers-reduced-motion: reduce) {
  #uw-sidebar > .uw-card, .wm-rise, .wm-orb, .wm-bob, .wm-title, .wm-num { animation: none !important; }
}
