/**
 * atJeju — 광고 슬롯 (자체 배너 · CSS/SVG 기본 배너)
 */

.ad-slot {
  position: relative;
  margin: var(--space-4) 0;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
}

.ad-slot__label {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 3;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  text-transform: uppercase;
}

.ad-slot__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ad-slot__image {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  background: var(--color-surface-muted, #f0f2f5);
}

.ad-slot--campaign .ad-slot__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* 기본 배너 — 활성 캠페인 없을 때 (CSS + SVG) */
.ad-slot--default {
  margin: var(--space-4) 0;
}

.ad-slot__link--default {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-4) var(--space-4) 5.5rem;
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.15);
}

.ad-slot__default-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, #0d9488 0%, #14b8a6 38%, #ff6b4a 100%);
  z-index: 0;
}

.ad-slot__default-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ad-slot__default-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ad-slot__default-brand {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0d9488;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ad-slot__default-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  min-width: 0;
}

.ad-slot__default-text strong {
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.35;
}

.ad-slot__default-text span {
  font-size: var(--font-size-xs);
  opacity: 0.95;
}

.ad-slot__link--default:active {
  opacity: 0.92;
}

.card-list .ad-slot {
  margin: var(--space-3) 0 var(--space-4);
  width: 100%;
  min-height: 80px;
}

.detail-page .ad-slot--detail_footer {
  margin-top: var(--space-5);
  margin-bottom: calc(var(--space-4) + var(--detail-actions-h, 72px));
}

.home-page .ad-slot--home_feed {
  margin-top: 0;
  margin-bottom: var(--space-2);
  width: 100%;
}

.home-ad-slot:not(:has(.ad-slot)) {
  display: none;
}

.home-ad-slot:has(.ad-slot) {
  display: block;
  width: 100%;
}
