/* ==========================================================================
   QR & BARCODE STUDIO PRO - ADS & MONETIZATION STYLES
   Google AdSense & Adsterra Placement Containers (CLS Optimized = 0)
   ========================================================================== */

/* Generic Ad Container Base */
.ad-slot-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

/* Header Top Banner (728x90 Desktop / 320x50 Mobile) */
.ad-header-banner {
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto 1.5rem auto;
}

@media (max-width: 768px) {
  .ad-header-banner {
    min-height: 50px;
    max-width: 320px;
  }
}

/* Sidebar Rectangle Ad (300x250) */
.ad-sidebar-banner {
  min-height: 250px;
  width: 100%;
  max-width: 300px;
  margin: 1rem auto;
}

/* In-Feed Banner (Responsive) */
.ad-infeed-banner {
  min-height: 120px;
  width: 100%;
  background: rgba(17, 24, 39, 0.4);
  border: 1px dashed var(--border-glass);
}

/* Bottom Sticky Footer Banner */
.ad-footer-banner {
  min-height: 90px;
  width: 100%;
  max-width: 728px;
  margin: 2rem auto 0 auto;
}

/* Interactive Visual Placeholder (When live Ads are loading or in dev test mode) */
.ad-placeholder {
  width: 100%;
  height: 100%;
  min-height: 90px;
  background: linear-gradient(135deg, rgba(31, 41, 61, 0.5) 0%, rgba(17, 24, 39, 0.7) 100%);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-dim);
  padding: 1rem;
  text-align: center;
  transition: var(--transition-fast);
}

.ad-placeholder i {
  font-size: 1.4rem;
  color: var(--accent-secondary);
}

.ad-placeholder p {
  font-size: 0.8rem;
  font-weight: 500;
}

.ad-placeholder span {
  font-size: 0.65rem;
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}
