/* ============================================================
   layout.css — Header, Container & Grid Layout
   SentimentScope | MCA Final Year Project
   ============================================================ */

/* ── Header ── */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.header-text p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.live-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}

/* ── Main Container ── */
.container {
  max-width: 900px;
  margin: 28px auto;
  padding: 0 20px 40px;
}

/* ── Metrics Grid (4 cards in a row) ── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

/* ── Charts Row (2 cards side by side) ── */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 52px;
  margin-bottom: 14px;
}

.empty-text {
  font-size: 15px;
}

/* ── Footer ── */
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
