/**
 * PulsePoint — Mental mode (calmer UI for focus & regulation)
 * Toggle adds class html.pp-mental-mode (see mental-mode.js)
 */

button.mental-mode-toggle {
  font: inherit;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}

html.pp-mental-mode button.mental-mode-toggle {
  background: rgba(200, 218, 235, 0.22);
  border-color: rgba(230, 238, 248, 0.45);
  color: #f0f6fc;
}

html.pp-mental-mode body.one-pager-page button.mental-mode-toggle {
  border-color: rgba(80, 110, 140, 0.45);
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
}

html.pp-mental-mode {
  scroll-behavior: smooth;
}

html.pp-mental-mode body {
  background: linear-gradient(165deg, #1c2838 0%, #243246 45%, #1a2433 100%) !important;
  color: #e8edf4 !important;
}

html.pp-mental-mode .header {
  background: linear-gradient(135deg, #4a6f88 0%, #5c6478 48%, #6d5f72 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  filter: saturate(0.72);
}

html.pp-mental-mode .header p,
html.pp-mental-mode .subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
}

html.pp-mental-mode .hub-tabs {
  background: rgba(22, 32, 44, 0.94) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

html.pp-mental-mode .hub-tabs a {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  color: #dce7f2;
}

html.pp-mental-mode .hub-tabs a:hover {
  background: rgba(125, 155, 180, 0.28);
  border-color: rgba(180, 200, 220, 0.35);
}

html.pp-mental-mode .hub-tabs a.hub-tab-funding {
  filter: saturate(0.85);
}

html.pp-mental-mode .card {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

html.pp-mental-mode .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

html.pp-mental-mode .data-summary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html.pp-mental-mode .data-item .value {
  background: linear-gradient(135deg, #7cb69c, #6a9aaa);
  -webkit-background-clip: text;
  background-clip: text;
}

html.pp-mental-mode .footer {
  color: #8b9aaf;
}

html.pp-mental-mode *,
html.pp-mental-mode *::before,
html.pp-mental-mode *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.18s !important;
}

@media (prefers-reduced-motion: reduce) {
  html.pp-mental-mode *,
  html.pp-mental-mode *::before,
  html.pp-mental-mode *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Teacher hub — specific blocks */
html.pp-mental-mode .teacher-hub .header,
html.pp-mental-mode body .header {
  filter: saturate(0.72);
}

html.pp-mental-mode .stat-value {
  color: #c8dcf0 !important;
}

html.pp-mental-mode .quick-actions .quick-btn {
  filter: saturate(0.8);
}

/* Student one-pager — softer light theme */
html.pp-mental-mode body.one-pager-page {
  background: #e8eef5 !important;
  color: #1e293b !important;
}

html.pp-mental-mode body.one-pager-page .panel,
html.pp-mental-mode body.one-pager-page .stat {
  background: #f4f7fb !important;
  border-color: #c5d0df !important;
}

html.pp-mental-mode body.one-pager-page .no-print {
  background: rgba(125, 155, 180, 0.2) !important;
  border: 1px solid rgba(90, 120, 150, 0.25);
}
