/* ============================================================================
   Answers — Home dashboard
   "Your Aliyah progress at a glance" — matches the design. Static/sample
   data (no accounts/backend yet): the greeting reads a first name from
   localStorage if Welcome saved one, otherwise falls back to a generic
   greeting. Every actionable item deep-links into the chat or Topics.
   ========================================================================== */

/* Depends on design-tokens.css and answers-shell.css being <link>ed first (no @import:
   imported URLs can't carry the ?v= cache-busting version the HTML uses). */
/* ---- Header ---------------------------------------------------------- */
.home-header {
  flex-shrink: 0;
  padding: 22px 22px 18px;
  background: var(--ans-surface);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.home-header__greeting {
  font-size: 14px;
  color: var(--ans-slate);
  margin: 0 0 2px;
}
.home-header__name {
  font-family: var(--ans-font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--ans-navy-900);
  margin: 0;
}
/* ---- Body ------------------------------------------------------------- */
.home-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 18px 22px;
}

/* "Did you know" tips carousel — swipeable by touch, one tip per screen,
   with scroll-snap so a swipe always settles on a full tip. */
.home-tips {
  background: var(--ans-surface);
  border: 1px solid var(--ans-line);
  border-radius: 16px;
  padding: 14px 0 12px;
  margin-bottom: 20px;
}
.home-tips__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ans-blue-500);
  margin: 0 16px 5px;
}
.home-tips__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 9px;
}
.home-tips__track::-webkit-scrollbar { display: none; }
.home-tips__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  box-sizing: border-box;
  padding: 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ans-ink);
  margin: 0;
  min-height: 2.7em;
}
/* Clickable tips (an <a>, not a <p>) — same body text, plus a trailing
   chevron so the tappable ones are visually distinct from plain tips. */
.home-tips__slide--link {
  display: block;
  text-decoration: none;
  color: var(--ans-ink);
}
.home-tips__slide--link::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-start: 6px;
  border-top: 1.6px solid var(--ans-blue-500);
  border-right: 1.6px solid var(--ans-blue-500);
  transform: rotate(45deg) translateY(-1px);
  vertical-align: middle;
}
.home-tips__dots {
  display: flex;
  gap: 5px;
  margin: 0 16px;
}
.home-tips__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ans-line);
  cursor: pointer;
}
.home-tips__dot--active { background: var(--ans-blue-500); }

/* Progress card (an <a> to the Tasks screen — hence the link resets) */
.home-progress {
  background: var(--ans-grad-brand);
  border-radius: 22px;
  padding: 22px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 40, 85, 0.28);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.home-progress__ring {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}
.home-progress__ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--ans-font-display);
  font-size: 26px;
  line-height: 1;
}
.home-progress__ring-label span { font-size: 14px; color: #9fc0e2; }
.home-progress__eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ans-gold);
  font-weight: 600;
  margin: 0 0 5px;
}
.home-progress__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
}
.home-progress__sub {
  font-size: 13px;
  color: #a9c4e2;
  line-height: 1.4;
  margin: 0;
}

/* Section label */
.home-section {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ans-slate-400);
  text-transform: uppercase;
  margin: 8px 4px 10px;
}


/* Ask Answers card */
.home-ask {
  background: var(--ans-surface);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(7, 30, 60, 0.05), 0 8px 22px rgba(7, 30, 60, 0.05);
  margin-bottom: 20px;
}
.home-ask__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.home-ask__head-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ans-grad-avatar);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-ask__head-avatar svg { width: 19px; height: auto; }
.home-ask__head-label { font-size: 15px; font-weight: 600; color: var(--ans-navy-900); }
.home-ask__row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  background: #f1f4f8;
  border-radius: 13px;
  padding: 0 14px;
}
.home-ask__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--ans-font-body);
  font-size: 14.5px;
  color: var(--ans-navy-900);
  outline: none;
}
.home-ask__input::placeholder { color: #9aa7b8; }
.home-ask__send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ans-blue-500);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}
.home-ask__send:hover { background: var(--ans-blue-700); }

/* Quick topic chips */
.home-chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.home-chip {
  background: var(--ans-surface);
  border: 1px solid var(--ans-line);
  color: var(--ans-blue-500);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 11px;
  text-decoration: none;
}
.home-chip:hover { border-color: var(--ans-blue-500); background: #f6f9fd; }

/* Bottom tab bar — shared .answers-nav* classes live in answers-shell.css. */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
