/* ==========================================================
   HUTFLOOR STUDIO - CLEAN BUFFER ANALYTICS
   Minimalist metric cards, clean line charts & heatmap
   ========================================================== */

.analytics-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metrics-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.clean-metric-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-number-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.metric-big-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-trend-pill {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
}

.trend-positive {
  background: #d1fae5;
  color: #065f46;
}

/* Chart Card */
.analytics-card-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.panel-header-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.panel-header-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Heatmap */
.buffer-heatmap-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
}

.buffer-heatmap-grid th {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 0.35rem;
}

.heat-box-cell {
  height: 32px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition);
}

.heat-box-cell:hover {
  transform: scale(1.05);
}

.heat-lvl-1 { background: #eff6ff; color: #1e40af; }
.heat-lvl-2 { background: #dbeafe; color: #1e40af; font-weight: 700; }
.heat-lvl-3 { background: #93c5fd; color: #1e3a8a; font-weight: 700; }
.heat-lvl-4 { background: #3b82f6; color: #ffffff; font-weight: 800; }

/* Platform Table */
.clean-data-table {
  width: 100%;
  border-collapse: collapse;
}

.clean-data-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.clean-data-table td {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
  color: var(--text-main);
}
