/* e-Ftesa.al · shared component styles
   Right now, only the file-upload image slot lives here. Every template
   includes this file; each template overrides the visual chrome with
   selectors that win on specificity. */

.image-slot {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.image-slot__input {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.image-slot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 4;
}

.image-slot--filled .image-slot__img { opacity: 1; }
.image-slot--filled .image-slot__hint { opacity: 0; }

.image-slot__hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Inter', system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.image-slot--drag {
  outline: 1px dashed currentColor;
  outline-offset: -6px;
}

@media (prefers-reduced-motion: reduce) {
  .image-slot__img, .image-slot__hint { transition: none; }
}

/* Templates use 2-column .share-grid / .btn-grid grids for the
   WhatsApp + Kopjo lidhjen pair. Each .btn has generous padding
   that overflows its grid cell at iPhone-SE / preview-iframe
   widths. These rules pin buttons to their cell width and shrink
   padding on narrow viewports so labels never push out of frame. */
.share-grid, .btn-grid { min-width: 0; }
.share-grid > .btn, .btn-grid > .btn {
  min-width: 0;
  width: 100%;
}
@media (max-width: 380px) {
  .share-grid > .btn, .btn-grid > .btn {
    padding-left: 10px;
    padding-right: 10px;
  }
}
