/* ─────────────────────────────────────────
   KP Ads Manager – Front-End Styles
   Matches the KickPredictions dark theme.
   Never overrides .monetag-ad-slot rules.
───────────────────────────────────────── */

/* ── Zone containers ── */
.kp-ads-zone {
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Ad Card ── */
.kp-ad-card {
  position: relative;
  background: linear-gradient(135deg, #1a2a1c 0%, #141c15 100%);
  border: 1px solid rgba(0, 230, 118, 0.18);
  border-left: 3px solid #00e676;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.kp-ad-card:hover {
  border-color: rgba(0, 230, 118, 0.45);
  box-shadow: 0 4px 24px rgba(0, 230, 118, 0.12);
  transform: translateY(-1px);
}

/* Affiliate gets a gold accent */
.kp-ad-card[data-category="affiliate"] {
  border-left-color: #ffe03c;
}

/* ── Meta bar (badge + advertiser + dismiss) ── */
.kp-ad-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.kp-ad-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.kp-ad-badge--company {
  background: rgba(0, 230, 118, 0.12);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.25);
}
.kp-ad-badge--personal {
  background: rgba(100, 181, 246, 0.12);
  color: #64b5f6;
  border: 1px solid rgba(100,181,246,0.25);
}
.kp-ad-badge--affiliate {
  background: rgba(255, 224, 60, 0.12);
  color: #ffe03c;
  border: 1px solid rgba(255,224,60,0.25);
}

.kp-ad-advertiser {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kp-ad-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.kp-ad-dismiss:hover { color: rgba(255,255,255,0.8); }

/* ── Ad link wrapper ── */
.kp-ad-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Text-only inner ── */
.kp-ad-inner--text {
  padding: 14px 16px;
}

/* ── Image + Text inner ── */
.kp-ad-inner--image {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.kp-ad-image-wrap {
  flex-shrink: 0;
  width: 120px;
  background: #0d1a0f;
  overflow: hidden;
}

.kp-ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kp-ad-text-block {
  flex: 1;
  padding: 14px 16px;
}

/* ── Typography ── */
.kp-ad-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}

.kp-ad-body {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin: 0 0 10px;
  line-height: 1.5;
}

/* ── CTA button ── */
.kp-ad-cta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 4px;
  transition: background 0.15s, transform 0.12s;
}

.kp-ad-cta--url {
  background: #00e676;
  color: #000;
}
.kp-ad-cta--whatsapp {
  background: #25d366;
  color: #fff;
}
.kp-ad-link:hover .kp-ad-cta {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ── Hero banner zone ── */
.kp-zone-hero_banner .kp-ad-card {
  border-left-width: 4px;
  box-shadow: 0 2px 20px rgba(0,230,118,0.08);
}
.kp-zone-hero_banner .kp-ad-title {
  font-size: 1.15rem;
}

/* ── Before-footer zone ── */
.kp-zone-before_footer {
  margin: 24px 0 0;
  padding: 0 0 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Mobile responsive ── */
@media (max-width: 600px) {
  .kp-ad-inner--image {
    flex-direction: column;
  }
  .kp-ad-image-wrap {
    width: 100%;
    height: 140px;
  }
  .kp-ad-title { font-size: 0.9rem; }
  .kp-ad-body  { font-size: 0.78rem; }
}

/* ── Hidden dismissed ads ── */
.kp-ad-card.kp-dismissed {
  display: none !important;
}
