/* Dashboard tab — Hero stats, map embed, widget grid */

.dashboard { padding: 20px; max-width: 1400px; margin: 0 auto; }

/* Hero stats row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.hero-stat {
  background: var(--surface);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  border-top: 3px solid var(--border);
  transition: border-color 0.3s;
}

.hero-stat:hover { border-color: var(--accent); }

.hero-stat__value {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat__label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-stat--contracts { border-top-color: var(--contracts); }
.hero-stat--contracts .hero-stat__value { color: var(--contracts); }
.hero-stat--parliament { border-top-color: var(--parliament); }
.hero-stat--parliament .hero-stat__value { color: var(--parliament); }
.hero-stat--spending { border-top-color: var(--spending); }
.hero-stat--spending .hero-stat__value { color: var(--spending); }
.hero-stat--votes { border-top-color: var(--red); }
.hero-stat--votes .hero-stat__value { color: var(--red); }

/* Map embed */
.map-embed {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Widget grid */
.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.widget-item {
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.widget-item__title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 12px;
}

.widget-item__meta {
  color: var(--text-dim);
  font-size: 0.75rem;
  white-space: nowrap;
}

.widget-item__amount {
  font-family: var(--font-data);
  font-weight: 600;
}

.view-all {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-all:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .widget-grid { grid-template-columns: 1fr; }
  .map-embed { height: 200px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .dashboard { padding: 12px; }
}
