/* ============================================================
   investments.css — Investments & Assets view
   ============================================================ */

.investments-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.investments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.investment-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.investment-card:hover { box-shadow: var(--shadow-md); }

.investment-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.investment-card__name {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.3;
}

.investment-card__type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.investment-card__type--mf     { background: var(--color-accent-light); color: var(--color-accent); }
.investment-card__type--stock  { background: var(--color-income-bg); color: var(--color-income); }
.investment-card__type--fd     { background: var(--color-borrow-bg); color: var(--color-borrow); }
.investment-card__type--cash   { background: var(--color-transfer-bg); color: var(--color-transfer); }
.investment-card__type--other  { background: var(--color-surface-2); color: var(--color-text-secondary); }

.investment-card__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.investment-card__value-item { display: flex; flex-direction: column; gap: 2px; }
.investment-card__value-label { font-size: 10px; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; }
.investment-card__value { font-size: var(--text-md); font-weight: 700; }

/* Gain/Loss indicator */
.gain-loss {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.gain-loss--positive { background: var(--color-income-bg); color: var(--color-income); }
.gain-loss--negative { background: var(--color-expense-bg); color: var(--color-expense); }
.gain-loss--neutral  { background: var(--color-surface-2); color: var(--color-text-muted); }

/* Value update row */
.investment-card__footer {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
