/* Srikandi Kenyalang — behaviour styles that replace framer-motion / Radix from the old build.
   All colours and layout still come from app.css (the original compiled Tailwind). */

[hidden] { display: none !important; }

/* Fade-up on scroll (framer-motion "hidden -> show": opacity 0, y 30, 0.6s) */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Falling petals in the purple hero bands */
.sk-p { opacity: .6; animation: sk-fall var(--dur, 16s) linear var(--delay, 0s) infinite; will-change: transform; }
@keyframes sk-fall {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(var(--dx, 30px), 110vh) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) { .sk-p { animation: none; } }

/* Small pop-in for the music button and dropdowns */
.sk-pop { animation: sk-pop .3s ease both; }
@keyframes sk-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.sk-drop:not([hidden]) { animation: sk-drop .15s ease both; }
@keyframes sk-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Mobile menu open */
.sk-collapse:not([hidden]) { animation: sk-open .3s ease both; }
@keyframes sk-open { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 900px; } }

/* Dialogs (Portal Ahli) and full-screen modals */
.sk-dialog:not([hidden]) .sk-fade, .sk-modal:not([hidden]) { animation: sk-fadein .2s ease both; }
.sk-dialog:not([hidden]) .sk-zoom { animation: sk-zoomin .2s ease both; }
.sk-modal:not([hidden]) > div { animation: sk-modalin .25s ease both; }
@keyframes sk-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes sk-zoomin { from { opacity: 0; transform: translate(-50%, -48%) scale(.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes sk-modalin { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
body.sk-lock { overflow: hidden; }

/* Step changes on Luahan Isi Hati */
.sk-step-in { animation: sk-stepin .35s ease both; }
@keyframes sk-stepin { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* Spinner */
.sk-spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toasts (shadcn look) */
#sk-toasts > li { animation: sk-toastin .25s ease both; }
@keyframes sk-toastin { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
#sk-toasts > li.is-out { animation: sk-fadein .2s ease reverse both; }

/* Member analysis chart (replaces recharts) */
.sk-chart { width: 100%; height: 100%; display: block; overflow: visible; }
.sk-chart text { font-family: Poppins, sans-serif; font-size: 11px; fill: #666; }
.sk-chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; z-index: 5; }

/* Tentang Kami — Kelayakan & Latihan Pengasas */
.sk-qual-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sk-qual-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sk-qual-grid { grid-template-columns: repeat(4, 1fr); } }
.sk-qual-card { background: #fff; border: 1px solid hsl(var(--secondary) / .2); border-radius: 1rem; padding: 1.75rem 1.5rem; box-shadow: 0 1px 2px rgb(0 0 0 / .05); text-align: center; display: flex; flex-direction: column; align-items: center; }
.sk-qual-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px -12px hsl(var(--primary) / .25); }
.sk-qual-icon { width: 4rem; height: 4rem; flex-shrink: 0; border-radius: 9999px; background: linear-gradient(135deg, #3c0b50, #541773, #74248f); border: 2px solid hsl(var(--secondary) / .4); color: hsl(var(--secondary)); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.sk-qual-icon svg { width: 1.75rem; height: 1.75rem; }
.sk-qual-body { display: flex; flex-direction: column; align-items: center; width: 100%; flex-grow: 1; }
.sk-qual-body h3 { font-family: Playfair Display, serif; font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: hsl(var(--primary)); }
.sk-qual-body h3::after { content: ""; display: block; width: 2.5rem; height: 2px; background: hsl(var(--secondary) / .6); margin: .75rem auto; border-radius: 2px; }
.sk-qual-org { font-size: .875rem; font-weight: 600; color: hsl(var(--foreground) / .85); line-height: 1.45; }
.sk-qual-sub { font-size: .8rem; color: hsl(var(--muted-foreground)); margin-top: .15rem; }
.sk-qual-prog { font-size: .875rem; font-weight: 600; color: hsl(var(--accent)); margin-top: .6rem; line-height: 1.4; }
.sk-qual-desc { font-size: .875rem; color: hsl(var(--muted-foreground)); line-height: 1.65; margin-top: .85rem; }
.sk-qual-list { list-style: none; padding: 0; margin: .6rem 0 0; text-align: left; width: 100%; }
.sk-qual-list li { position: relative; padding-left: 1.1rem; font-size: .85rem; line-height: 1.45; color: hsl(var(--foreground) / .8); margin-top: .55rem; }
.sk-qual-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .4rem; height: .4rem; transform: rotate(45deg); background: hsl(var(--secondary)); }
.sk-qual-logos { margin-top: auto; padding-top: 1.1rem; width: 100%; }
.sk-qual-logos > p { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-bottom: .6rem; border-top: 1px solid hsl(var(--secondary) / .25); padding-top: .9rem; }
.sk-qual-logos > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem .75rem; align-items: center; justify-items: center; }
.sk-qual-logos img { max-height: 3.1rem; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.sk-qual-band { margin-top: 2.5rem; border-radius: 1rem; padding: 1.1rem 1.5rem; text-align: center; border: 1px solid hsl(var(--secondary) / .35); }
.sk-qual-band p { font-family: Playfair Display, serif; font-style: italic; color: #fff; font-size: 1.05rem; line-height: 1.5; }

/* Phone: icon on the left, text on the right (as in the mobile reference) */
@media (max-width: 639px) {
  .sk-qual-card { flex-direction: row; align-items: flex-start; text-align: left; gap: 1rem; padding: 1.25rem; }
  .sk-qual-icon { width: 3.25rem; height: 3.25rem; margin-bottom: 0; }
  .sk-qual-icon svg { width: 1.4rem; height: 1.4rem; }
  .sk-qual-body { align-items: flex-start; }
  .sk-qual-body h3 { font-size: 1.05rem; }
  .sk-qual-body h3::after { margin: .5rem 0 .6rem; }
  .sk-qual-desc { margin-top: .6rem; }
  .sk-qual-logos > div { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .sk-qual-logos img { max-height: 2.4rem; }
  .sk-qual-band p { font-size: .95rem; }
}
