/* =====================================================================
   AL-QIBLAH - SATU FILE CSS (sidebar + halaman depan, tema merah)
   Unggah di: Settings > Website > Appearance > Advanced > Journal Style Sheet (jurnal Al-Qiblah). OJS hanya menerima satu file, jadi semuanya digabung di sini.
   ===================================================================== */

/* ---------- 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(140,9,9,.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: #fbdcd9 !important; color: #c40606 !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: #e30707; font-weight: bold; transition: all .25s ease; }
.uw-item:hover { background: linear-gradient(90deg,#fbdcd9,#fdf3f2) !important; color: #8c0909 !important; padding-left: 24px !important; border-left-color: #e30707 !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 */
.uw-btn:hover { filter: brightness(1.18); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(140,9,9,.35); color: #fff !important; }
.uw-btn:active { transform: translateY(0); }

/* tombol Browse */
.uw-pill:hover { background: linear-gradient(135deg,#8c0909,#e30707) !important; color: #fff !important; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(140,9,9,.3); border-color: #e30707 !important; }

/* form */
.uw-input:focus { outline: none; border-color: #e30707 !important; box-shadow: 0 0 0 3px rgba(227,7,7,.22); }
.uw-submit:hover { filter: brightness(1.2); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(140,9,9,.35); }

/* ---------- HALAMAN DEPAN (class qb-*) ---------- */
@keyframes qb-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes qb-float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-16px,18px) scale(1.1); } }
@keyframes qb-bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1.2deg); } }
@keyframes qb-glow { 0%,100% { text-shadow: 0 2px 10px rgba(0,0,0,.2); } 50% { text-shadow: 0 0 22px rgba(255,255,255,.6), 0 2px 10px rgba(0,0,0,.2); } }
@keyframes qb-pulse { 0%,100% { box-shadow: 0 4px 10px rgba(140,9,9,.25), 0 0 0 0 rgba(227,7,7,.45); } 70% { box-shadow: 0 4px 10px rgba(140,9,9,.25), 0 0 0 12px rgba(227,7,7,0); } }

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

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

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

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

.qb-month { transition: transform .25s ease; }
.qb-month:hover { transform: translateY(-5px) scale(1.12); }

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

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

.qb-link { transition: color .2s ease; }
.qb-link:hover { color: #8c0909 !important; text-decoration: underline !important; }

.qb-logo { transition: all .3s ease; }
.qb-logo:hover { transform: translateY(-5px) scale(1.07); border-color: #e30707 !important; box-shadow: 0 10px 22px rgba(140,9,9,.22); }

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