/* ============================================================
   Nexus Prospector Pro — Estilos globales
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── Variables de diseño ── */
:root {
  --bg:         #0C0C0F;
  --bg2:        #13131A;
  --bg3:        #1A1A24;
  --border:     #2A2A38;
  --gold:       #D4A843;
  --gold2:      #F0C96A;
  --text:       #E8E8F0;
  --muted:      #6A6A88;
  --green:      #3DBA7A;
  --red:        #E05C5C;
  --blue:       #5B8DEF;
  --purple:     #9B6EFF;
  --orange:     #F07A3A;

  --radius:     10px;
  --radius-lg:  16px;
  --radius-sm:  6px;

  --sidebar-w:  220px;
  --header-h:   64px;

  --shadow:     0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 0 20px rgba(212, 168, 67, 0.15);

  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Tipografía ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--muted); }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold2); }

/* ── Scrollbar personalizada ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Utilidades de display ── */
.d-flex     { display: flex; }
.d-grid     { display: grid; }
.d-none     { display: none; }
.align-center { align-items: center; }
.gap-1      { gap: 8px; }
.gap-2      { gap: 16px; }
.gap-3      { gap: 24px; }

/* ── Utilidades de texto ── */
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--muted); }
.text-sm     { font-size: 0.8rem; }
.text-xs     { font-size: 0.72rem; }
.font-mono   { font-family: 'DM Mono', monospace; }
.font-bold   { font-weight: 700; }
.text-center { text-align: center; }

/* ── Separador ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* ── Estados de carga ── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Estado vacío ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}

.empty-state svg {
  opacity: 0.25;
}

.empty-state h3 {
  color: var(--muted);
  font-weight: 600;
}

.empty-state p {
  font-size: 0.85rem;
  max-width: 300px;
}

/* ── Animaciones globales ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-16px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

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

.animate-fade { animation: fadeIn 0.3s ease forwards; }
.animate-pulse { animation: pulse 1.5s ease infinite; }

/* ── Responsive breakpoints ── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
}
