/* =========================================================
   올해 기운 · 오늘 기운  (/{lang}/birth_number/year · /today)
   home.css · time.css · birth-number.css 위에 얹습니다.
   ========================================================= */

/* ---------- 큰 카드 한 장 ---------- */
.bf-card {
  width: min(100%, 640px);
  margin: 16px auto 0;
  padding: 18px 20px 14px;
}
.bf-card-year { background: linear-gradient(150deg, rgba(201,161,74,.18), rgba(232,151,79,.05)), var(--surface); }
.bf-card-day  { background: linear-gradient(150deg, rgba(240,178,80,.20), rgba(90,200,189,.06)), var(--surface); }
.bf-card-year .bn-kicker i { color: #c9a14a; }
.bf-card-day  .bn-kicker i { color: #e8974f; }
.bf-card-year .bn-number { color: #b8902f; }
.bf-card-day  .bn-number { color: #d8863f; }
html[data-theme="dark"] .bf-card-year .bn-number { color: #e6c477; }
html[data-theme="dark"] .bf-card-day  .bn-number { color: #f0b070; }

.bf-body { gap: 18px; }
.bf-frame { width: 132px; }
.bf-card .bn-number { font-size: 40px; }
.bf-card .bn-name { font-size: 19px; }
.bf-card .bn-meaning { font-size: 14px; line-height: 1.75; }

.bf-label { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }

.bf-kw {
  align-self: flex-start;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(201,161,74,.16);
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}
.bf-kw small { font-size: 10.5px; font-weight: 800; color: var(--muted); }

/* 이렇게 보내 보세요 · 오늘 해 볼 일 */
.bf-tip,
.bf-todo {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px dashed rgba(201,161,74,.55);
}
.bf-tip { flex-direction: column; gap: 4px; }
.bf-tip b,
.bf-todo b { display: block; font-size: 13px; font-weight: 900; }
.bf-tip p { margin: 0; font-size: 13.5px; line-height: 1.7; word-break: keep-all; }

.bf-todo { align-items: flex-start; cursor: pointer; }
.bf-todo input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); cursor: pointer; }
.bf-todo > span { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.6; word-break: keep-all; }
.bf-todo.is-done { border-style: solid; border-color: var(--primary); background: rgba(82,183,136,.10); }
.bf-todo.is-done [data-todo] { text-decoration: line-through; color: var(--muted); }
.bf-todo.is-readonly { cursor: default; }

.bf-streak,
.bf-nextday { margin: 10px 0 0; text-align: center; font-size: 12.5px; font-weight: 800; }
.bf-streak { color: #d8863f; }
.bf-nextday { margin-top: 6px; color: var(--muted); font-weight: 700; }

/* ---------- 기억한 생일 줄 ---------- */
.bf-saved {
  width: min(100%, 640px);
  margin: 4px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  color: var(--muted);
}
.bf-saved b { color: var(--text); font-weight: 900; }
.bf-change {
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(82,183,136,.14);
  color: var(--primary-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.bf-remember { margin: 6px 0 0; text-align: center; font-size: 11.5px; color: var(--muted); word-break: keep-all; }

.bf-past {
  width: min(100%, 640px);
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(111,143,214,.12);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.bf-past a { color: var(--primary-ink); font-weight: 900; text-decoration: none; white-space: nowrap; }

/* ---------- 앞뒤 해 흐름 ---------- */
.bf-flow { width: min(100%, 640px); margin: 22px auto 0; }
.bf-h { margin: 0; font-size: 16px; font-weight: 900; text-align: center; }
.bf-lead { margin: 4px 0 12px; font-size: 12px; color: var(--muted); text-align: center; word-break: keep-all; }
.bf-flow-row { display: flex; align-items: stretch; gap: 6px; }
.bf-flow-arrow { align-self: center; font-weight: 900; color: var(--muted); }
.bf-flow-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: transform .15s ease;
}
.bf-flow-card:hover { transform: translateY(-2px); }
.bf-flow-card.is-current { border-color: #c9a14a; }
.bf-flow-year { font-size: 12px; font-weight: 900; color: var(--muted); }
.bf-flow-card.is-current .bf-flow-year { color: #b8902f; }
.bf-flow-card img { width: 58px; height: auto; border-radius: 6px; box-shadow: 0 5px 12px rgba(20,31,25,.16); }
.bf-flow-card b { font-size: 12.5px; font-weight: 900; line-height: 1.35; word-break: keep-all; }
.bf-flow-card small { font-size: 11px; line-height: 1.4; color: var(--muted); word-break: keep-all; }

/* ---------- 다음으로 ---------- */
.bf-next {
  width: min(100%, 640px);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.bf-next-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  text-decoration: none;
}
.bf-next-link > span {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(111,143,214,.14);
  color: #5f80cc;
  font-size: 15px;
  font-weight: 900;
}
.bf-next-link.is-today > span,
.bf-next-link.is-year > span { background: rgba(201,161,74,.16); }
.bf-next-link b { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 900; line-height: 1.35; word-break: keep-all; }
.bf-next-link em { font-style: normal; font-weight: 900; color: var(--primary-ink); }

.bf-main .birth-links { width: min(100%, 640px); margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  .bf-card { padding: 16px 14px 12px; }
  .bf-body { gap: 14px; }
  .bf-frame { width: 104px; }
  .bf-card .bn-number { font-size: 34px; }
  .bf-card .bn-name { font-size: 17px; }
  .bf-flow-row { gap: 4px; }
  .bf-flow-card { padding: 10px 5px; }
  .bf-flow-card img { width: 48px; }
  .bf-next { grid-template-columns: 1fr; }
}

/* hidden 속성이 display 규칙에 지지 않도록 */
.bf-main [hidden] { display: none !important; }

/* 링크 복사 버튼 하나 — 가운데 */
.bf-main .bn-share { display: flex; justify-content: center; }
.bf-main .bn-share .bn-share-button { min-width: 180px; }


/* ===== mobile-text v1 — 휴대폰에서 작은 글씨 키우기 (자동 생성: 14px 미만만, 원래 값 → 새 값) ===== */
@media (max-width: 640px) {
  .bf-label { font-size: 12.5px; } /* 11 */
  .bf-kw { font-size: 14px; } /* 13 */
  .bf-kw small { font-size: 12px; } /* 10.5 */
  .bf-tip b,
.bf-todo b { font-size: 14px; } /* 13 */
  .bf-tip p { font-size: 14px; } /* 13.5 */
  .bf-todo > span { font-size: 14px; } /* 13.5 */
  .bf-streak,
.bf-nextday { font-size: 13.5px; } /* 12.5 */
  .bf-saved { font-size: 14px; } /* 13 */
  .bf-change { font-size: 13px; } /* 12 */
  .bf-remember { font-size: 13px; } /* 11.5 */
  .bf-past { font-size: 14px; } /* 13 */
  .bf-lead { font-size: 13px; } /* 12 */
  .bf-flow-year { font-size: 13px; } /* 12 */
  .bf-flow-card b { font-size: 13.5px; } /* 12.5 */
  .bf-flow-card small { font-size: 12.5px; } /* 11 */
  .bf-next-link b { font-size: 14px; } /* 13.5 */
}
