/**
 * Al Falah Center - Custom Stylesheet
 * assets/scripts/web.css
 */

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

/* Default Icon Color: Primary (Sky 500) */
.material-symbols-rounded {
  color: #0ea5e9;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  user-select: none;
}

/* Allow explicit color classes to override */
.material-symbols-rounded[class*="text-"] {
  color: inherit;
}

/* Liquid Glass Backdrop Effect */
.liquid-glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] .liquid-glass {
  background: rgba(15, 23, 42, 0.85);
}

/* HTMX Transition Animations */
.htmx-swapping {
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.htmx-settling {
  opacity: 1;
  transition: opacity 150ms ease-in;
}

/* DaisyUI text-rotate Component */
.text-rotate {
  display: inline-grid;
  overflow: hidden;
  height: 1.25em;
  vertical-align: text-bottom;
}

.text-rotate > * {
  display: flex;
  flex-direction: column;
  animation: text-rotate 7.5s cubic-bezier(0.85, 0, 0.15, 1) infinite;
}

.text-rotate > * > * {
  height: 1.25em;
  display: flex;
  align-items: center;
}

.text-rotate:hover > * {
  animation-play-state: paused;
}

@keyframes text-rotate {
  0%, 26% {
    transform: translateY(0%);
  }
  33%, 59% {
    transform: translateY(-33.333%);
  }
  66%, 92% {
    transform: translateY(-66.666%);
  }
  100% {
    transform: translateY(0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-rotate > * {
    animation: none;
  }
}
