/* Bento Grid / Stat Card Styles */
.stat-card {
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-surface-dim);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card--wide {
  grid-column: span 2;
  min-height: 160px;
}

.stat-card__decorator {
  position: absolute;
  right: -1rem;
  top: -1rem;
  width: 96px;
  height: 96px;
  background-color: rgba(255, 107, 53, 0.05); /* primary-container/5 */
  border-radius: var(--radius-full);
  filter: blur(24px);
  z-index: 1;
  pointer-events: none;
}

.stat-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.stat-card__icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 107, 53, 0.1); /* primary-container/10 */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-container);
}

.stat-card__icon-wrapper .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.stat-card__badge {
  background-color: rgba(52, 199, 89, 0.1);
  color: var(--color-success);
  padding: 4px var(--spacing-sm);
  border-radius: var(--radius-full);
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-card__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
}

.stat-card__content {
  position: relative;
  z-index: 2;
}

.stat-card__value {
  font-family: var(--font-family-display);
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: var(--color-on-surface);
  margin-bottom: 2px;
}

.stat-card--wide .stat-card__value {
  font-size: 48px;
  line-height: 56px;
}

.stat-card__label {
  font-family: var(--font-family-body);
  font-size: 13px;
  color: var(--color-on-surface-variant);
  font-weight: 400;
}

/* Activity Feed Styles */
.activity-item {
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-surface-dim);
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  transition: transform 0.2s ease;
}

.activity-item:active {
  transform: scale(0.98);
}

.activity-item__icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.activity-item__content {
  flex: 1;
  min-width: 0;
}

.activity-item__title {
  font-family: var(--font-family-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-item__subtitle {
  font-family: var(--font-family-body);
  font-size: 13px;
  color: var(--color-on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.activity-item__time {
  font-family: var(--font-family-body);
  font-size: 11px;
  color: var(--color-on-surface-variant);
  white-space: nowrap;
}

/* Deal Card Styles */
.deal-card {
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-surface-dim);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deal-card:active {
  transform: scale(0.98);
}

.deal-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deal-card__id {
  font-family: var(--font-family-display);
  font-weight: 600;
  color: var(--color-on-background);
}

.deal-card__route {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.deal-card__route-point {
  font-family: var(--font-family-body);
  font-weight: 500;
  color: var(--color-on-surface);
}

.deal-card__arrow {
  color: var(--color-secondary);
  font-size: 18px;
}

.deal-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-surface-dim);
}

.deal-card__counterparty {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.deal-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.deal-card__name {
  font-family: var(--font-family-body);
  font-size: 13px;
  color: var(--color-on-surface-variant);
}

.deal-card__price {
  font-family: var(--font-family-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Shipment Card Styles */
.shipment-card {
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-surface-dim);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.shipment-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shipment-card__category {
  font-family: var(--font-family-display);
  font-weight: 600;
  color: var(--color-on-background);
}

.shipment-card__description {
  font-family: var(--font-family-body);
  font-size: 13px;
  color: var(--color-on-surface-variant);
}

.shipment-card__route {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  background-color: var(--color-surface-dim);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

.shipment-card__point {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

.shipment-card__point-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  margin-top: 6px;
  position: relative;
}

.shipment-card__point-dot--dest {
  background-color: var(--color-secondary);
}

.shipment-card__point-label {
  font-family: var(--font-family-body);
  font-size: 11px;
  color: var(--color-secondary);
}

.shipment-card__point-value {
  font-family: var(--font-family-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-on-surface);
}

.shipment-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shipment-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-family-body);
  font-size: 13px;
  color: var(--color-secondary);
}

.shipment-card__meta .material-symbols-outlined {
  font-size: 16px;
}

.shipment-card__price-offer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.shipment-card__price-label {
  font-family: var(--font-family-body);
  font-size: 11px;
  color: var(--color-secondary);
}

.shipment-card__price-value {
  font-family: var(--font-family-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
}

/* Trip Card Styles */
.trip-card {
  background-color: var(--color-surface-container-lowest);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-surface-dim);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.trip-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trip-card__traveler {
  display: flex;
  flex-direction: column;
}

.trip-card__name {
  font-family: var(--font-family-body);
  font-weight: 500;
  color: var(--color-on-surface);
}

.trip-card__rating {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--color-primary);
  font-size: 11px;
  font-family: var(--font-family-body);
  font-weight: 500;
}

.trip-card__rating .material-symbols-outlined {
  font-size: 14px;
}

.trip-card__transport-badge {
  background-color: var(--color-surface-dim);
  padding: 4px var(--spacing-sm);
  border-radius: var(--radius-md);
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-secondary);
}

.trip-card__route {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.trip-card__route-point {
  font-family: var(--font-family-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-on-surface);
}

.trip-card__arrow {
  color: var(--color-secondary);
  font-size: 20px;
}

.trip-card__details {
  display: flex;
  gap: var(--spacing-md);
  font-family: var(--font-family-body);
  font-size: 13px;
  color: var(--color-secondary);
}

.trip-card__detail-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trip-card__detail-item .material-symbols-outlined {
  font-size: 16px;
}
