/* ============================================
   LINUS — Dashboard Cards (Pastel Light Mode)
   ============================================ */

/* ---- Feed Container ---- */
.home-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: 0 var(--space-xl);
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 24px);
}

/* ---- Base Card ---- */
.dash-card {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.dash-card:active {
  transform: scale(0.985);
}

.dash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.dash-card__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.dash-card__title-icon {
  font-size: 1.1em;
  margin-right: 2px;
}

.dash-card__badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-text-secondary);
}

.dash-card__empty {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-sm) 0;
}

/* ---- Wake Word Indicator ---- */
.wake-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  margin: 0 var(--space-xl) var(--space-md);
  border-radius: var(--radius-full);
  background: var(--accent-lavender-bg);
  font-size: var(--text-xs);
  color: var(--accent-lavender);
  font-weight: var(--weight-medium);
  transition: opacity var(--transition-normal);
}

.wake-indicator__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lavender);
  animation: wake-pulse 2s ease-in-out infinite;
}

@keyframes wake-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ---- Briefing Card ---- */
.dash-card--briefing {
  background: var(--bg-briefing);
  border: 1px solid rgba(139, 126, 200, 0.1);
}

.dash-card--briefing .briefing-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  white-space: pre-line;
}

.briefing-section {
  margin-bottom: var(--space-md);
}

.briefing-section:last-child {
  margin-bottom: 0;
}

.briefing-section__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--accent-lavender);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

/* ---- Wallet Card ---- */
.dash-card--wallet {
  background: var(--bg-wallet);
  border: 1px solid rgba(91, 173, 138, 0.1);
}

.wallet-total {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.wallet-total__amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--accent-mint);
}

.wallet-total__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.wallet-sources {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.wallet-source {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet-source__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wallet-source__bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.wallet-source__bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.wallet-source__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.wallet-source__value {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

/* ---- Shopping List Card ---- */
.dash-card--shopping {
  background: var(--bg-shopping);
  border: 1px solid rgba(232, 149, 106, 0.1);
}

.shopping-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.shopping-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
}

.shopping-item__check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--accent-peach-light);
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.shopping-item__check:hover {
  border-color: var(--accent-peach);
  background: var(--accent-peach-bg);
}

.shopping-item__check.checked {
  background: var(--accent-peach);
  border-color: var(--accent-peach);
}

.shopping-item__check.checked::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.shopping-item__text {
  font-size: var(--text-sm);
  color: var(--color-text);
  flex: 1;
}

.shopping-item__text.checked {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.shopping-item__qty {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---- Contacts Card ---- */
.dash-card--contacts {
  background: var(--bg-contacts);
  border: 1px solid rgba(91, 155, 213, 0.1);
}

.contacts-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-xs);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.contact-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-sky-light);
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

/* ---- Notes Card ---- */
.dash-card--notes {
  background: var(--bg-notes);
  border: 1px solid rgba(212, 168, 67, 0.1);
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.note-item {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-normal);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(212, 168, 67, 0.08);
}

.note-item:last-child {
  border-bottom: none;
}

.note-item__key {
  font-weight: var(--weight-semibold);
  color: var(--accent-yellow);
}

/* ---- Weather Mini ---- */
.dash-card--weather {
  background: var(--bg-weather);
  border: 1px solid rgba(91, 155, 213, 0.1);
}

.weather-now {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.weather-now__temp {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--accent-sky);
}

.weather-now__details {
  flex: 1;
}

.weather-now__desc {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.weather-now__extra {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ---- Email Card ---- */
.dash-card--email {
  background: var(--bg-email);
  border: 1px solid rgba(212, 123, 138, 0.1);
}

.email-summary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.email-count {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--accent-rose);
  background: rgba(255, 255, 255, 0.5);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-info {
  flex: 1;
}

.email-info__label {
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.email-info__detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ---- Tasks Today Card ---- */
.dash-card--tasks {
  background: var(--bg-tasks-card);
  border: 1px solid rgba(139, 126, 200, 0.1);
}

.tasks-today-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.task-today-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
}

.task-today-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.task-today-item__dot--magnolia { background: var(--color-magnolia); }
.task-today-item__dot--casa { background: var(--color-casa); }
.task-today-item__dot--doyou { background: var(--color-doyou); }

.task-today-item__text {
  font-size: var(--text-sm);
  color: var(--color-text);
  flex: 1;
}

.task-today-item__due {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.task-today-item__overdue {
  color: var(--color-danger);
  font-weight: var(--weight-medium);
}
