/* ==========================================================================
   F2. 홈화면
   ========================================================================== */

body[data-page="home"] {
  background: var(--cloud-50);
}

/* 인사말이 현수막(배너) 안에 들어가도록, 배너+비행기 그래픽을 배경으로 깔고
   그 위에 텍스트를 얹는다. 이미지는 배너(좌)+비행기(우)가 한 장으로 합쳐진 것.
   배너 그림 자체가 양끝은 뾰족하고 가운데만 넓은 모양이라, 텍스트는 배너의
   넓은 안쪽 영역과 겹치도록 57px만큼 오른쪽으로 밀어 아래 '지망하는 학교'
   카드 제목과 좌측 정렬을 맞춘다. */
body[data-page="home"] .home-hero {
  padding-left: 57px;
  background: url('../../assets/hero-banner-plane.png') left bottom / auto 148px no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body[data-page="home"] #greeting {
  position: relative;
  top: 10px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 336px;
  gap: var(--space-6);
  padding-top: var(--space-6);
  padding-bottom: var(--space-9);
  align-items: start;
}

.home-main { display: flex; flex-direction: column; gap: var(--space-5); }
.home-aside { display: flex; flex-direction: column; gap: var(--space-5); position: sticky; top: calc(var(--header-h) + var(--space-5)); }

/* .card-pad 기본 정의는 components.css로 이동(여러 페이지 공유) */
.card-pad--sm { padding: var(--space-4); }

/* 할일 진행률 링 스타일은 components.css로 이동(홈+교환 준비하기 공유) */

/* ---- 지망 학교 슬롯 ---- */
.wishlist-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.wishlist-slot {
  border: 1.5px dashed var(--line-200);
  border-radius: var(--radius-md);
  background: var(--cloud-0);
  padding: var(--space-4);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wishlist-slot.is-filled {
  border-style: solid;
  border-color: var(--line-200);
  background: var(--cloud-0);
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.wishlist-slot.is-filled:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.wishlist-slot__rank { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--amber-700); font-weight: 700; letter-spacing: 0.06em; }
.wishlist-slot__empty { text-align: center; color: var(--ink-400); font-size: var(--fs-small); }
.wishlist-slot__empty a { color: var(--sky-500); font-weight: 600; }
.wishlist-slot__name { font-weight: 700; margin: var(--space-2) 0 2px; }
.wishlist-slot__meta { font-size: var(--fs-small); color: var(--ink-600); margin-bottom: var(--space-2); }

/* ---- CTA banner ---- */
.search-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--sky-700), var(--sky-500));
  color: #fff;
  overflow: hidden;
  position: relative;
}
.search-cta::after {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-500), transparent 70%);
  opacity: 0.5;
}
.search-cta h2 { font-family: var(--font-display); font-size: var(--fs-h1); margin-bottom: 6px; }
.search-cta p { color: var(--sky-100); font-size: var(--fs-small); }

/* ---- 여정 단계 ---- */
/* 카드 껍데기와 "Your Step !" 제목을 걷어냈다 — 단계 이름과 선만 남는다. */
.journey-bar { padding: var(--space-2) var(--space-1) var(--space-3); }

/* 인사말은 화면 한가운데. 내 크레딧·요금제 (누르면 결제창)는 앱바 오른쪽 칸으로
   올렸다(home.js 가 옮긴다) — 프로필 아이콘·화면 이름과 같은 높이. 상자 없이 글자만.
   앱바 오른쪽 칸은 제목을 가운데 두려고 폭이 34px 로 묶여 있다. 지갑은 줄어들지
   않고 칸 왼쪽으로 넘쳐 나오게 둔다 — min-width 를 풀지 않으면 칸이 지갑만큼
   늘어나 제목이 왼쪽으로 밀린다. */
.home-hero__row { margin: var(--space-2) 0 var(--space-1); }
.home-hero__row #greeting { margin: 0; text-align: center; }
