/* ── HOME PAGE ── */

body {
  background-image: url('../img/bg-hero.webp');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

/* ── HERO ── */
.hero {
  display: flex; align-items: center; justify-content: center;
  height: 150px;
  position: relative;
}
.hero-logo {
  width: 80%; max-width: 420px; height: auto;
  filter: drop-shadow(0 0 60px rgba(251,191,36,0.5)) drop-shadow(0 0 120px rgba(251,191,36,0.2));
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ── FEATURE CARD (시안 정밀 재현) ── */
.card-feature {
  display: flex; align-items: center;
  position: relative;
  border-radius: 24px;
  padding: 16px 18px;
  margin-bottom: 20px;
  height: 130px;
  text-decoration: none; color: inherit;
  overflow: visible;
  transition: all 0.3s ease;

  background: rgba(15, 15, 35, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* 그라데이션 보더 */
  border: 1.5px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 8px 40px rgba(139,92,246,0.2),
    0 2px 10px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -2px 20px rgba(139,92,246,0.06);
}

/* 보더 오버레이 (gradient border 시뮬레이션) */
.card-feature::before {
  content: '';
  position: absolute; inset: -1.5px;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(251,191,36,0.3), rgba(139,92,246,0.2));
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1.5px;
}

/* 카드 하단 보라 글로우 */
.card-feature::after {
  content: '';
  position: absolute; bottom: -20px; left: 10%; right: 10%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.15), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.card-feature:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 56px rgba(139,92,246,0.3),
    0 4px 20px rgba(251,191,36,0.08),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* 텍스트 */
.card-feature-body {
  flex: 1; position: relative; z-index: 2;
}
.card-feature-body h3 {
  font-size: 24px; font-weight: 700; margin-bottom: 1px;
  color: var(--white);
  text-shadow: 0 0 24px rgba(251,191,36,0.3), 0 0 48px rgba(251,191,36,0.1);
  letter-spacing: -0.5px;
}
.card-feature-body p {
  font-size: 12px; color: var(--text-muted); line-height: 1.4;
  margin-bottom: 6px;
}

/* ── 일러스트 (카드 밖으로 삐져나옴 + 기울어진 카드) ── */
.card-feature-illust {
  flex-shrink: 0;
  position: relative; z-index: 2;
  width: 160px; height: 160px;
  margin-top: -15px; /* 카드(130px)보다 큰 일러스트(160px)가 위아래로 자연스럽게 삐져나감 */
  margin-bottom: -15px;
  margin-right: -18px;
  margin-left: -1px;
  display: flex; align-items: center; justify-content: center;
}
.card-feature-illust img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transform: rotate(6deg);
  border: 1.5px solid transparent;
  background-clip: padding-box;
  outline: 1.5px solid rgba(139,92,246,0.3);
  outline-offset: -1.5px;
  box-shadow:
    0 8px 28px rgba(139,92,246,0.3),
    0 0 40px rgba(139,92,246,0.1),
    inset 0 0 0 1.5px rgba(251,191,36,0.2);
  transition: transform 0.3s ease;
}

/* 일러스트 뒤에 보케 광채 */
.card-feature-illust::before {
  content: '';
  position: absolute;
  top: -15%; left: -15%; right: -15%; bottom: -15%;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 65%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(12px);
}

/* 두 번째 카드 (오늘의 운세) 다른 색감 */
.card-feature:nth-child(2) .card-feature-illust::before {
  background: radial-gradient(circle, rgba(251,191,36,0.15), rgba(139,92,246,0.1) 40%, transparent 70%);
}

/* 세 번째 카드 (궁합) */
.card-feature:nth-child(3) .card-feature-illust::before {
  background: radial-gradient(circle, rgba(139,92,246,0.2), rgba(251,191,36,0.1) 40%, transparent 70%);
}

.card-feature:hover .card-feature-illust img {
  transform: rotate(7deg) scale(1.05);
}

/* 빛나는 입자 점 (CSS로 시뮬레이션) */
.card-feature-illust::after {
  content: '✦';
  position: absolute; top: -10px; right: 10px;
  font-size: 12px; color: rgba(251,191,36,0.6);
  animation: twinkle 2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* 카드 일러스트 반짝임 */
.card-feature-illust::after {
  content: '✦';
  position: absolute; top: 8px; right: 16px;
  font-size: 10px; color: rgba(251,191,36,0.5);
  animation: twinkle 2.5s ease-in-out infinite;
}

/* ── MENU LIST ── */
.menu-list { display: flex; flex-direction: column; gap: 10px; }
.menu-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(26,26,46,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139,92,246,0.1);
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration: none; color: inherit;
  transition: all 0.2s;
}
.menu-item:hover {
  border-color: rgba(139,92,246,0.25);
  background: rgba(26,26,46,0.75);
  transform: translateX(4px);
}
.menu-thumb {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: 14px; object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.menu-info { flex: 1; }
.menu-info h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 3px;
  color: var(--white);
  display: flex; align-items: center; gap: 6px;
}
.menu-info p { font-size: 13px; color: var(--text-muted); }

/* ── MOBILE ── */
@media (max-width: 420px) {
  .card-feature-illust { width: 130px; height: 130px; }
  .card-feature-body h3 { font-size: 26px; }
  .card-feature-body p { font-size: 13px; }
  .card-feature { padding: 28px 18px; }
  .hero-logo { width: 85%; }
}
