/* ============================================================
   GymManager — Supplementary Styles
   Tailwind CDN handles 95% of styling; this file polishes
   focus rings, motion, micro-interactions, and print output.
   ============================================================ */

/* === 1. FOCUS RINGS === */
:focus-visible {
  outline: 2px solid #465fff;
  outline-offset: 3px;
  border-radius: 8px;
}
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
summary:focus,
[tabindex]:focus {
  outline: none;
}

/* === 2. SMOOTH SCROLL & ANCHOR OFFSET === */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* === 3. REDUCE MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === 4. ANIMATED NAV UNDERLINE === */
.nav-link-animated {
  position: relative;
}
.nav-link-animated::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #465fff;
  transition: width 200ms ease;
}
.nav-link-animated:hover::after,
.nav-link-animated:focus-visible::after {
  width: 100%;
}

/* === 5. CTA SHINE === */
.btn-shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: translateX(-100%) skewX(-20deg);
  transition: transform 700ms ease;
}
.btn-shine:hover::after {
  transform: translateX(200%) skewX(-20deg);
}

/* === 6. CUSTOM SCROLLBAR === */
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}
body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body::-webkit-scrollbar-track {
  background: transparent;
}
body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}
body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.25);
}
.dark body {
  scrollbar-color: rgba(70, 95, 255, 0.4) transparent;
}
.dark body::-webkit-scrollbar-thumb {
  background-color: rgba(70, 95, 255, 0.4);
}
.dark body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(70, 95, 255, 0.6);
}

/* === 7. SELECTION COLOR === */
::selection {
  background: rgba(70, 95, 255, 0.25);
  color: inherit;
}

/* === 8. SHIMMER LOADER === */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.10) 50%,
    rgba(0, 0, 0, 0.04) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 1.8s linear infinite;
}
.dark .shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 1000px 100%;
}

/* === 9. DETAILS ARROW POLISH === */
details summary svg {
  transition: transform 200ms ease;
}

/* === 10. GRADIENT BORDER === */
.gradient-border {
  position: relative;
  padding: 1px;
  background: linear-gradient(135deg, #465fff, #3641f5);
  border-radius: 16px;
}
.gradient-border > * {
  border-radius: inherit;
  background: #ffffff;
}
.dark .gradient-border > * {
  background: #101828;
}

/* === 11. PRINT === */
@media print {
  #site-nav,
  footer,
  [aria-label="Contactar por WhatsApp"] {
    display: none !important;
  }
}
