/**
 * Lyvora User Pages - CSS Variables Unified
 * Variables consistentes para todas las páginas de usuario
 */

/* ═══════════════════════════════════════════════════════════════
   ROOT VARIABLES - Sistema de diseño unificado
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ══ FONTS ══ */
  --font-display: 'Outfit', 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ══ PRIMARY COLORS (Violet/Morado) ══ */
  --primary: #7B3FF2;
  --primary-600: #6e37ff;
  --primary-700: #5a1fd9;
  --primary-400: #8b5fff;
  --primary-300: #a78bfa;
  --primary-200: #c4b5fd;
  --primary-100: #e0d7fe;
  --primary-glow: rgba(123, 63, 242, 0.35);
  --primary-dim: rgba(123, 63, 242, 0.15);

  /* ══ ACCENT COLORS (Teal/Cyan) ══ */
  --accent: #00D4B8;
  --accent-400: #00f0c8;
  --accent-600: #00B8A0;
  --accent-glow: rgba(0, 212, 184, 0.35);
  --accent-dim: rgba(0, 212, 184, 0.08);
  --accent-dim2: rgba(0, 212, 184, 0.14);

  /* ══ SEMANTIC COLOR ALIASES ══ */
  --teal: var(--accent);
  --teal-2: var(--accent-600);
  --teal-dim: var(--accent-dim);
  --teal-dim2: var(--accent-dim2);
  --teal-border: rgba(0, 212, 184, 0.22);
  --teal-glow: var(--accent-glow);

  --neon-cyan: var(--accent);
  --neon-purple: var(--primary);
  --neon-pink: #ff3d5a;

  --v: var(--primary);
  --v2: var(--primary-700);
  --v3: var(--primary-300);
  --v4: var(--primary-200);
  --vg: var(--primary-dim);

  /* ══ BACKGROUNDS ══ */
  --bg: #05050a;
  --bg-dark: #08080f;
  --bg-darker: #050508;

  --surface: #0d0d14;
  --surface-2: #0d0d1a;
  --surface-3: #13131c;
  --surface-4: #1a1a26;
  --surface-5: #1a1a28;
  --surface-6: #20202e;

  /* Aliases para agency */
  --s1: var(--surface-2);
  --s2: var(--surface-3);
  --s3: var(--surface-4);
  --s4: var(--surface-5);
  --s5: var(--surface-6);
  --base1: var(--bg-dark);
  --base2: var(--surface-2);

  /* Aliases para landing */
  --bg-card: #161b22;
  --bg-elevated: #21262d;

  /* ══ TEXT COLORS ══ */
  --text: rgba(255, 255, 255, 0.92);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.25);

  /* Aliases */
  --text2: var(--text-muted);
  --text3: #44445a;
  --text4: #22223a;

  /* ══ UTILITY COLORS ══ */
  --live-red: #ff3d5a;
  --success: #00e5a0;
  --green: #34d399;
  --error: #ff3d5a;
  --red: #f87171;
  --warning: #ffb547;
  --yellow: #fbbf24;
  --orange: #fb923c;
  --pink: #f472b6;
  --gold: #ffc145;
  --cyan: #22d3ee;
  --cyan2: #0891b2;

  /* ══ BORDERS ══ */
  --border: rgba(255, 255, 255, 0.06);
  --border-2: rgba(255, 255, 255, 0.09);
  --border-3: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(255, 255, 255, 0.10);
  --border-glow: rgba(110, 55, 255, 0.55);

  /* ══ RADIUS ══ */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-2xl: 24px;

  /* Aliases */
  --r: var(--radius);
  --rs: var(--radius-sm);
  --r2: 18px;
  --r3: 24px;

  /* ══ TRANSITIONS ══ */
  --trans: cubic-bezier(0.22, 1, 0.36, 1);
  --trans-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* ══ LAYOUT ══ */
  --sidebar-width: 240px;
  --navbar-height: 60px;
  --mobile-tabbar-height: 62px;

  /* Alias para agency */
  --sidebar: var(--sidebar-width);
}

/* ═══════════════════════════════════════════════════════════════
   BASE STYLES - Reset y estilos base comunes
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  font-family: var(--font-body);
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR - Estilo consistente
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(123, 63, 242, 0.3);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(123, 63, 242, 0.55);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS - Keyframes compartidos
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

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

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

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(123, 63, 242, 0.3); }
  50% { box-shadow: 0 0 36px rgba(123, 63, 242, 0.65); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 0.4; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

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

@keyframes iconPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.65); }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES - Clases de utilidad comunes
   ═══════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* ═══════════════════════════════════════════════════════════════
   GRADIENT TEXT
   ═══════════════════════════════════════════════════════════════ */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-300), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-violet {
  background: linear-gradient(135deg, #c4a0ff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-teal {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
