/* Reusable AdCard — theme-matching, CLS-safe, lazy-loaded ad wrapper */
.ad-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 28px auto;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-card, #111111);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
}

.ad-card__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #777777);
  margin-bottom: 10px;
  text-align: center;
}

.ad-card__frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-dark, #0a0a0a);
}

.ad-card__frame iframe,
.ad-card__frame ins,
.ad-card__frame .adsbygoogle {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

/* Skeleton shimmer placeholder */
.ad-card__skeleton {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(
    90deg,
    var(--bg-card, #111111) 25%,
    rgba(255, 255, 255, 0.06) 50%,
    var(--bg-card, #111111) 75%
  );
  background-size: 200% 100%;
  animation: ad-card-shimmer 1.6s infinite;
}
.ad-card--loaded .ad-card__skeleton {
  display: none;
}

@keyframes ad-card-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Inline variant for card grids — spans full row, preserves alignment */
.ad-card--inline {
  grid-column: 1 / -1;
  margin: 28px 0;
}

@media (max-width: 767px) {
  .ad-card {
    margin: 24px auto;
    padding: 12px;
  }
}
