/* templates/revealjs/css/theme-toggle.css
 * SPDX-License-Identifier: MIT
 * SPDX-FileCopyrightText: 2026 Fundación MxOS <contacto@mx-os.mx>
 * HUD institucional y conmutador dual de tema (Oscuro / Proyector)
 */

.mxos-brand-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  z-index: 50;
  pointer-events: none;
}

.mxos-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mxos-brand-left:hover {
  opacity: 0.9;
}

.reveal .mxos-brand-hud img.mxos-brand-logo,
.mxos-brand-hud img.mxos-brand-logo {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transform: none !important;
}

.reveal .mxos-brand-hud .mxos-logo-light,
.mxos-brand-hud .mxos-logo-light {
  display: none !important;
}

.reveal .mxos-brand-hud .mxos-logo-dark,
.mxos-brand-hud .mxos-logo-dark {
  display: block !important;
}

body.theme-light .reveal .mxos-brand-hud .mxos-logo-light,
body.theme-light .mxos-brand-hud .mxos-logo-light {
  display: block !important;
}

body.theme-light .reveal .mxos-brand-hud .mxos-logo-dark,
body.theme-light .mxos-brand-hud .mxos-logo-dark {
  display: none !important;
}

.mxos-brand-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.mxos-brand-left:hover .mxos-brand-title {
  color: #34d399;
}

body.theme-light .mxos-brand-title {
  color: #475569;
}

body.theme-light .mxos-brand-left:hover .mxos-brand-title {
  color: #047857;
}

.mxos-brand-right {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

/* Botón Conmutador de Tema */
.mxos-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.mxos-theme-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.7);
  color: #10b981;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
}

.mxos-theme-btn:active {
  transform: translateY(0);
}

.mxos-theme-icon {
  font-size: 13px;
  line-height: 1;
}

body.theme-light .mxos-theme-btn {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

body.theme-light .mxos-theme-btn:hover {
  border-color: rgba(5, 150, 105, 0.8);
  color: #047857;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.2);
}

/* Toast de Notificación Rápida */
.mxos-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  padding: 7px 18px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  z-index: 100;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

body.theme-light .mxos-toast {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(5, 150, 105, 0.45);
  color: #047857;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.mxos-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
