/* ============================================
   VORTEX BASE STYLES
   SmartProcess AI Design System
   ============================================ */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ============================================
   CSS VARIABLES - PALETA SPAI OFICIAL
   ============================================ */
:root {
  /* Colores principales */
  --spai-primary: #00D4FF;
  --spai-secondary: #00B686;
  --spai-deep: #001F3F;
  --spai-neutral-light: #F4F9FA;
  --spai-neutral-mid: #DDE6EA;
  --spai-cta: #FF7C6B;
  
  /* Colores de sistema Vortex */
  --vortex-base: #060A13;
  --vortex-halo: #1D323F;
  --vortex-accent: #00D4FF;
  --vortex-quantum: #00B686;
  --vortex-alert: #FF7C6B;
  --vortex-border: #DDE6EA;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #00D4FF 0%, #00B686 100%);
  --gradient-deep: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 182, 134, 0.2) 100%);
  
  /* Tipografías */
  --font-title: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-tech: 'JetBrains Mono', monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--vortex-base);
  color: var(--vortex-neutral-light);
  overflow: hidden;
  height: 100vh;
  display: flex;
}

/* ============================================
   SCROLLBAR PERSONALIZADO
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--vortex-base);
}

::-webkit-scrollbar-thumb {
  background: var(--vortex-accent);
  border-radius: 3px;
  opacity: 0.3;
}

::-webkit-scrollbar-thumb:hover {
  background: #00bce3;
}

/* ============================================
   NEURAL CANVAS (FONDO ANIMADO)
   ============================================ */
#neuralCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   GLASS PANEL EFFECT
   ============================================ */
.glass-panel {
  background: rgba(11, 20, 38, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(221, 230, 234, 0.1);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   NAVIGATION ACTIVE STATE
   ============================================ */
.nav-active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 182, 134, 0.2) 100%) !important;
  border-left: 4px solid var(--vortex-accent) !important;
  color: white !important;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-glow {
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.text-glow-quantum {
  text-shadow: 0 0 10px rgba(0, 182, 134, 0.4);
}

.halo-effect {
  background: radial-gradient(circle at 50% 30%, rgba(0, 182, 134, 0.12) 0%, rgba(10, 15, 20, 0) 60%);
}

.grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-subtle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

@keyframes glow-pulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }
  50% { 
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s ease-in-out infinite;
}

.animate-glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background-color: rgba(0, 212, 255, 0.3);
  color: white;
}

::-moz-selection {
  background-color: rgba(0, 212, 255, 0.3);
  color: white;
}

/* ============================================
   QUICK ACTION BUTTONS - MÁS COMPACTOS
   ============================================ */
.quick-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  background: rgba(0, 31, 63, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(0, 212, 255, 0.4) !important;
  color: #00D4FF !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  white-space: nowrap !important;
  position: relative !important;
  z-index: 50 !important;
}

.quick-action-btn:hover {
  background: rgba(0, 212, 255, 0.15) !important;
  border-color: #00D4FF !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-1px) !important;
}

.quick-action-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3) !important;
}

.quick-action-btn .material-symbols-outlined {
  font-size: 1.1rem !important;
  font-weight: 400 !important;
}

/* Responsive - solo iconos en pantallas pequeñas */
@media (max-width: 1280px) {
  .quick-action-btn {
    padding: 0.5rem !important;
    min-width: auto !important;
  }
  
  .quick-action-btn span:not(.material-symbols-outlined) {
    display: none !important;
  }
}

/* Responsive - ocultar en móvil */
@media (max-width: 1024px) {
  .quick-action-btn {
    display: none !important;
  }
}
