/**
 * [ARTNET Share]
 * - 역할: SNS 공유 드롭다운
 * - 작성/수정일: 2026-08-15
 */
.an-share {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.an-share__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 168px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--surface-color, #fff);
  border: 1px solid var(--border-color, #eeeeee);
  border-radius: var(--radius-sm, 6px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.an-share--end .an-share__menu {
  left: auto;
  right: 0;
}

.an-share__item {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--title-color, #171717);
  font-size: var(--fs-label, 14px);
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.an-share__item:hover,
.an-share__item:focus-visible {
  background: var(--chip-color, #f2f2f2);
  color: var(--title-color, #171717);
}

.an-share__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  font-size: 16px;
}

.an-share__badge {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  color: #fff;
}

.an-share__badge--kakao {
  background: #fee500;
  color: #191919;
}

.an-share__badge--naver {
  background: #03c75a;
}

.an-share__sep {
  height: 1px;
  margin: 4px 0;
  background: var(--border-color, #eeeeee);
}

html.dark .an-share__menu,
body.dark .an-share__menu {
  background: var(--white-color, #1a1a1a);
  border-color: var(--border-color, #333);
}

html.dark .an-share__item,
body.dark .an-share__item {
  color: var(--title-color, #f5f5f5);
}

html.dark .an-share__item:hover,
html.dark .an-share__item:focus-visible,
body.dark .an-share__item:hover,
body.dark .an-share__item:focus-visible {
  background: var(--chip-color, #2a2a2a);
}

html.dark .an-share__sep,
body.dark .an-share__sep {
  background: var(--border-color, #333);
}
