/* ============================================================
   Ad Slot Styles — Dressmaker Guide
   ============================================================ */

.ad-slot {
  margin: var(--space-xl) auto;
  max-width: 100%;
  text-align: center;
  position: relative;
}

.ad-slot.ad-top-banner {
  margin: var(--space-lg) auto;
}

.ad-slot.ad-in-content {
  margin: var(--space-2xl) auto;
}

.ad-slot.ad-bottom-banner {
  margin: var(--space-2xl) auto var(--space-xl);
}

.ad-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  width: 100%;
  max-width: 728px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8f6f3 0%, #f0ebe5 100%);
  border: 1px dashed #d4c9bc;
  border-radius: var(--radius-md);
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
}

.ad-container.ad-large {
  min-height: 280px;
  max-width: 336px;
}

.ad-container.ad-leaderboard {
  min-height: 90px;
  max-width: 728px;
}

.ad-container.ad-medium-rectangle {
  min-height: 250px;
  max-width: 300px;
}

.ad-container.ad-responsive {
  min-height: 120px;
  max-width: 100%;
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #a89b8c;
  font-size: 12px;
  gap: 4px;
}

.ad-placeholder-icon {
  font-size: 24px;
  opacity: 0.5;
}

.ad-placeholder-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.ad-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b0a598;
  margin-bottom: 4px;
  font-weight: 500;
}

/* Sidebar ad */
.ad-sidebar {
  margin-bottom: var(--space-lg);
}

.ad-sidebar .ad-container {
  max-width: 300px;
  min-height: 250px;
}

/* In-feed ad (between guide cards) */
.ad-in-feed {
  grid-column: 1 / -1;
  margin: var(--space-md) 0;
}

.ad-in-feed .ad-container {
  max-width: 100%;
  min-height: 120px;
}

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

  .ad-container.ad-large {
    min-height: 200px;
    max-width: 100%;
  }

  .ad-container.ad-leaderboard {
    min-height: 100px;
    max-width: 100%;
  }

  .ad-slot {
    margin: var(--space-lg) auto;
  }
}

/* Loaded ad (when real AdSense is active) */
.ad-slot.ad-loaded .ad-placeholder {
  display: none;
}

.ad-slot.ad-loaded .ad-container {
  background: transparent;
  border: none;
  padding: 0;
}

.ad-slot.ad-loaded .ad-label {
  display: block;
}
