/**
 * embeds.css — Styling for the click-to-load placeholders.
 * Place this file in:  assets/css/embeds.css
 *
 * The look is intentionally neutral so it blends with the existing site.
 * Adjust the colors/sizes (especially the brand red and fonts) to match
 * Intertrend's design.
 */

.embed-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;        /* default ratio; override per use if needed */
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
}

/* Fallback ratio for very old browsers without aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
  .embed-facade::before {
    content: "";
    display: block;
    padding-top: 56.25%;       /* 9 / 16 */
  }
}

.embed-facade__button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 0;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.embed-facade__button:hover,
.embed-facade__button:focus-visible {
  background: rgba(0, 0, 0, .42);
  outline: none;
}

/* YouTube-style play button (change the red to your brand color) */
.embed-facade__play {
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: #e60000;
  position: relative;
}
.embed-facade__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

/* Document icon for the ISSUU placeholder */
.embed-facade--issuu .embed-facade__play { display: none; }
.embed-facade__doc {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 2px solid #fff;
  position: relative;
}
.embed-facade__doc::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 20px;
  background: #fff;
  clip-path: polygon(0 0, 70% 0, 100% 25%, 100% 100%, 0 100%);
}

.embed-facade__text {
  font: 600 .95rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  padding: 0 1rem;
  text-align: center;
}

/* Once loaded, drop the pointer affordance */
.embed-facade--loaded {
  cursor: default;
  background: #000;
}
.embed-facade--loaded iframe { border: 0; }
