/* Sponsored banners (js/ad-banner.js) - shared by the marketplace's live
   ad slots and the advertiser's live preview on advertising.html. */

.ad { position: relative; overflow: hidden; color: #fff; border-radius: 14px; text-decoration: none; display: block; isolation: isolate; }
.ad:hover { text-decoration: none; }
.ad::before, .ad::after {
  content: ''; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none;
  border: 36px solid rgba(255, 255, 255, 0.08);
}
.ad::before { width: 260px; height: 260px; right: -70px; top: -120px; }
.ad::after { width: 160px; height: 160px; right: 120px; bottom: -110px; border-width: 24px; }

.ad--sunset   { background: linear-gradient(120deg, #e8461c 0%, #f97316 55%, #fbbf24 100%); }
.ad--ocean    { background: linear-gradient(120deg, #075985 0%, #0284c7 55%, #22d3ee 100%); }
.ad--forest   { background: linear-gradient(120deg, #14532d 0%, #15803d 55%, #4ade80 100%); }
.ad--midnight { background: linear-gradient(120deg, #0b1220 0%, #1e293b 60%, #475569 100%); }
.ad--royal    { background: linear-gradient(120deg, #3b0764 0%, #6d28d9 55%, #c084fc 100%); }

.ad-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.22);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.ad-advertiser { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; opacity: 0.95; min-width: 0; }
.ad-advertiser span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-avatar {
  flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.95); color: #0f172a; font-weight: 800; font-size: 13px;
}
.ad-verified { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.ad-verified svg { width: 11px; height: 11px; }
.ad-headline { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; color: #fff; }
.ad-body { margin: 0; opacity: 0.92; line-height: 1.5; }
.ad-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0;
  padding: 11px 20px; border-radius: 10px; background: #fff; color: #0f172a;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45); transition: transform 0.15s ease;
}
.ad:hover .ad-cta { transform: translateX(2px); }
.ad-cta svg { width: 15px; height: 15px; }

/* Featured banner - full width, below the category bar */
.ad--top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; min-height: 120px; }
.ad--top .ad-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ad--top .ad-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ad--top .ad-headline { font-size: 22px; }
.ad--top .ad-body { font-size: 14px; max-width: 720px; }

/* Sidebar spotlight - below the filter panel */
.ad--side { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.ad--side .ad-headline { font-size: 17px; }
.ad--side .ad-body { font-size: 13px; }
.ad--side .ad-cta { margin-top: 4px; width: 100%; }
.ad--side::before { width: 200px; height: 200px; right: -90px; top: -90px; }
.ad--side::after { display: none; }

@media (max-width: 760px) {
  .ad--top { flex-direction: column; align-items: flex-start; padding: 18px; }
  .ad--top .ad-headline { font-size: 18px; }
  .ad--top .ad-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ad:hover .ad-cta { transform: none; }
}
