@charset "UTF-8";

/**
 * Benimadhab Panjika — Ad placement system
 * Trust: clear labels · dashed frames · no ads in forms/CTAs
 * Revenue: standard IAB sizes · high-viewability zones
 */

/* ---- Spacing & safe zones ---- */
.ad-slot {
  padding: 1rem 0;
}

.ad-slot--compact {
  padding: 0;
}

.ad-slot--incontent {
  padding: 1.5rem 0;
  margin: 0.5rem 0;
}

.ad-slot--sidebar {
  padding: 0 0 1rem;
}

.ad-slot--footer {
  padding: 0;
}

.ad-zone-safe {
  /* Wrapper around forms / checkout — no ads inside */
}

/* ---- Frame ---- */
.ad-slot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  background: linear-gradient(145deg, #faf8f4 0%, #fff 50%, #f5f0e8 100%);
  border: 1px dashed #c4b8a8;
  border-radius: var(--radius, 0.5rem);
  overflow: hidden;
}

.ad-slot__label {
  position: absolute;
  top: 0.375rem;
  left: 0.5rem;
  z-index: 2;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7f72;
  background: rgba(255, 248, 231, 0.95);
  padding: 0.15rem 0.4rem;
  border-radius: 0.2rem;
  border: 1px solid #e8dfd0;
}

/* ---- Realistic mock placeholders ---- */
.ad-slot__mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 1.5rem 1rem;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(139, 0, 0, 0.02) 8px,
    rgba(139, 0, 0, 0.02) 16px
  );
}

.ad-slot__mock-size {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #9e9588;
  font-family: ui-monospace, monospace;
}

.ad-slot__mock-type {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #b5aa9a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- IAB sizes ---- */
.ad-slot__inner--leaderboard {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
}

.ad-slot__inner--native,
.ad-slot--native .ad-slot__inner {
  width: 100%;
  max-width: 336px;
  min-height: 280px;
}

.ad-slot__inner--skyscraper,
.ad-slot--skyscraper .ad-slot__inner {
  width: 100%;
  max-width: 300px;
  min-height: 600px;
}

.ad-slot__inner--mobile,
.ad-slot--mobile-bar .ad-slot__inner {
  width: 100%;
  max-width: 320px;
  min-height: 50px;
  margin: 0 auto;
}

.ad-slot__inner--halfpage {
  width: 100%;
  max-width: 300px;
  min-height: 600px;
}

/* Native ad preview (looks like content, clearly labeled) */
.ad-slot__mock--native {
  padding: 0.75rem;
  align-items: stretch;
}

.ad-slot__native-preview {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  flex: 1;
}

.ad-slot__native-img {
  flex: 1;
  min-height: 140px;
  background: linear-gradient(135deg, #e8e0d0 0%, #d4cfc4 100%);
  border-radius: 0.375rem;
  position: relative;
}

.ad-slot__native-img::after {
  content: "Image";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #9e9588;
  font-weight: 600;
}

.ad-slot__native-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-align: left;
  padding: 0 0.25rem;
}

.ad-slot__mock--mobile {
  min-height: 50px;
  padding: 0.5rem;
  flex-direction: row;
  gap: 0.5rem;
}

.ad-slot__mock--mobile .ad-slot__mock-size {
  font-size: 0.75rem;
}

/* ---- Footer ad band (pre-footer) ---- */
.ad-footer-band {
  background: var(--paper, #fff8e7);
  border-top: 1px solid var(--border, #e8dfd0);
  padding: 1.25rem 0;
}

.ad-footer-band__title {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted, #6b635a);
  margin: 0 0 1rem;
}

/* ---- Mobile sticky ad ---- */
.ad-sticky-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1010;
  background: var(--white, #fff);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 0.375rem 0.5rem 0.5rem;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ad-sticky-mobile.is-hidden {
  transform: translateY(100%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.ad-sticky-mobile.is-suppressed {
  display: none !important;
}

.ad-sticky-mobile__close {
  position: absolute;
  top: -14px;
  right: 0.625rem;
  width: 28px;
  height: 28px;
  border: 2px solid var(--white, #fff);
  border-radius: 50%;
  background: var(--primary, #8b0000);
  color: var(--white, #fff);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ad-sticky-mobile__close:hover {
  background: #6d0000;
}

/* Body padding when sticky ad visible */
body.has-sticky-ad {
  padding-bottom: 64px;
}

/* Conversion pages: purchase bars above ad layer */
body.has-dp-sticky,
body.has-cr-sticky {
  padding-bottom: 72px;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
  .ad-slot__inner--leaderboard {
    min-height: 60px;
  }

  .ad-slot__inner--native,
  .ad-slot--native .ad-slot__inner {
    max-width: 100%;
    min-height: 250px;
  }

  .ad-slot--skyscraper {
    display: none;
  }
}

@media (min-width: 992px) {
  .ad-slot--native.ad-slot--incontent .ad-slot__inner {
    max-width: 728px;
    min-height: 90px;
  }

  .ad-slot--native.ad-slot--incontent-wide .ad-slot__inner {
    max-width: 728px;
    min-height: 280px;
  }
}

/* Print: hide ads */
@media print {
  .ad-slot,
  .ad-sticky-mobile,
  .ad-footer-band {
    display: none !important;
  }
}
