/**
 * ad-slots.css — Ad placement styles for quikcalc.net
 * 
 * Ad placements are positioned to not disrupt calculator UX:
 * - Leaderboard: top of page, above calculator (728x90 or responsive)
 * - In-content: below calculator results, before CTA block
 * - Bottom: below CTA block, before footer
 * 
 * All ad containers have min-height to prevent layout shift.
 */

/* === Ad Slot Base === */
.ad-slot {
  min-height: 90px;
  margin: 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

.ad-slot.leaderboard {
  min-height: 100px;
  margin: 16px auto;
}

.ad-slot.in-content {
  min-height: 90px;
  margin: 28px auto;
}

.ad-slot.bottom {
  min-height: 90px;
  margin: 28px auto 16px;
}

/* === Google AdSense responsive sizing === */
.ad-slot ins.adsbygoogle {
  display: block !important;
  min-height: 90px;
}

/* === Leaderboard (728x90 desktop / 320x100 mobile) === */
@media (min-width: 800px) {
  .ad-slot.leaderboard {
    max-width: 728px;
    min-height: 90px;
  }
}
@media (max-width: 799px) {
  .ad-slot.leaderboard {
    max-width: 320px;
    min-height: 100px;
  }
}

/* === In-content (responsive) === */
@media (min-width: 800px) {
  .ad-slot.in-content {
    max-width: 580px;
  }
}
@media (max-width: 799px) {
  .ad-slot.in-content {
    max-width: 100%;
  }
}

/* === Adsterra / display ad styles === */
.ad-slot iframe {
  border: none;
  max-width: 100%;
}

/* === Popunder fallback indicator === */
.ad-slot[data-type="popunder"] {
  display: none; /* Popunders don't need on-page slots */
}
