/* ============================================
   THE BIG BIN TOOLBOX — Ad Integration Styles
   Blended ad zones that match each page theme
   ============================================ */

/* --- Base Ad Zone --- */
.ad-zone {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  transition: opacity var(--duration-slow) var(--ease-out);
}

.ad-zone--loading {
  opacity: 0;
}

.ad-zone--visible {
  opacity: 1;
}

/* Subtle sponsored label */
.ad-zone::after {
  content: 'Sponsored';
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  z-index: 2;
}

/* --- Leaderboard (728x90) --- */
.ad-zone--leaderboard {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: var(--space-7) auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Sidebar (300x250) --- */
.ad-zone--sidebar {
  width: 100%;
  max-width: 300px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- In-Content (Responsive) --- */
.ad-zone--inline {
  width: 100%;
  min-height: 120px;
  margin: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Mobile Banner (320x50) --- */
.ad-zone--mobile-banner {
  display: none;
  width: 100%;
  max-width: 320px;
  min-height: 50px;
  margin: var(--space-4) auto;
  align-items: center;
  justify-content: center;
}

/* --- Placeholder Image Styling --- */
.ad-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 1px);
  display: block;
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: linear-gradient(135deg, var(--bg-glass) 0%, var(--bg-glass-heavy) 100%);
  border-radius: calc(var(--radius-lg) - 1px);
}

.ad-placeholder-icon {
  font-size: var(--text-2xl);
  opacity: 0.3;
}

.ad-placeholder-text {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* --- Responsive Ad Behavior --- */
@media (max-width: 768px) {
  .ad-zone--leaderboard {
    max-width: 100%;
    min-height: 100px;
  }

  .ad-zone--sidebar {
    max-width: 100%;
    min-height: 100px;
  }

  .ad-zone--mobile-banner {
    display: flex;
  }
}

@media (max-width: 480px) {
  .ad-zone--leaderboard {
    min-height: 60px;
  }
}
