/* ===== V16 Zero-Day Scanner — Base Layout ===== */
/* Panel components → style-panel-components.css */
@import url('style-panel-components.css');

:root {
  --primary:   #ef4444;
  --secondary: #f97316;
  --accent:    #fbbf24;
  --surface:   rgba(20, 5, 5, 0.92);
  --surface2:  rgba(30, 8, 8, 0.85);
  --text:      #fef2f2;
  --text-dim:  rgba(254, 242, 242, 0.5);
  --border:    rgba(239, 68, 68, 0.25);
  --glow:      rgba(239, 68, 68, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0e0202;
  background-image:
    repeating-linear-gradient(0deg,  transparent, transparent 39px, rgba(239,68,68,0.04) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(239,68,68,0.04) 40px);
  color: var(--text);
  font-family: 'Source Code Pro', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== System Header ===== */
.sys-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 2, 2, 0.9);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.sys-id {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

.sys-id .ver { color: var(--text-dim); font-size: 11px; margin-left: 6px; }

.sys-status { display: flex; align-items: center; gap: 8px; }

/* Blinking status dot */
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  animation: dot-blink 1.4s steps(1) infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 20px;
}

/* ===== 2×2 Scan Grid ===== */
.scan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 680px;
}

/* ===== Action Row ===== */
.action-row {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 680px;
}

/* ===== Utility ===== */
.hidden { display: none !important; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive: 1-col on mobile ===== */
@media (max-width: 600px) {
  .scan-grid { grid-template-columns: 1fr; }
  .sys-header { flex-direction: column; gap: 6px; text-align: center; }
  .scan-btn { padding: 13px 32px; letter-spacing: 2px; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .dot,
  .results-header,
  .scan-panel.done,
  .results-panel,
  .redirect-btn { animation: none !important; }

  .ring-fill { transition: stroke-dashoffset 0s; }

  .scan-btn:hover,
  .redirect-btn:hover { transform: none; }
}
