/* ============================================
   InfluenceHub – Image guard placeholder styling
   - Ensures the inline SVG placeholder used by
     image-guard.js renders cleanly inside catalog
     cards, profile modals and the hero preview.
   - Matches the brand violet palette.
   - Dark mode, prefers-reduced-motion and
     forced-colors support.
   ============================================ */

/* ---------- Placeholder image ---------- */

img.image-guard-placeholder {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  object-fit: cover;
  display: block;
}

/* Keep the placeholder from collapsing in flex/grid contexts. */
img.image-guard-placeholder[width][height] {
  width: auto;
  height: auto;
}

/* ---------- Dark mode ---------- */

.dark img.image-guard-placeholder {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  img.image-guard-placeholder {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Forced colors (Windows High Contrast) ---------- */

@media (forced-colors: active) {
  img.image-guard-placeholder {
    background: Canvas;
    border: 1px solid CanvasText;
  }
}
