/* BASIC css start */
/* ============================================
   인터타로 - 난이도별 타로카드 가이드
   style.css
   ============================================ */

/* ============ 폰트 (인터타로 공통 CSS와 동일) ============ */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css?family=Noto+Sans');

/* ============ 기본 리셋 & 변수 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fdfaf4;
  --cream: #f6efe2;
  --cream-deep: #ebe1cb;
  --ink: #2d2418;
  --ink-soft: #5d5142;
  --muted: #8a7e6e;
  --line: #e8dfcf;
  --accent: #6b4e9c;
  --accent-soft: #ede5f7;
  --gold: #b8924f;

  /* 인터타로 공통 폰트스택과 동일 */
  --font-stack: 'Pretendard', 'Noto Sans', 'Nanum Gothic', "나눔 고딕",
                Dotum, AppleGothic, monospace, Corbel, Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; font-family: var(--font-stack); }
button { font-family: var(--font-stack); cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, span, small,
input, select, textarea {
  font-family: var(--font-stack);
}

.page-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

/* ============================================
   ✨ 등장 애니메이션 (스크롤 기반)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 히어로 내부 요소 페이드업 (페이지 로딩 직후) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.35s; }
.fade-up.delay-3 { animation-delay: 0.55s; }
.fade-up.delay-4 { animation-delay: 1.2s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   1. 히어로 (풀스크린)
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 100px;
  background:
    radial-gradient(ellipse at 30% 20%, #f3eada 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, #f0e4f5 0%, transparent 55%),
    var(--bg);
  margin: 0 -16px;
  position: relative;
}
.hero-inner {
  max-width: 600px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 3px;
  font-weight: 600;
  padding: 6px 16px;
  background: var(--accent-soft);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.4;
  margin-bottom: 22px;
  color: var(--ink);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.95;
  max-width: 520px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(107, 78, 156, 0.25);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(107, 78, 156, 0.35);
}
.hero-cta .arrow { transition: transform 0.2s; }
.hero-cta:hover .arrow { transform: translateY(3px); }

/* 스크롤 유도 인디케이터 */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  width: 100%;
  margin: 100px auto 0;
  animation: fadeUp 0.9s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}
.scroll-hint-text {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 500;
  text-align: center;
}
.scroll-hint-arrow {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  position: relative;
  animation: scrollPulse 2s ease-in-out infinite;
  animation-delay: 1.5s;
  margin: 0 auto;
}
.scroll-hint-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 1; }
}
/* ============================================
   2. 3단계 가이드
   ============================================ */
.how-section {
  margin: 100px 0 80px;
}
.how-title {
  text-align: center;
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-weight: 500;
}
.how-title strong { color: var(--ink); font-weight: 700; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.how-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.how-step:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(107, 78, 156, 0.1);
}
.how-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.how-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.how-step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================
   3. "타로가 처음이세요?" 추천 박스
   ============================================ */
.quick-pick {
  background: linear-gradient(135deg, #fff7e8 0%, #fef0f5 100%);
  border: 1px solid #f0e0c8;
  border-radius: 16px;
  padding: 28px 26px;
  margin-bottom: 100px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.quick-pick .icon {
  font-size: 38px;
  flex-shrink: 0;
}
.quick-pick .text { flex: 1; }
.quick-pick h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.quick-pick p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}
.quick-pick a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.2s;
}
.quick-pick a:hover { gap: 10px; }

/* ============================================
   4. 섹션 인트로
   ============================================ */
.section-intro {
  text-align: center;
  margin-bottom: 50px;
}
.section-intro .small-tag {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 12px;
}
.section-intro h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.section-intro p {
  font-size: 14px;
  color: var(--muted);
}

/* ============================================
   5. 난이도 섹션 & 배너
   ============================================ */
.level-section {
  margin-bottom: 70px;
  scroll-margin-top: 20px;
}
.level-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 14px;
  margin-bottom: 26px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.level-banner::after {
  content: '';
  position: absolute;
  right: -20px;
  top: -20px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.level-emoji {
  font-size: 38px;
  line-height: 1;
  flex-shrink: 0;
  z-index: 1;
}
.level-banner-text { flex: 1; z-index: 1; }
.level-banner h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #fff;
}
.level-stars {
  font-size: 13px;
  opacity: 0.85;
  letter-spacing: 1px;
}
.level-banner p {
  font-size: 13.5px;
  opacity: 0.92;
  line-height: 1.5;
}
.level-recommend {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
  backdrop-filter: blur(4px);
}

.s-lv1 .level-banner { background: linear-gradient(135deg, #88b89e 0%, #5a9476 100%); }
.s-lv2 .level-banner { background: linear-gradient(135deg, #d9a978 0%, #b08055 100%); }
.s-lv3 .level-banner { background: linear-gradient(135deg, #9783b8 0%, #6b4e9c 100%); }
.s-lv4 .level-banner { background: linear-gradient(135deg, #4a3d5a 0%, #2c2440 100%); }

/* ============================================
   6. 슬라이더
   ============================================ */
.slider {
  position: relative;
  overflow: hidden;
  padding: 0 4px;
}
.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.slide {
  flex: 0 0 50%;
  padding: 6px 8px;
}

/* ============================================
   7. 상품 카드 (전체가 하나의 링크)
   ============================================ */
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.1);
  transform: translateY(-3px);
}
.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
  display: block;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.05);
}
.product-body {
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 4px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-name-en {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  min-height: 18px;
}
.product-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}
.product-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
/* ============================================
   8. 슬라이더 화살표 & 점
   ============================================ */
.slider-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 12px rgba(60, 40, 20, 0.1);
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
}
.slider-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.slider-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.slider-btn.prev { left: -10px; }
.slider-btn.next { right: -10px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-deep);
  border: none;
  padding: 0;
  transition: all 0.25s;
}
.dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

.see-all {
  text-align: right;
  margin-top: 16px;
}
.see-all a {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.see-all a:hover { gap: 8px; }


/* ============================================
   8. 오라클 & 레노먼드 섹션
   ============================================ */
.extra-section {
  margin-bottom: 80px;
}
.extra-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px 28px;
  border-radius: 14px;
  margin-bottom: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #5e4b8a 0%, #8b6dad 50%, #a87ca8 100%);
}
.extra-banner::before {
  content: '';
  position: absolute;
  left: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.extra-banner::after {
  content: '';
  position: absolute;
  right: -25px;
  top: -25px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.extra-emoji {
  font-size: 44px;
  line-height: 1;
  flex-shrink: 0;
  z-index: 1;
}
.extra-banner-text {
  flex: 1;
  z-index: 1;
}
.extra-banner h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: #fff;
}
.extra-banner p {
  font-size: 13.5px;
  opacity: 0.95;
  line-height: 1.65;
  margin-bottom: 14px;
}
.extra-banner p strong {
  color: #fff;
  font-weight: 700;
}
.extra-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.extra-tag {
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  backdrop-filter: blur(4px);
}

/* 카테고리 태그 (카드 안) */
.product-cat {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product-cat.cat-oracle {
  background: #ede5f7;
  color: #6b4e9c;
}
.product-cat.cat-lenormand {
  background: #e8f0e6;
  color: #4d7a52;
}

/* 두 개의 전체보기 링크 가로 배치 */
.extra-see-all {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.extra-see-all a {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.extra-see-all a:hover { gap: 8px; }

/* 모바일 반응형 (600px 이하) */
@media (max-width: 600px) {
  .extra-banner {
    padding: 22px 18px;
    gap: 14px;
  }
  .extra-banner h2 { font-size: 19px; }
  .extra-emoji { font-size: 34px; }
  .extra-banner p { font-size: 12.5px; }
  .extra-tag { font-size: 11px; padding: 4px 11px; }

  .extra-see-all {
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
  }
}






/* ============================================
   9. 하단 도움말 박스
   ============================================ */
.help-box {
  background: var(--cream);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  margin-top: 40px;
}
.help-box .help-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.help-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.help-box p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 22px;
}
.help-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s;
}
.help-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.help-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.help-btn.primary:hover { background: #573e80; }

/* ============================================
   10. 모바일 반응형 (600px 이하)
   ============================================ */
@media (max-width: 600px) {
  .hero { padding: 50px 20px 90px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 14px; }

  .how-section { margin: 70px 0 60px; }
  .how-steps { grid-template-columns: 1fr; gap: 10px; }

  .quick-pick {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
    margin-bottom: 70px;
  }

  .level-banner { padding: 20px 18px; gap: 14px; }
  .level-banner h2 { font-size: 19px; }
  .level-emoji { font-size: 32px; }

  .section-intro h2 { font-size: 22px; }

  .slide { flex: 0 0 85%; }

  .slider-btn { width: 34px; height: 34px; }
  .slider-btn.prev { left: 0; }
  .slider-btn.next { right: 0; }

  .scroll-hint { bottom: 24px; }
}
/* BASIC css end */

