/* ============================================================
   ActivGate Ad Units
   static/css/ads.css
   ============================================================ */

/* Ad Units (search results / detail pages) */
.ad-unit {
  position: relative;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ad-unit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.ad-unit__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(37, 99, 235, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
}
.ad-unit__content {
  padding: 12px;
}
.ad-unit__content h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}
.ad-unit__content img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.ad-unit__why {
  display: block;
  padding: 4px 12px 8px;
  font-size: 11px;
  color: #94a3b8;
  text-align: right;
  text-decoration: none;
}
.ad-unit__why:hover {
  color: #2563eb;
}

/* Display card (blog / social feeds) */
.ad-display-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.ad-display-card .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

/* Post-booking ad */
.ad-post-booking {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}
.ad-post-booking h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Promote banner on partner dashboard */
.ad-promote-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(79, 70, 229, 0.03));
  border: 2px solid rgba(37, 99, 235, 0.15);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.ad-promote-banner h5 {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}
.ad-promote-banner p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 14px;
}

/* Boost button on owned content */
.ag-boost-btn,
.ag-card__action-btn--boost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 6px;
  padding: 3px 10px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.ag-boost-btn:hover,
.ag-card__action-btn--boost:hover {
  background: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
  text-decoration: none;
}
.ag-boost-btn svg,
.ag-card__action-btn--boost svg {
  stroke: currentColor;
}
