/*
 * ALPHA FITNESS — UX States
 * ─────────────────────────────────────────────────────────────────
 * Componentes reusables para estados vacíos y de carga.
 *
 * USO:
 *   <div class="alpha-empty alpha-empty-md">
 *     <div class="alpha-empty-illustration"> [SVG inline] </div>
 *     <h3 class="alpha-empty-title">Tu título</h3>
 *     <p class="alpha-empty-text">Descripción</p>
 *     <button class="alpha-empty-cta">CTA opcional</button>
 *   </div>
 *
 *   <div class="alpha-skeleton alpha-skeleton-card"></div>
 *   <div class="alpha-skeleton alpha-skeleton-line"></div>
 *
 * Refactor: 2026-06-02
 */

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATES — patrón unificado
   ═══════════════════════════════════════════════════════════════ */

.alpha-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  color: #888;
  animation: alphaEmptyFadeIn 0.4s ease;
}
.alpha-empty-sm { padding: 24px 16px; }
.alpha-empty-md { padding: 48px 24px; }
.alpha-empty-lg { padding: 80px 32px; }

.alpha-empty-illustration {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  opacity: 0.85;
  animation: alphaEmptyFloat 4s ease-in-out infinite;
}
.alpha-empty-sm .alpha-empty-illustration { width: 80px; height: 80px; margin-bottom: 14px; }
.alpha-empty-lg .alpha-empty-illustration { width: 160px; height: 160px; margin-bottom: 28px; }

.alpha-empty-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}

.alpha-empty-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 0.3px;
}
.alpha-empty-sm .alpha-empty-title { font-size: 15px; }
.alpha-empty-lg .alpha-empty-title { font-size: 22px; margin-bottom: 12px; }

.alpha-empty-text {
  color: #888;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}
.alpha-empty-sm .alpha-empty-text { font-size: 12px; }

.alpha-empty-cta {
  margin-top: 20px;
  padding: 11px 26px;
  background: linear-gradient(135deg, #39ff14, #2ecc00);
  color: #000;
  border: none;
  border-radius: 30px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(57, 255, 20, 0.25);
  text-transform: uppercase;
  font-family: inherit;
}
.alpha-empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(57, 255, 20, 0.4);
}
.alpha-empty-cta:active {
  transform: translateY(0);
}

/* Animaciones de empty state */
@keyframes alphaEmptyFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes alphaEmptyFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADERS — placeholders animados durante carga
   ═══════════════════════════════════════════════════════════════ */

.alpha-skeleton {
  background: linear-gradient(
    90deg,
    #0f0f0f 0%,
    #1a1a1a 50%,
    #0f0f0f 100%
  );
  background-size: 200% 100%;
  animation: alphaShimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes alphaShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Variantes prediseñadas */
.alpha-skeleton-line { height: 14px; width: 100%; margin: 6px 0; }
.alpha-skeleton-line-sm { height: 10px; }
.alpha-skeleton-line-md { height: 14px; }
.alpha-skeleton-line-lg { height: 20px; }
.alpha-skeleton-line.short { width: 60%; }
.alpha-skeleton-line.medium { width: 80%; }
.alpha-skeleton-line.long { width: 100%; }

.alpha-skeleton-circle { border-radius: 50%; }
.alpha-skeleton-circle-sm { width: 32px; height: 32px; }
.alpha-skeleton-circle-md { width: 48px; height: 48px; }
.alpha-skeleton-circle-lg { width: 72px; height: 72px; }

.alpha-skeleton-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 12px;
}

.alpha-skeleton-card {
  background: #111;
  border: 1px solid #1a1a1a;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}
.alpha-skeleton-card .alpha-skeleton-image { flex: 1; min-height: 180px; }

.alpha-skeleton-card-list {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #111;
  border-radius: 10px;
  align-items: center;
}

/* Grid skeleton (para listas de productos) */
.alpha-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px 0;
}

/* Respeta usuarios con prefer-reduced-motion (a11y) */
@media (prefers-reduced-motion: reduce) {
  .alpha-skeleton { animation-duration: 3s; }
  .alpha-empty-illustration { animation: none; }
  .alpha-empty { animation: none; }
}
