/* ═══════════════════════════════════════════════════════════════════════════ */
/* StayHive Dark Knight Theme — shared across all demo pages                 */
/* ═══════════════════════════════════════════════════════════════════════════ */

* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg-void: #08080d;
  --bg-surface: #0e0e16;
  --bg-card: #13131d;
  --bg-card-hover: #191926;
  --bg-elevated: #1a1a28;
  --border-subtle: #1a1a2a;
  --border-accent: #252538;
  --text-primary: #eaeaf2;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;
  --amber-dim: rgba(245,158,11,0.12);
  --emerald: #10b981;
  --emerald-dim: rgba(16,185,129,0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.12);
  --purple: #8b5cf6;
  --purple-dim: rgba(139,92,246,0.12);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6,182,212,0.12);
  --pink: #ec4899;
  --pink-dim: rgba(236,72,153,0.12);
  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── TOPBAR ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 52px;
  background: rgba(8,8,13,0.88); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.brand { font-weight: 800; font-size: 0.95rem; color: var(--amber); letter-spacing: -0.02em; text-decoration: none; }
.brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; background: var(--amber-dim); border-radius: 6px;
  margin-right: 6px; font-size: 0.85rem;
}
.property-name {
  font-size: 0.75rem; color: var(--text-secondary);
  padding-left: 16px; border-left: 1px solid var(--border-accent);
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.badge-live {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
  color: var(--emerald); padding: 4px 10px; background: var(--emerald-dim); border-radius: 20px;
}
.badge-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald); animation: pulse 2s infinite;
}
.btn-cta {
  font-size: 0.7rem; font-weight: 600; color: var(--bg-void);
  background: var(--amber); border: none; border-radius: 6px;
  padding: 6px 14px; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-cta:hover { background: var(--amber-soft); transform: translateY(-1px); }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ─── BREADCRUMB ─────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 0.7rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-primary); font-weight: 600; }

/* ─── CONTAINER ──────────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ─── PAGE HEADER ────────────────────────────────────────────────────── */
.page-header { padding: 32px 0 24px; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.page-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.page-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.page-desc { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; max-width: 560px; }
.page-status {
  display: flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 500;
  margin-top: 8px;
}
.page-status .s-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ─── CARDS / PANELS ─────────────────────────────────────────────────── */
.panel {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 12px; overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border-subtle);
}
.panel-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.panel-badge {
  font-size: 0.6rem; padding: 2px 8px; border-radius: 4px;
  font-weight: 600; font-family: var(--mono);
}
.panel-body { padding: 18px; }

/* ─── METRIC CHIPS ───────────────────────────────────────────────────── */
.metrics-row { display: flex; gap: 8px; flex-wrap: wrap; }
.metric-chip {
  background: var(--bg-void); border: 1px solid var(--border-subtle);
  border-radius: 6px; padding: 5px 10px; font-size: 0.65rem;
  font-family: var(--mono);
}
.metric-chip .val { font-weight: 600; }
.metric-chip .lbl { color: var(--text-muted); margin-left: 3px; }

/* ─── GRID LAYOUTS ───────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 14px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-sidebar { grid-template-columns: 1fr; }
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-top: 1px solid var(--border-subtle); margin-top: 48px;
}
.footer-left { font-size: 0.65rem; color: var(--text-muted); }
.footer-right a { font-size: 0.65rem; color: var(--blue); text-decoration: none; font-weight: 600; }

/* ─── UTILITY ────────────────────────────────────────────────────────── */
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--mono); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.gap-14 { gap: 14px; }
