/* cyber-theme.css - Dark Mode Cyberpunk for 6th-9th grade */
body.theme-cyber {
  --bg-dark: #0a0a0f;
  --bg-card: #151520;
  --bg-hover: #1f1f30;
  --primary: #00ffcc;
  --secondary: #ff007f;
  --text: #e0e0e0;
  --muted: #888899;
  --success: #00e676;
  --danger: #ff1744;
  --warning: #ffb300;
  --border: #333344;
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Consolas', 'Courier New', monospace;
}

body.theme-cyber * {
  border-color: var(--border);
}

body.theme-cyber .topbar,
body.theme-cyber .bottom-nav,
body.theme-cyber .world-grid .world-card,
body.theme-cyber .subject-card,
body.theme-cyber .mission-card,
body.theme-cyber .intro-card,
body.theme-cyber .section-card,
body.theme-cyber .summary-card,
body.theme-cyber .panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 255, 204, 0.05);
}

body.theme-cyber .topbar-title,
body.theme-cyber h1,
body.theme-cyber h2,
body.theme-cyber .world-title,
body.theme-cyber .subject-title {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.theme-cyber .btn-primary,
body.theme-cyber .btn-quiz {
  background: var(--primary);
  color: #000;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

body.theme-cyber .btn-primary:hover,
body.theme-cyber .btn-quiz:hover {
  background: #00e6b8;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.6);
}

body.theme-cyber .btn-back-menu {
  background: var(--border);
  border-radius: 4px;
}

body.theme-cyber .tab {
  background: var(--bg-hover);
  border-radius: 4px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

body.theme-cyber .tab.active {
  background: var(--primary);
  color: #000;
}

body.theme-cyber .ex-reveal-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
}

body.theme-cyber .mermaid {
  filter: invert(1) hue-rotate(180deg) brightness(1.2);
}

body.theme-cyber .world-subtitle {
  color: var(--secondary);
}

/* Inclusão - Leitor de Tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Inclusão - Alto Contraste */
body.high-contrast { filter: contrast(1.5) grayscale(1); background: #000 !important; }
body.high-contrast * { color: #fff !important; border-color: #fff !important; }

/* Gestão de Foco - Trava do Professor */
#focus-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center; color: #fff;
}
#focus-overlay.hidden { display: none; }
.focus-card {
  background: var(--bg-card); border: 2px solid var(--orange);
  border-radius: var(--radius); padding: 30px 20px;
  max-width: 400px; width: 100%; box-shadow: 0 0 40px rgba(255, 112, 67, 0.4);
}
.focus-title { font-size: 20px; font-weight: 900; color: var(--orange); margin-bottom: 10px; }
.focus-desc { font-size: 14px; color: var(--txt-muted); margin-bottom: 25px; line-height: 1.5; }
.focus-btn {
  background: var(--green); color: #fff; font-weight: 900; padding: 16px; border-radius: var(--radius-sm);
  width: 100%; border: none; font-size: 16px; text-transform: uppercase; cursor: pointer;
}
.focus-secret-pin {
  position: absolute; bottom: 0; right: 0; width: 80px; height: 80px;
  background: transparent; z-index: 10000;
}
