/* ════════════════════════════════════════
   HOME
════════════════════════════════════════ */

.hw-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 8px;
}

/* ── Hero greeting ────────────────────── */
.hw-hero {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  box-shadow: 0 4px 18px rgba(14,165,233,0.28);
}
.hw-greeting {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 5px;
}
.hw-greeting-sub {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.76);
}

/* ── Card shell ───────────────────────── */
.hw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.hw-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  padding: 11px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* ── Continue Learning ────────────────── */
.hw-continue-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}
.hw-continue-info { min-width: 0; flex: 1; }
.hw-continue-name {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-continue-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.hw-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.18s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(14,165,233,0.35);
}
.hw-btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.hw-btn:active { transform: none; box-shadow: none; }

/* ── Today's Focus ────────────────────── */
.hw-focus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s;
  gap: 10px;
}
.hw-focus-row:last-child { border-bottom: none; }
.hw-focus-row:hover { background: var(--bg); }

.hw-focus-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hw-focus-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.hw-icon-purple { background: #E0F2FE; }
.hw-icon-orange { background: #FFF7ED; }

.hw-focus-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.hw-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hw-badge-purple { background: #E0F2FE; color: var(--purple); }
.hw-badge-orange { background: #FFF7ED; color: #EA580C; }

/* ── Progress Today ───────────────────── */
.hw-progress-body { padding: 14px 16px 16px; }
.hw-progress-nums {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.hw-progress-track {
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.hw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284C7, #38BDF8);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.hw-streak-row { display: flex; }
.hw-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFF7ED;
  color: #C2410C;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid #FED7AA;
}
