/* ==========================================================================
   GLOBAL EDU PLATFORM — ADSENSE CONTAINERS (adsense.css)
   Google AdSense-compliant responsive ad slots & graceful placeholders.
   ========================================================================== */

.ad-slot-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: var(--space-5) 0;
  clear: both;
}

.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-subtle);
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
}

.ad-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.4);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  text-align: center;
  transition: border-color var(--duration-normal) ease;
}

.ad-placeholder-text {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

/* 1. Header Leaderboard (728x90 desktop / 320x100 or 320x50 mobile) */
.ad-header-leaderboard {
  width: 100%;
  max-width: 728px;
  height: 90px;
}

/* 2. In-Game Sidebar Rectangle (300x250) — Desktop & Tablet only */
.ad-sidebar-rect {
  width: 300px;
  height: 250px;
}

/* 3. Post-Game Modal Rectangle (336x280 / 300x250) */
.ad-post-game {
  width: 100%;
  max-width: 336px;
  height: 280px;
  margin: var(--space-3) auto;
}

/* 4. Footer Banner Responsive (728x90 desktop / responsive) */
.ad-footer-banner {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: var(--space-4) auto 0;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .ad-header-leaderboard {
    max-width: 320px;
    height: 100px;
  }

  .ad-sidebar-rect {
    display: none; /* Never crowd game canvas on mobile */
  }

  .ad-post-game {
    max-width: 300px;
    height: 250px;
  }

  .ad-footer-banner {
    max-width: 320px;
    height: 50px;
  }
}
