/* 
 * =====================================================
 * BLOOMEOR NEURAL CONTRAST ENGINE v1.0
 * Sovereign Intelligence for Multi-Theme Environments
 * =====================================================
 */

:root {
  /* DARK THEME (DEFAULT) NEURAL TOKENS */
  --neural-bg-absolute: #000000;
  --neural-bg-surface: rgba(10, 10, 10, 0.8);
  --neural-text-peak: #FFFFFF;
  --neural-text-standard: rgba(255, 255, 255, 0.8);
  --neural-text-muted: rgba(255, 255, 255, 0.5);
  --neural-border-glass: rgba(255, 255, 255, 0.1);
  --neural-accent-glow: rgba(227, 30, 36, 0.3);
  --neural-overlay-intensity: 0.8;
}

[data-theme="light"] {
  /* LIGHT THEME NEURAL TOKENS */
  --neural-bg-absolute: #F8FAFC;
  --neural-bg-surface: rgba(255, 255, 255, 0.8);
  --neural-text-peak: #0F172A;
  --neural-text-standard: #334155;
  --neural-text-muted: #64748B;
  --neural-border-glass: rgba(0, 0, 0, 0.1);
  --neural-accent-glow: rgba(227, 30, 36, 0.1);
  --neural-overlay-intensity: 0.2;
}

/* UNIVERSAL NEURAL UTILITIES */
.neural-text-peak {
  color: var(--neural-text-peak) !important;
  transition: color 0.4s ease;
}

.neural-text-standard {
  color: var(--neural-text-standard) !important;
  transition: color 0.4s ease;
}

.neural-text-muted {
  color: var(--neural-text-muted) !important;
  transition: color 0.4s ease;
}

.neural-glass-surface {
  background: var(--neural-bg-surface) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--neural-border-glass) !important;
  transition: background 0.4s ease, border 0.4s ease;
}

.neural-contrast-auto {
  filter: contrast(1.1);
}

[data-theme="light"] .neural-contrast-auto {
  filter: contrast(1.2) brightness(0.95);
}

/* Automated Brand Gradient Algorithm */
.neural-gradient-accent {
  background: linear-gradient(135deg, #E31E24 0%, #ff4d4d 50%, #E31E24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px var(--neural-accent-glow));
}

[data-theme="light"] .neural-gradient-accent {
  filter: none;
  background: linear-gradient(135deg, #9B1216 0%, #E31E24 50%, #9B1216 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NEURAL SURFACE OVERRIDES (CINEMATIC DARK) ── */
/* Force peak visibility for text inside dark cinematic containers regardless of theme */
.dashboard-frame .neural-text-peak,
.dashboard-frame .neural-text-standard,
.slide-mockup-frame .neural-text-peak,
.slide-mockup-frame .neural-text-standard {
  color: #FFFFFF !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .dashboard-frame .neural-text-standard,
[data-theme="light"] .slide-mockup-frame .neural-text-standard {
  color: rgba(255, 255, 255, 0.8) !important;
}

.dashboard-frame .neural-glass-surface {
  background: rgba(10, 10, 10, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
