/**
 * [홈 CTA]
 * - 역할: 프로모션·전시 등록 블록 스타일. 어느 페이지에서 함수를 호출해도 적용된다
 * - 작성/수정일: 2026-09-25
 */

/* [홈 CTA · 프로모션] 시네마틱 스플릿 — 작성/수정일: 2026-08-20 */
.an-hub-house {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  min-height: 620px;
  overflow: hidden;
  background: #12110f;
  color: #f3eee6;
}

.an-hub-house a {
  color: inherit;
  text-decoration: none;
}

.an-hub-house__media {
  position: relative;
  overflow: hidden;
  background: #1a1916;
}

.an-hub-house__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
  filter: saturate(0.92) contrast(1.04);
}

@media (hover: hover) {
  .an-hub-house:hover .an-hub-house__media img {
    transform: scale(1.03);
  }
}

.an-hub-house__media:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(18, 17, 15, 0.18) 0%,
      transparent 32%,
      rgba(18, 17, 15, 0.78) 100%
    ),
    linear-gradient(90deg, transparent 70%, rgba(18, 17, 15, 0.28) 100%);
}

.an-hub-house__kicker,
.an-hub-house__brand,
.an-hub-house__brand strong,
.an-hub-house__brand span {
  color: #fff;
}

.an-hub-house__kicker {
  position: absolute;
  z-index: 2;
  top: 36px;
  left: 36px;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.22em;
}

.an-hub-house__brand {
  position: absolute;
  z-index: 2;
  left: 36px;
  right: 36px;
  bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.an-hub-house__brand strong {
  font-family: Poppins, sans-serif;
  font-size: var(--fs-display, 64px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.an-hub-house__brand span {
  flex: 0 0 auto;
  margin-bottom: 6px;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  opacity: 0.78;
}

.an-hub-house__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 5.5vw, 88px) clamp(36px, 4.2vw, 72px);
  color: #f3eee6;
}

.an-hub-house .an-hub-tag {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c4a36a;
}

.an-hub-house .an-hub-tag:before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: currentColor;
}

.an-hub-house__copy h2 {
  max-width: 11.2em;
  margin: 22px 0 16px;
  color: #f3eee6;
  font-size: var(--fs-h1, 46px);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.an-hub-house__copy > p {
  max-width: 34em;
  margin: 0;
  color: #b7b0a4;
  font-size: var(--fs-body);
  line-height: 1.7;
}

.an-hub-house__index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(243, 238, 230, 0.14);
}

.an-hub-house__index li {
  display: grid;
  grid-template-columns: 2.2em 1fr;
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 4px;
  padding: 20px 28px 20px 0;
  border-bottom: 1px solid rgba(243, 238, 230, 0.12);
}

.an-hub-house__index li:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid rgba(243, 238, 230, 0.12);
}

.an-hub-house__index li:nth-child(even) {
  padding-left: 28px;
}

.an-hub-house__index em {
  grid-row: 1 / span 2;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-micro);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #c4a36a;
}

.an-hub-house__index b {
  color: #f3eee6;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.an-hub-house__index span {
  color: #9a9388;
  font-size: var(--fs-caption);
  line-height: 1.4;
  word-break: keep-all;
}

/* [홈 CTA · 프로모션] 역할: 비회원 링크가 좁은 칸에 갇히지 않게 전폭 배치 — 작성/수정일: 2026-09-14 */
.an-hub-house__index li:has(> .an-hub-house__index-link) {
  grid-template-columns: minmax(0, 1fr);
}

.an-hub-house__index-link {
  display: grid;
  grid-template-columns: 2.2em 1fr;
  grid-template-rows: auto auto;
  column-gap: 4px;
  row-gap: 4px;
  grid-column: 1 / -1;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.an-hub-house__index-link:hover {
  opacity: 0.88;
}

.an-hub-house__index-link:focus-visible {
  outline: 2px solid #c4a36a;
  outline-offset: 2px;
}

.an-hub-house__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
}

.an-hub-house__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid rgba(243, 238, 230, 0.55);
  background: transparent;
  color: #f3eee6;
  font-family: Poppins, sans-serif;
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.an-hub-house__cta:hover,
.an-hub-house__cta:focus-visible {
  background: #f3eee6;
  border-color: #f3eee6;
  color: #12110f;
}

.an-hub-house__action small {
  font-family: Poppins, sans-serif;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  color: #8a8378;
}

/* [홈 CTA · 전시 등록] 역할: 전시홈에 묶이지 않고 블록만으로 배경·버튼이 보이게 — 작성/수정일: 2026-09-25 */
.an-home-cta {
  --ex-gold: #9b7940;
  --ex-house: #171714;
  --ex-btn: #f3eee5;
  --on-dark: #f3eee5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 8vw, 120px) 0;
  background-color: var(--ex-house);
  background-image: url("../img/exhibition-home/house.jpg");
  background-size: cover;
  background-position: center;
  color: var(--on-dark);
  border-bottom: 0;
}

html.dark .an-home-cta,
.dark .an-home-cta {
  --ex-gold: #d1ae6e;
  --ex-house: var(--cta-surface, #171714);
  --ex-btn: var(--on-dark, #f3eee5);
}

.an-home-cta:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 14, 0.88) 0%,
    rgba(17, 17, 14, 0.62) 55%,
    rgba(17, 17, 14, 0.5) 100%
  );
  pointer-events: none;
}

.an-home-cta .an-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.an-home-cta a {
  color: inherit;
  text-decoration: none;
}

.an-home-cta .an-home-cta__tag {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ex-gold);
}

.an-home-cta .an-home-cta__tag:before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: currentColor;
  vertical-align: middle;
}

.an-home-cta__body {
  display: grid;
  grid-template-columns: 1.25fr auto;
  gap: 32px;
  align-items: end;
}

/* [홈 CTA] 역할: PC에서 제목은 '전시하고,' 다음 줄, 설명은 '활동할 수 있습니다.'만 다음 줄. 버튼 열은 그대로 — 작성/수정일: 2026-09-25 */
.an-home-cta__body h2 {
  max-width: 540px;
  margin: 18px 0;
  font-size: var(--fs-h1);
  line-height: 1.3;
  letter-spacing: -0.06em;
  word-break: keep-all;
  color: inherit;
}

.an-home-cta__body p {
  max-width: 540px;
  margin: 0;
  color: var(--white-color, #f3eee5);
  opacity: 0.6;
  line-height: 1.8;
}

.an-home-cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.an-home-cta .an-home-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 2px;
  /* [홈 CTA] 역할: 버튼 글자를 캡션보다 한 단계 키움 — 작성/수정일: 2026-09-25 */
  font-size: var(--fs-body-s, 15px);
  font-weight: 600;
}

/* [홈 CTA] 역할: 회원 무료 시작은 button이라 링크 버튼과 같은 모양을 맞춘다 — 작성/수정일: 2026-09-25 */
.an-home-cta button.an-home-cta__btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.an-home-cta a.an-home-cta__btn--light,
.an-home-cta button.an-home-cta__btn--light {
  background: var(--ex-btn);
  color: var(--ink, #171714);
}

.an-home-cta a.an-home-cta__btn--ghost {
  border: 1px solid rgba(243, 238, 229, 0.55);
  color: var(--on-dark);
  background: transparent;
}

@media (max-width: 991.98px) {
  .an-hub-house {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .an-hub-house__media {
    min-height: 280px;
    height: 42vw;
    max-height: 380px;
  }

  .an-hub-house__brand strong {
    font-size: var(--fs-display, 64px);
  }

  .an-hub-house__copy {
    min-height: 0;
    padding: 40px var(--container-pad) 48px;
  }

  .an-hub-house__index li:nth-child(odd) {
    border-right: 0;
    padding-right: 16px;
  }

  .an-hub-house__index li:nth-child(even) {
    padding-left: 0;
  }
}

@media (max-width: 767.98px) {
  .an-home-cta__body {
    grid-template-columns: 1fr;
  }

  .an-home-cta__actions a {
    flex: 1;
  }
}

@media (max-width: 575.98px) {
  .an-hub-house__index {
    grid-template-columns: 1fr;
  }

  .an-hub-house__index li:nth-child(odd) {
    padding-right: 0;
  }
}
