/* templates/revealjs/css/theme-toggle.css
 * SPDX-License-Identifier: MIT
 * SPDX-FileCopyrightText: 2026 Sobera <contacto@sobera.mx>
 * HUD institucional y conmutador dual de tema (Pantalla / Proyector)
 */

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

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

.sobera-brand-left:hover {
  opacity: 0.92;
}

.reveal .sobera-brand-hud img.sobera-brand-logo,
.sobera-brand-hud img.sobera-brand-logo {
  width: auto !important;
  height: 28px !important;
  max-width: 110px !important;
  max-height: 28px !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 .sobera-brand-hud .sobera-logo-light,
.sobera-brand-hud .sobera-logo-light {
  display: none !important;
}

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

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

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

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

.sobera-brand-left:hover .sobera-brand-title {
  color: #00f2fe;
}

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

body.theme-light .sobera-brand-left:hover .sobera-brand-title {
  color: #0369a1;
}

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

.sobera-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;
  touch-action: manipulation;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  background: rgba(10, 15, 29, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.sobera-theme-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 242, 254, 0.75);
  color: #00f2fe;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.25);
}

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

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

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

body.theme-light .sobera-theme-btn:hover {
  border-color: rgba(3, 105, 161, 0.8);
  color: #0369a1;
  box-shadow: 0 4px 18px rgba(3, 105, 161, 0.2);
}

.sobera-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(10, 15, 29, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 242, 254, 0.45);
  color: #00f2fe;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

body.theme-light .sobera-toast {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(3, 105, 161, 0.45);
  color: #0369a1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

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

@media (max-width: 640px) {
  .sobera-brand-hud {
    height: 44px;
    padding: 6px 12px;
  }
  .reveal .sobera-brand-hud img.sobera-brand-logo,
  .sobera-brand-hud img.sobera-brand-logo {
    height: 20px !important;
    max-height: 20px !important;
  }
  .sobera-brand-title {
    font-size: 11px;
  }
  .sobera-theme-btn {
    padding: 4px 10px;
    font-size: 11px;
    gap: 5px;
  }
  .sobera-toast {
    bottom: 18px;
    padding: 6px 14px;
    font-size: 11px;
    max-width: calc(100vw - 24px);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sobera-brand-title {
    display: none;
  }
}
