/* ============================================================
   BrandSentra — mockups.css (Dashboard Mockup Components)
   Browser chrome frames, sidebar, stats, charts, maps,
   violations, alerts, tables, ticker
   ============================================================ */

/* --- Top Ticker Bar --- */
.top-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 32px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.top-ticker .ticker {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
}
.top-ticker .ticker span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
}

/* --- Two-column responsive grid --- */
.bs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* --- Browser chrome frame --- */
.mock-browser {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.03);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-subtle);
}
.mock-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.mock-dots .d {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.mock-dots .d.r { background: #ef4444; }
.mock-dots .d.a { background: #f59e0b; }
.mock-dots .d.g { background: #22c55e; }

.mock-url {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
}
.mock-url-right {
  flex-shrink: 0;
}

/* --- Dashboard body layout --- */
.mock-body {
  display: flex;
  min-height: 420px;
}

/* --- Sidebar --- */
.mock-sidebar {
  width: 180px;
  background: var(--bg-surface-2);
  border-right: 1px solid var(--border-subtle);
  padding: 16px 0;
  flex-shrink: 0;
}
.mock-sidebar-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary);
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}
.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: default;
  transition: color 0.15s;
  border-left: 2px solid transparent;
}
.mock-nav-item.active {
  color: var(--color-primary);
  background: rgba(59, 186, 126, 0.06);
  border-left-color: var(--color-primary);
}

/* --- Main content area --- */
.mock-main {
  flex: 1;
  padding: 16px;
  overflow: hidden;
  min-width: 0;
}

/* --- Stats row --- */
.mock-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.mock-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 16px;
}
.mock-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.mock-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.mock-stat-change {
  font-size: 10px;
  margin-top: 6px;
}
.mock-stat-change.green { color: var(--color-primary); }
.mock-stat-change.red { color: var(--color-red); }

/* --- Chart + Map row --- */
.mock-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.mock-chart-box,
.mock-map-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}
.mock-chart-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 16px;
}
.mock-chart-area {
  height: 120px;
  padding: 0 16px 16px;
}
.mock-map-area {
  position: relative;
  height: 140px;
  margin: 0 16px 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

/* --- Map dots & labels --- */
.map-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.6;
}
.map-dot.pulse {
  width: 8px;
  height: 8px;
  opacity: 1;
  box-shadow: 0 0 8px rgba(59, 186, 126, 0.5);
  animation: pulse 2s ease-in-out infinite;
}
.map-label {
  position: absolute;
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  white-space: nowrap;
}
.map-label .ct {
  font-size: 9px;
  font-weight: 700;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 4px;
}
.ct.red { background: rgba(239,68,68,0.15); color: #ef4444; }
.ct.amber { background: rgba(245,158,11,0.15); color: #f59e0b; }
.ct.green { background: rgba(59,186,126,0.15); color: #3bba7e; }

/* --- Violations list --- */
.mock-violations {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}
.mock-vrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
}
.mock-vrow:last-child { border-bottom: none; }
.mock-severity {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.mock-severity.high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.mock-severity.med {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.mock-severity.low {
  background: rgba(59, 186, 126, 0.15);
  color: #3bba7e;
  border: 1px solid rgba(59, 186, 126, 0.3);
}
.mock-vtext {
  flex: 1;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-vloc {
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
}
.mock-vtime {
  color: var(--text-faint);
  font-size: 11px;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

/* --- Right notification panel --- */
.mock-right-panel {
  width: 220px;
  background: var(--bg-surface-2);
  border-left: 1px solid var(--border-subtle);
  flex-shrink: 0;
  overflow: hidden;
}
.mock-notif {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
}
.mock-notif:last-child { border-bottom: none; }
.mock-notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.mock-notif-dot.red { background: #ef4444; }
.mock-notif-dot.green { background: #3bba7e; }
.mock-notif-dot.amber { background: #f59e0b; }
.mock-notif-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 11px;
  line-height: 1.3;
}
.mock-notif-sub {
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 2px;
}
.mock-notif-time {
  color: var(--text-faint);
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  margin-left: auto;
  flex-shrink: 0;
}

/* --- Alert rows (Detect section) --- */
.mock-alert-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.mock-alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mock-alert-body {
  flex: 1;
  min-width: 0;
}
.mock-alert-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}
.mock-alert-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.mock-alert-meta {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 6px;
}

/* --- Enforcement table --- */
.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.mock-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}
.mock-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.mock-table tr:last-child td { border-bottom: none; }
.mock-table tr:hover { background: rgba(255,255,255,0.02); }

/* --- Mobile responsive --- */
@media (max-width: 768px) {
  .top-ticker { height: 28px; }
  .top-ticker .ticker { font-size: 10px; gap: 24px; }

  .bs-two-col {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .mock-browser { border-radius: 10px; }
  .mock-body { flex-direction: column; min-height: auto; }
  .mock-sidebar { display: none; }
  .mock-right-panel { display: none; }
  .mock-main { padding: 12px; }
  .mock-stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mock-stat-value { font-size: 18px; }
  .mock-chart-row { grid-template-columns: 1fr; }
  .mock-chart-area { height: 80px; }
  .mock-map-area { height: 100px; }
  .mock-vrow { gap: 8px; padding: 8px 12px; font-size: 11px; }
  .mock-vloc { display: none; }
  .mock-alert-row { padding: 12px 14px; gap: 10px; }
  .mock-alert-icon { width: 30px; height: 30px; border-radius: 8px; }
  .mock-alert-title { font-size: 12px; }
  .mock-alert-sub { font-size: 11px; }
  .mock-table th, .mock-table td { padding: 10px 12px; font-size: 11px; }
}

@media (max-width: 480px) {
  .mock-stats-row { grid-template-columns: 1fr; }
  .mock-stat-box { padding: 10px 12px; }
  .mock-severity { font-size: 9px; padding: 2px 6px; }
}
