/**
 * 메인(index) 히어로 섹션과 동일한 스타일.
 * marketplace.html 등에서 /demo/demo-main-hero.css 로 링크한다.
 */

#premiumHero.hero {
  transition: opacity 220ms ease, transform 220ms ease;
}

#premiumHero.hero.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.hero {
  border: 0;
  border-radius: 0;
  position: relative;
  min-height: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.58fr);
  gap: 22px;
  padding: 0;
  background: transparent;
  overflow: visible;
}

html[data-theme="dark"] .hero {
  background: transparent;
  border-color: transparent;
}

.hero-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 0;
}

.hero-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-heading {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.14;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: min(11.5em, 100%);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
  white-space: pre-line;
}

.hero-description {
  margin: 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: pre-line;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-primary {
  min-height: 46px;
  max-width: 100%;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  border: 0;
  background: var(--accent-strong);
  color: #fff8f1;
  cursor: pointer;
}

.hero-primary:hover,
.hero-primary:focus-visible {
  transform: translateY(-1px);
  outline: none;
  background: #5d3f27;
}

html[data-theme="dark"] .hero-primary {
  background: #3a4350;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .hero-primary:hover,
html[data-theme="dark"] .hero-primary:focus-visible {
  background: #465163;
  color: #ffffff;
}

.hero-secondary {
  min-height: 46px;
  max-width: 100%;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  border: 1px solid var(--accent-strong);
  background: transparent;
  color: var(--accent-strong);
  cursor: pointer;
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
  transform: translateY(-1px);
  outline: none;
  background: rgba(157, 117, 73, 0.08);
}

html[data-theme="dark"] .hero-secondary {
  border-color: #7a8696;
  color: #dfe6f1;
}

html[data-theme="dark"] .hero-secondary:hover,
html[data-theme="dark"] .hero-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.hero-slider-shell {
  position: relative;
  min-width: 0;
  min-height: clamp(258px, 23vw, 304px);
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: clamp(258px, 23vw, 304px);
  height: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.hero-slider.swiper {
  width: 100%;
  min-height: clamp(258px, 23vw, 304px);
  height: 100%;
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: clamp(258px, 23vw, 304px);
}

.hero-track.is-dragging {
  transition: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: clamp(258px, 23vw, 304px);
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 14, 0.02) 0%, rgba(10, 11, 14, 0.1) 38%, rgba(10, 11, 14, 0.52) 72%, rgba(10, 11, 14, 0.84) 100%),
    linear-gradient(110deg, rgba(10, 11, 14, 0.24) 4%, transparent 48%);
  pointer-events: none;
}

.hero-slide-crown {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f6cf63;
  pointer-events: none;
}

.hero-slide-crown svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-slide-panel {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  margin: 0;
  padding: 20px 20px 22px;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: grid;
  gap: 8px;
  z-index: 1;
  max-width: min(430px, 100%);
  box-sizing: border-box;
}

.hero-slide-company {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 248, 241, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hero-slide-kicker {
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--hero-accent, var(--accent));
  color: #fffefb;
  font-size: 11px;
  line-height: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-slide-title {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.22;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 4px 20px rgba(0, 0, 0, 0.42);
  max-width: min(12em, 100%);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero-slide-title-row {
  display: grid;
  gap: 4px;
  min-width: 0;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero {
    padding: 0;
  }

  .hero-heading {
    max-width: min(13em, 100%);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 0;
    padding: 0;
  }

  .hero-heading {
    font-size: 30px;
  }

  .hero-slider,
  .hero-slider.swiper,
  .hero-track,
  .hero-slide,
  .hero-slider-shell {
    min-height: 140px;
  }

  .hero-slide-panel {
    padding: 16px 14px 18px;
  }
}

/* serenade-unified.css: .hero h1, 전역 button 규칙보다 메인 히어로 유지 */
.hero h1.hero-heading,
.hero .hero-heading {
  font-size: clamp(34px, 4vw, 54px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.02em !important;
  font-weight: 500 !important;
  font-family: "Noto Serif KR", serif !important;
}

.hero .hero-description {
  color: var(--muted) !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  font-weight: 400 !important;
}

.hero .hero-primary {
  background: var(--accent-strong) !important;
  color: #fff8f1 !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  padding: 0 18px !important;
  min-height: 46px !important;
  border-radius: 999px !important;
  border: 0 !important;
}

.hero .hero-secondary {
  border: 1px solid var(--accent-strong) !important;
  background: transparent !important;
  color: var(--accent-strong) !important;
  text-shadow: none !important;
  font-weight: 700 !important;
  padding: 0 18px !important;
  min-height: 46px !important;
  border-radius: 999px !important;
}

html[data-theme="dark"] .hero .hero-primary {
  background: #3a4350 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .hero .hero-secondary {
  border-color: #7a8696 !important;
  color: #dfe6f1 !important;
}
