/* ==========================================================================
   Maquete do site de um pesqueiro com os espaços de anúncio
   (a rotação dos banners é feita em js/ad-rotator.js).
   ========================================================================== */

.adframe {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: 0 32px 60px -30px rgb(0 0 0 / 0.85);
}

/* ---------- Barra do navegador ---------- */
.adframe__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface-2);
}

.adframe__dots {
  display: flex;
  gap: 5px;
}

.adframe__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.adframe__url {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-subtle);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.adframe__url .icon {
  width: 11px;
  height: 11px;
}

.adframe__page {
  display: grid;
  gap: 10px;
  padding: 12px;
}

/* ---------- Espaço de anúncio ---------- */
.adslot {
  position: relative;
  isolation: isolate;
  height: clamp(64px, 16vw, 88px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--c-surface-2);
}

.adslot--inline {
  height: clamp(52px, 12vw, 66px);
}

/* Os slides entram por baixo e saem por cima (.is-active / .is-leaving vêm do JS) */
.adslot__slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 3px;
  padding-inline: clamp(14px, 4%, 22px);
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  transition:
    transform 0.7s var(--ease-out),
    opacity 0.45s ease;
}

.adslot__slide.is-active {
  opacity: 1;
  transform: none;
}

.adslot__slide.is-leaving {
  opacity: 0;
  transform: translate3d(0, -100%, 0);
}

/* Três "anunciantes" de exemplo, em tons sóbrios */
.adslot__slide--ink {
  background: var(--c-ink);
  color: var(--c-white);
}

.adslot__slide--blue {
  background: var(--c-primary-ink);
  color: var(--c-white);
}

.adslot__slide--light {
  background: #e2e8f0;
  color: var(--c-ink);
}

.adslot__slide strong {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.7rem + 1.7vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.adslot__slide span {
  font-size: clamp(0.66rem, 0.55rem + 0.4vw, 0.8rem);
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.85;
}

.adslot__badge {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--c-white);
  box-shadow: 0 0 0 1px rgb(15 23 42 / 0.12);
  color: var(--c-ink);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.adslot__progress {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 2px;
  background: rgb(15 23 42 / 0.25);
}

.adslot__progress i {
  display: block;
  height: 100%;
  background: var(--c-white);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Conteúdo fictício do site ---------- */
.mock-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 7px;
  height: clamp(108px, 27vw, 150px);
  padding: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #23402d;
}

.mock-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* escurece a foto para o conteúdo por cima ficar legível */
.mock-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(2 6 23 / 0.42);
}

.sk {
  display: block;
  height: 9px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.9);
}

.sk--title {
  width: 52%;
  height: 13px;
}

.sk--line {
  width: 36%;
  background: rgb(255 255 255 / 0.6);
}

.mock-btn {
  margin-top: 3px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mock-cards i {
  height: clamp(40px, 10vw, 56px);
  border-radius: 8px;
  background:
    linear-gradient(var(--c-line), var(--c-line)) 12% 72% / 56% 6px no-repeat,
    linear-gradient(#cbd5e1, #cbd5e1) 12% 44% / 34% 8px no-repeat,
    var(--c-surface-2);
}
