/**
 * MU Online — identidad visual unificada (violeta / eventos & tips)
 * Cargar después de style.css / style_mu.css y antes o después del CSS específico de cada página.
 */

body.page-mu-brand {
  --mu-violet: #b21aff;
  --mu-pink: #ff2bd6;
  --mu-gold: #ffcc66;
  --mu-green: #27d17c;
  --mu-blue: #6aa6ff;
  --mu-panel: rgba(16, 20, 35, 0.92);
  --mu-border: rgba(255, 255, 255, 0.12);
}

/* Fondo compartido (combinaciones, rutas si no traen otro fondo) */
body.page-mu-brand.page-mu-surface {
  background:
    radial-gradient(ellipse 110% 75% at 50% -5%, rgba(178, 26, 255, 0.28), transparent 58%),
    radial-gradient(ellipse 70% 55% at 100% 35%, rgba(255, 43, 214, 0.14), transparent 52%),
    radial-gradient(ellipse 65% 50% at 0% 75%, rgba(255, 204, 102, 0.09), transparent 48%),
    linear-gradient(180deg, #050810 0%, #0a0e18 42%, #0e1526 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  color: #e9eefc;
}

/* Aviso legal (marca / no afiliación) */
.mu-legal-note {
  max-width: min(1120px, 94vw);
  margin: 32px auto 0;
  padding: 0 16px;
}
.mu-legal-note .mu-legal-inner {
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(233, 238, 252, 0.78);
  background: linear-gradient(135deg, rgba(178, 26, 255, 0.12), rgba(255, 43, 214, 0.06));
  border: 1px solid rgba(178, 26, 255, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.mu-legal-note p {
  margin: 0;
}
.mu-legal-note a {
  color: var(--mu-blue, #6aa6ff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Guías MU (artículos) */
body.page-mu-guide .mu-guide-footnote {
  margin: 22px 0 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(233, 238, 252, 0.78);
  border-radius: 12px;
  border: 1px solid rgba(178, 26, 255, 0.25);
  background: rgba(178, 26, 255, 0.08);
}

/* Interacción: accesos rápidos combinaciones */
body.page-mu-wings-full.page-mu-brand .quick-ref-card {
  transition: transform 0.28s cubic-bezier(0.2, 0.85, 0.2, 1), border-color 0.28s ease,
    box-shadow 0.28s ease, background 0.28s ease;
}
body.page-mu-wings-full.page-mu-brand .quick-ref-card:hover {
  transform: translateY(-4px);
  border-color: rgba(178, 26, 255, 0.45) !important;
  box-shadow: 0 18px 48px rgba(178, 26, 255, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Hub index: tips y tarjetas herramientas */
body.page-mu-index.page-mu-brand .mu-tip-card {
  transition: transform 0.3s cubic-bezier(0.2, 0.85, 0.2, 1), border-color 0.3s ease,
    box-shadow 0.3s ease;
}
body.page-mu-index.page-mu-brand .mu-tip-card:hover {
  transform: translateY(-5px);
  border-color: rgba(178, 26, 255, 0.5);
  box-shadow: 0 22px 56px rgba(178, 26, 255, 0.18);
}
body.page-mu-index.page-mu-brand .mu-tool-link {
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
body.page-mu-index.page-mu-brand .mu-tool-link:hover {
  transform: translateY(-3px);
  border-color: rgba(178, 26, 255, 0.45);
  box-shadow: 0 16px 44px rgba(178, 26, 255, 0.2);
}

/* Rutas: hero más “premium” */
body.page-mu-rutas-premium.page-mu-brand .hero h1 {
  background: linear-gradient(90deg, #fff, var(--mu-pink), var(--mu-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(178, 26, 255, 0.35));
}

/* Calculadora EXP: paneles con feedback al hover */
body.page-mu-expcalc-premium.page-mu-brand .legend,
body.page-mu-expcalc-premium.page-mu-brand .controls {
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}
body.page-mu-expcalc-premium.page-mu-brand .legend:hover,
body.page-mu-expcalc-premium.page-mu-brand .controls:hover {
  border-color: rgba(178, 26, 255, 0.32);
  box-shadow: 0 14px 40px rgba(178, 26, 255, 0.14);
}

body.page-mu-expcalc-premium.page-mu-brand .hero h1 {
  background: linear-gradient(90deg, #fff, var(--mu-pink), var(--mu-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(178, 26, 255, 0.35));
}

body.page-mu-expcalc-premium.page-mu-brand .card:hover {
  border-color: rgba(178, 26, 255, 0.45);
  box-shadow: 0 22px 50px rgba(178, 26, 255, 0.18);
}

/* Pie: contraste y lectura sobre fondo MU violeta */
body.page-mu-brand .footer {
  border-top-color: rgba(178, 26, 255, 0.22);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 16, 0.55));
  color: rgba(180, 198, 230, 0.88);
}

body.page-mu-brand .footer-copy {
  color: rgba(210, 220, 245, 0.82);
}

body.page-mu-brand .footer a {
  color: var(--mu-blue, #6aa6ff);
}

body.page-mu-brand .footer a:hover {
  color: #fff;
}

body.page-mu-brand .footer-mu-strip {
  border-top-color: rgba(178, 26, 255, 0.15);
  color: rgba(180, 198, 230, 0.78);
}

body.page-mu-brand .footer-mu-label {
  color: rgba(255, 204, 102, 0.85);
}

body.page-mu-brand .footer-mu-strip a {
  color: var(--mu-blue, #6aa6ff);
}

body.page-mu-brand .footer-mu-strip a:hover {
  color: #fff;
}

body.page-mu-brand .footer-note {
  color: rgba(160, 176, 210, 0.82);
}

/* ========== Calculadora de daño — tema violeta (sobre mu-calculator.css) ========== */
body.page-mu-damage-calc {
  --bg-1: #080612;
  --bg-2: #0c0820;
  --bg-3: #100a2a;
  --panel: rgba(22, 14, 42, 0.9);
  --panel-strong: rgba(32, 18, 58, 0.95);
  --line: rgba(178, 26, 255, 0.22);
  --line-strong: rgba(255, 43, 214, 0.38);
  --text: #f3ecff;
  --muted: #b9a8d8;
  --accent: #c026fc;
  --accent-2: #ff2bd6;
  --accent-red: #ff5c7a;
  --physical: #d946ef;
  --elemental: #818cf8;
  --absorb: #fcd34d;
  --decrease: #5eead4;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(178, 26, 255, 0.22), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 43, 214, 0.16), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(106, 166, 255, 0.1), transparent 45%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 48%, var(--bg-3)) !important;
}

body.page-mu-damage-calc::before,
body.page-mu-damage-calc::after {
  background: #7c3aed !important;
  opacity: 0.14 !important;
  animation-duration: 12s !important;
}

body.page-mu-damage-calc .calc-eyebrow {
  background: linear-gradient(135deg, rgba(178, 26, 255, 0.35), rgba(255, 43, 214, 0.2));
  border-color: rgba(178, 26, 255, 0.35);
}

body.page-mu-damage-calc .calc-pill {
  border-color: rgba(178, 26, 255, 0.3);
  background: rgba(178, 26, 255, 0.12);
}

body.page-mu-damage-calc .calc-hero-content h1 {
  background: linear-gradient(90deg, #fff, var(--mu-pink), var(--mu-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 20px rgba(178, 26, 255, 0.35));
}

body.page-mu-damage-calc .calc-panel {
  background: linear-gradient(180deg, rgba(42, 24, 72, 0.96), rgba(20, 14, 42, 0.92)) !important;
}
