/* ════════════════════════════════════════════════════════════
   BluCruise Design System — utilities.css
   Animations, accessibility, helpers. Requires: variables.css
════════════════════════════════════════════════════════════ */

/* ── Visibility helpers ─────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Spacing utilities ──────────────────────────────────────── */
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }

/* ── Text utilities ─────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-gold    { color: var(--gold); }
.text-coral   { color: var(--coral); }
.text-navy    { color: var(--navy); }
.text-muted   { color: var(--tx3); }

/* ── Flex helpers ───────────────────────────────────────────── */
.flex           { display: flex; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-col       { display: flex; flex-direction: column; }
.gap-1          { gap: var(--sp-1); }
.gap-2          { gap: var(--sp-2); }
.gap-3          { gap: var(--sp-3); }

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Hover card lift (max 250ms, luxury motion) ─────────────── */
.bc-lift {
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.bc-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── Toast notification ─────────────────────────────────────── */
.bc-toast {
  position: fixed;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--rad-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: var(--z-toast);
  white-space: nowrap;
  pointer-events: none;
}

.bc-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bc-toast i { color: var(--gold); font-size: 16px; }

/* ── Loading state ──────────────────────────────────────────── */
.bc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  color: var(--tx3);
  font-size: 13px;
}

.bc-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--br);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: bc-spin .7s linear infinite;
}

@keyframes bc-spin {
  to { transform: rotate(360deg); }
}
