/* ==========================================================================
   Life HQ — Home Dashboard
   ========================================================================== */

/* ---- Hero / Greeting ---- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl);
  background:
    radial-gradient(520px 320px at 88% -8%, rgba(255, 233, 154, 0.55), transparent 70%),
    radial-gradient(480px 300px at 100% 100%, rgba(186, 213, 172, 0.45), transparent 65%),
    linear-gradient(135deg, var(--periwinkle-100) 0%, var(--white-soft) 55%, var(--sage-100) 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.7);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-blob {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}
.hero-blob svg { width: 100%; height: 100%; }

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--sage-600);
  background: rgba(255,255,255,0.6);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

.hero-greeting {
  font-size: var(--fs-display-xl);
  letter-spacing: -0.01em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  color: var(--ink-light);
  font-size: 0.95rem;
}
.hero-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-meta svg { width: 17px; height: 17px; color: var(--periwinkle-500); }
.hero-meta .clock-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-strong);
}

.hero-quote {
  margin-top: var(--space-lg);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-strong);
  max-width: 46ch;
  line-height: var(--lh-loose);
  position: relative;
  padding-left: var(--space-md);
  border-left: 3px solid var(--yellow-400);
}

.hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.weather-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.weather-card .weather-icon { width: 56px; height: 56px; margin: 0 auto var(--space-2xs); color: var(--yellow-500); }
.weather-card .weather-temp { font-family: var(--font-display); font-size: 2.2rem; color: var(--ink-strong); }
.weather-card .weather-desc { color: var(--ink-light); font-size: var(--fs-small); }
.weather-card .weather-place { color: var(--ink-faint); font-size: var(--fs-tiny); margin-top: 4px; }
.weather-card .weather-place a { color: var(--periwinkle-600); font-weight: 600; }

/* ---- Today's Focus ---- */
.focus-card .checklist { margin-top: 4px; }
.focus-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}
.focus-progress .bar {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--periwinkle-100);
  overflow: hidden;
}
.focus-progress .bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sage-400), var(--sage-500));
  transition: width var(--dur-slow) var(--ease-soft);
}
.focus-progress span { font-size: var(--fs-tiny); color: var(--ink-faint); white-space: nowrap; }

/* ---- Schedule ---- */
.timeline {
  display: flex;
  flex-direction: column;
}
.timeline-item {
  display: grid;
  grid-template-columns: 64px 24px 1fr;
  gap: var(--space-xs);
}
.timeline-item .t-time {
  font-size: var(--fs-tiny);
  font-weight: 600;
  color: var(--ink-faint);
  padding-top: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.timeline-item .t-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-item .t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--periwinkle-400);
  margin-top: 10px;
  flex: none;
}
.timeline-item .t-line {
  width: 2px;
  flex: 1;
  background: var(--periwinkle-100);
  margin: 2px 0;
}
.timeline-item:last-child .t-line { display: none; }
.timeline-item .t-body {
  padding: 8px 0 var(--space-md);
}
.timeline-item .t-title { font-weight: 600; color: var(--ink-strong); font-size: 0.95rem; }
.timeline-item .t-note { color: var(--ink-light); font-size: var(--fs-small); margin-top: 2px; }
.timeline-item.is-now .t-dot { background: var(--yellow-400); border-color: var(--yellow-500); box-shadow: 0 0 0 5px var(--yellow-100); }
.timeline-item.is-now .t-title { color: var(--periwinkle-700); }

/* ---- Tasks ---- */
.tasks-card .section-head { margin-bottom: 4px; }
.tasks-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.task-column h4 {
  font-size: var(--fs-small);
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink-light);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-2xs);
  display: flex;
  align-items: center;
  gap: 6px;
}
.task-column h4 .dot { width: 7px; height: 7px; border-radius: 50%; }
.task-column.today h4 .dot { background: var(--periwinkle-500); }
.task-column.upcoming h4 .dot { background: var(--sage-500); }
.task-column.overdue h4 .dot { background: var(--color-danger); }

/* ---- Money Snapshot ---- */
.money-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-md);
}
.money-card .money-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.money-card .money-icon svg { width: 19px; height: 19px; }
.money-card.checking .money-icon { background: var(--periwinkle-100); color: var(--periwinkle-600); }
.money-card.budget .money-icon { background: var(--sage-100); color: var(--sage-600); }
.money-card.bills .money-icon { background: #FBE9E4; color: #C06A4D; }
.money-card.savings .money-icon { background: var(--yellow-100); color: #A67D14; }
.money-card .money-label { font-size: var(--fs-small); color: var(--ink-light); font-weight: 500; }
.money-card .money-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink-strong);
  border: none;
  background: transparent;
  width: 100%;
  padding: 0;
}
.money-card .money-value:focus { outline: none; color: var(--periwinkle-700); }
.money-card .money-sub { font-size: var(--fs-tiny); color: var(--ink-faint); }

/* ---- Brain Dump ---- */
.braindump-card {
  background:
    repeating-linear-gradient(var(--white-soft), var(--white-soft) 37px, var(--periwinkle-100) 38px);
  position: relative;
}
.braindump-textarea {
  width: 100%;
  min-height: 190px;
  border: none;
  background: transparent;
  resize: vertical;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 38px;
  color: var(--ink-strong);
  padding: 0;
}
.braindump-textarea::placeholder { color: var(--ink-faint); font-style: italic; }
.braindump-textarea:focus { outline: none; }
.braindump-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-tiny);
  color: var(--ink-faint);
  margin-top: var(--space-2xs);
}
.braindump-status svg { width: 13px; height: 13px; }
.braindump-status.is-saving { color: var(--sage-600); }

/* ---- Quick Launch ---- */
.quick-launch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
}
.launch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-md) var(--space-2xs);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.launch-btn:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-md); }
.launch-btn .launch-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.launch-btn .launch-icon svg { width: 22px; height: 22px; }
.launch-btn span { font-size: var(--fs-tiny); font-weight: 600; color: var(--ink-light); }
.launch-btn:nth-child(1) .launch-icon { background: var(--yellow-100); color: #A67D14; }
.launch-btn:nth-child(2) .launch-icon { background: var(--periwinkle-100); color: var(--periwinkle-600); }
.launch-btn:nth-child(3) .launch-icon { background: var(--sage-100); color: var(--sage-600); }
.launch-btn:nth-child(4) .launch-icon { background: #E1ECFB; color: #4C7CC4; }
.launch-btn:nth-child(5) .launch-icon { background: #FDECE0; color: #D68A4C; }
.launch-btn:nth-child(6) .launch-icon { background: var(--periwinkle-50); color: var(--ink-light); }

/* ---- Sticky Notes ---- */
.sticky-note {
  position: relative;
  padding: var(--space-sm) var(--space-sm) var(--space-md);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 2px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.sticky-note:hover { transform: translateY(-4px) rotate(0deg) !important; box-shadow: var(--shadow-md); z-index: 2; }
.sticky-note:nth-child(4n+1) { background: var(--yellow-100); rotate: -1.5deg; }
.sticky-note:nth-child(4n+2) { background: var(--periwinkle-100); rotate: 1deg; }
.sticky-note:nth-child(4n+3) { background: var(--sage-100); rotate: -0.75deg; }
.sticky-note:nth-child(4n+4) { background: #FBE9E4; rotate: 1.5deg; }
.sticky-note .pin {
  position: absolute;
  top: -8px; left: 50%;
  translate: -50% 0;
  width: 16px; height: 16px;
  color: var(--yellow-500);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}
.sticky-note textarea {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-strong);
  line-height: var(--lh-normal);
  resize: none;
}
.sticky-note textarea:focus { outline: none; }
.sticky-note .note-remove {
  align-self: flex-end;
  opacity: 0;
  border: none;
  background: rgba(255,255,255,0.6);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  transition: opacity var(--dur-fast);
}
.sticky-note .note-remove svg { width: 12px; height: 12px; }
.sticky-note:hover .note-remove { opacity: 1; }

.add-note-btn {
  min-height: 130px;
  border: 2px dashed var(--periwinkle-200);
  border-radius: var(--radius-md);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--periwinkle-400);
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast);
}
.add-note-btn:hover { border-color: var(--periwinkle-400); color: var(--periwinkle-600); background: var(--periwinkle-50); }
.add-note-btn svg { width: 24px; height: 24px; }
.add-note-btn span { font-size: var(--fs-tiny); font-weight: 600; }
