/* Anig Design — custom CSS (animations, modal, reveal) carried over from the original design */

@layer base {
  html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
  body { overscroll-behavior: none; }
}
::-webkit-scrollbar { display: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary svg { transform: rotate(180deg); }

/* Material Symbols icon font */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
}

/* Layout helpers */
section[id] { scroll-margin-top: 5rem; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.screen-reader-text:focus {
  position: fixed !important; top: 8px; left: 8px; width: auto; height: auto;
  clip: auto; z-index: 100; padding: 10px 16px; background: #fff; color: #451ebb;
  border-radius: 9999px; box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* Dynamic keyframes & polish */
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -15px) scale(1.05); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}
@keyframes shimmerBorder {
  0% { border-color: rgba(93, 63, 211, 0.25); box-shadow: 0 0 20px rgba(93, 63, 211, 0.12); }
  50% { border-color: rgba(113, 42, 226, 0.6); box-shadow: 0 0 35px rgba(113, 42, 226, 0.24); }
  100% { border-color: rgba(93, 63, 211, 0.25); box-shadow: 0 0 20px rgba(93, 63, 211, 0.12); }
}
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.animate-float-slow { animation: floatSlow 8s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 5s ease-in-out infinite; }
.animate-shimmer-card { animation: shimmerBorder 4s ease-in-out infinite; }
.animate-marquee { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.animate-marquee:hover { animation-play-state: paused; }

/* Scroll reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-item.revealed { opacity: 1; transform: translateY(0); }

/* Nav link underline indicator */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #451ebb;
  border-radius: 9999px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

/* Modal */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-dialog {
  transform: scale(0.94) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}
.modal-backdrop.open .modal-dialog { transform: scale(1) translateY(0); opacity: 1; }

/* Form focus ring (DESIGN.md: input controls) */
input[type="email"]:focus, input[type="text"]:focus {
  border-color: #5d3fd3;
}

/* WordPress content (pages / posts) */
.entry-content { color: #484554; font-size: 17px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif; color: #171b26; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2; margin-top: 2em;
}
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content a { color: #451ebb; text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #712ae2; }
.entry-content ul { list-style: disc; padding-left: 1.5em; }
.entry-content ol { list-style: decimal; padding-left: 1.5em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 1rem; }
.entry-content blockquote {
  border-left: 3px solid #5d3fd3; padding-left: 1.25em; font-style: italic; color: #171b26;
}
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  .reveal-item { opacity: 1 !important; transform: none !important; transition: none !important; }
  .animate-float-slow, .animate-pulse-glow, .animate-shimmer-card, .animate-marquee { animation: none !important; }
}
