/**
 * [ARTNET UI] Empty state
 * - 역할: 전역 빈 상태 · DS 토큰 · 플랫폼형 여백/아이콘
 * - 작성/수정일: 2026-08-11
 */

.an-empty {
  --an-empty-pad-y: 56px;
  --an-empty-pad-x: 24px;
  --an-empty-icon: 28px;
  --an-empty-ring: 88px;
  box-sizing: border-box;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: var(--an-empty-pad-y) var(--an-empty-pad-x);
  text-align: center;
  border: 1px solid var(--border-color, #eeeeee);
  border-radius: calc(var(--radius-md, 6px) + 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 247, 247, 0.88) 100%);
  color: var(--title-color, #171717);
  overflow: hidden;
}

.an-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.7;
}

.an-empty--soft {
  background: var(--section-bg-color, #f7f7f7);
  border-style: dashed;
}

.an-empty--sm {
  --an-empty-pad-y: 28px;
  --an-empty-pad-x: 16px;
  --an-empty-icon: 20px;
  --an-empty-ring: 56px;
  gap: 6px;
}

.an-empty--md {
  --an-empty-pad-y: 56px;
  --an-empty-pad-x: 24px;
}

.an-empty--lg {
  --an-empty-pad-y: 80px;
  --an-empty-pad-x: 28px;
  --an-empty-icon: 32px;
  --an-empty-ring: 104px;
  gap: 12px;
  min-height: 320px;
}

.an-empty__visual {
  position: relative;
  z-index: 1;
  width: var(--an-empty-ring);
  height: var(--an-empty-ring);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.an-empty__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 23, 23, 0.08) 0%, transparent 70%);
}

.an-empty__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border-color, #eeeeee);
  background: var(--white-color, #fff);
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.06);
}

.an-empty__icon {
  position: relative;
  z-index: 1;
  font-size: var(--an-empty-icon);
  line-height: 1;
  color: var(--title-color, #171717);
}

.an-empty__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: var(--fs-xs, 11px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-color, #7c7c7c);
}

.an-empty__title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1.125rem, 0.4vw + 1.05rem, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--title-color, #171717);
}

.an-empty--sm .an-empty__title {
  font-size: 0.95rem;
  font-weight: 600;
}

.an-empty__desc {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 32rem;
  font-size: var(--fs-body, 15px);
  line-height: 1.6;
  color: var(--muted-color, #7c7c7c);
}

.an-empty--sm .an-empty__desc {
  font-size: var(--fs-caption, 12px);
}

.an-empty__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.an-empty__actions .primary-btn2,
.an-empty__actions .secondary-btn {
  min-height: 42px;
}

/* [Dark] — 작성/수정일: 2026-08-11 */
html.dark .an-empty,
body.dark .an-empty {
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.96) 0%, rgba(18, 18, 18, 0.92) 100%);
}

html.dark .an-empty::before,
body.dark .an-empty::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html.dark .an-empty__ring,
body.dark .an-empty__ring {
  background: #1c1c1c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* [레거시 클래스 브릿지] 기존 empty 래퍼도 동일 톤 — 작성/수정일: 2026-08-11 */
.an-ex-empty:not(.an-empty),
.an-ar-empty:not(.an-empty),
.an-aw-empty:not(.an-empty),
.an-gl-empty:not(.an-empty),
.an-bo-empty:not(.an-empty) {
  padding: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 767.98px) {
  .an-empty--lg {
    --an-empty-pad-y: 56px;
    min-height: 260px;
  }
}
