/* ============================================================
   Beyond Beauty Academy × Glowtech — image placeholder
   Production build: the prototype's <image-slot> custom element
   is replaced by an inert, on-brand placeholder panel. The
   section stylesheets already size every `image-slot` (width /
   height); here we only give it its empty-state appearance:
   a soft pink→cream gradient, a centered photo icon, and the
   Hebrew caption pulled straight from the `placeholder` attribute.
   Drop a real <img> in later and remove the element's styling.
   ============================================================ */

image-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
  text-align: center;
  color: var(--gt-burgundy);
  background: linear-gradient(155deg, #ffedf2 0%, #f6d8e0 55%, #fff6e8 100%);
  box-shadow: inset 0 0 0 1.5px rgba(184, 51, 106, 0.18);
}

/* camera / image glyph */
image-slot::before {
  content: "";
  width: 40px;
  height: 40px;
  flex: none;
  opacity: 0.55;
  background-color: var(--gt-burgundy);
  -webkit-mask: var(--img-slot-icon) center / contain no-repeat;
  mask: var(--img-slot-icon) center / contain no-repeat;
}

/* caption straight from the element's placeholder="…" text */
image-slot::after {
  content: attr(placeholder);
  max-width: 88%;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gt-burgundy-ink);
  opacity: 0.85;
}

/* ------------------------------------------------------------
   Filled state: drop an <img> inside an <image-slot> and the
   empty-state look (gradient, icon, caption) disappears and the
   photo fills the slot. Honors the element's fit="cover|contain"
   and radius="…" attributes. Remove the <img> to get the
   placeholder back — fully reversible.
   ------------------------------------------------------------ */
image-slot:has(img) {
  padding: 0;
  gap: 0;
  background: none;
  box-shadow: none;
  overflow: hidden;
}
image-slot:has(img)::before,
image-slot:has(img)::after {
  content: none;
}
image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
image-slot[fit="contain"] img { object-fit: contain; }

:root {
  --img-slot-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="m21 15-5-5L5 21"/></svg>');
}
