/* ============================================================
   ads.css — IAB standard banner ads, ad card, ad strip styles
   ============================================================ */

/* ── IAB STANDARD BANNERS ─────────────────────────────────── */
.iab-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.iab-wrap iframe {
  display: block;
  border: 0;
  max-width: 100%;
}
.iab-label {
  position: absolute; top: 6px; right: 8px;
  font-size: 9px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.45);
  padding: 2px 7px; border-radius: 4px;
  z-index: 2;
}
.iab-img { width: 100%; height: auto; display: block; cursor: pointer; transition: opacity .2s; }
.iab-img:hover { opacity: .92; }

/* Leaderboard 728×90 */
.iab-leaderboard         { max-width: 728px; margin: 0 auto; }
.iab-leaderboard .iab-img { height: 90px; object-fit: cover; }
.iab-leaderboard iframe   { height: 90px; }

/* Billboard 970×250 */
.iab-billboard           { max-width: 970px; margin: 0 auto; }
.iab-billboard .iab-img  { height: 250px; object-fit: cover; }
.iab-billboard iframe    { height: 250px; }

/* Medium Rectangle 300×250 (inside profile grid) */
.iab-mrec-card           { padding: 0; overflow: hidden; min-height: auto; position: relative; }
.iab-mrec-card .iab-label { font-size: 9px; }

/* ── LEGACY AD CARD (inline fallback) ─────────────────────── */
.adcard {
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 18px 13px; text-align: center;
  min-height: 235px;
}
.adcard .al { position: absolute; top: 7px; right: 7px; font-size: 9px; color: var(--mut); background: rgba(255,255,255,.05); padding: 2px 5px; border-radius: 4px; }
.adcard .ai { font-size: 42px; margin-bottom: 9px; }
.adcard .at { font-size: 13.5px; font-weight: 800; margin-bottom: 5px; }
.adcard .as { font-size: 11.5px; color: var(--mut); margin-bottom: 13px; line-height: 1.5; }
.adcard .ab { padding: 8px 18px; border-radius: 9px; border: none; font-size: 11.5px; font-weight: 700; cursor: pointer; background: var(--gold); color: #000; }

/* ── AD BANNER — HERO ─────────────────────────────────────── */
.ad-banner-hero { border-radius: 16px; overflow: hidden; }
.abh-inner {
  background: linear-gradient(135deg, rgba(224,25,121,0.14), rgba(244,114,182,0.08));
  border: 1px solid rgba(224,25,121,0.25);
  border-radius: 16px; padding: 20px 22px;
}
.abh-tag {
  display: inline-block;
  font-size: 9px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px;
  background: rgba(224,25,121,0.15); color: #f979b7;
  border: 1px solid rgba(224,25,121,0.25);
  margin-bottom: 14px;
}
.abh-content { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.abh-icon  { font-size: 44px; flex-shrink: 0; }
.abh-text  { flex: 1; min-width: 180px; }
.abh-title { font-size: 17px; font-weight: 900; letter-spacing: -.3px; margin-bottom: 4px; }
.abh-sub   { font-size: 12.5px; color: var(--mut); line-height: 1.5; }
.abh-btn   {
  padding: 11px 22px; border: none; border-radius: 11px;
  background: linear-gradient(135deg, #e01979, #f472b6);
  color: #fff; font-weight: 800; font-size: 13px;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}

/* ── AD BANNER — STRIP ────────────────────────────────────── */
.ad-banner-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(224,25,121,0.06);
  border: 1px solid rgba(224,25,121,0.18);
  border-radius: 13px; flex-wrap: wrap;
}
.abs-tag  { font-size: 9px; font-weight: 800; letter-spacing: 1px; padding: 2px 7px; border-radius: 20px; background: rgba(224,25,121,0.12); color: #f979b7; border: 1px solid rgba(224,25,121,0.2); flex-shrink: 0; }
.abs-icon { font-size: 22px; flex-shrink: 0; }
.abs-text { flex: 1; font-size: 12.5px; color: var(--mut); min-width: 160px; }
.abs-text strong { color: var(--txt); }
.abs-btn  {
  padding: 8px 18px; border: none; border-radius: 9px;
  background: linear-gradient(135deg, #e01979, #f472b6);
  color: #fff; font-weight: 700; font-size: 12px;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .iab-leaderboard .iab-img { height: 60px; }
  .iab-billboard .iab-img   { height: 140px; }
}

/* ── NATIVE AD CARD in pgrid ──────────────────────────────── */
.ad-native-card {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  padding: 0 !important;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.ad-native-card iframe {
  display: block;
  border: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 320px;
  flex: 1;
}
/* Fix iab-mrec-card border when used as ad-native-card */
.ad-native-card.iab-mrec-card {
  border: none !important;
  background: transparent !important;
}
/* ── ADNIUM NATIVE SCRIPT AD — text & background overrides ── */
.iab-ad-holder {
  background: transparent !important;
  overflow: hidden;
}
/* Force all text inside injected ad widget to white */
.iab-ad-holder *,
.iab-ad-holder .adn-native-item-title,
.iab-ad-holder .adn-native-item-text,
.iab-ad-holder .adn-native-item-brand {
  color: #ffffff !important;
}
/* Description/sub text — slightly muted white */
.iab-ad-holder .adn-native-item-text,
.iab-ad-holder .adn-native-item-brand {
  color: rgba(255,255,255,0.75) !important;
}
/* Widget background transparent so card bg shows through */
.iab-ad-holder .adn-native {
  background-color: transparent !important;
}