/**
 * ============================================================================
 * THE HIGHTOWER SCHOOL OF DIGITAL ARTS & APPLIED SCIENCES
 * Master Base Stylesheet (HighSchoolOS v6.13.07 Master Release)
 * Target Devices: Microsoft Surface Pro, Apple iPad (9th Gen), Galaxy Tab A9+
 * File: css/base.css
 * Author: Tim Hightower (Lead Admin) & Engineering Subsystem
 * ============================================================================
 */

:root {
  /* Cosmic Color Palette */
  --space-dark: #0B0F19;
  --space-darker: #060911;
  --space-light: #111827;
  --neon-cyan: #00f0ff;
  --neon-violet: #8a2be2;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--space-darker);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bulletproof Viewport Authentication State Transitions */
body.unauthenticated {
  overflow: hidden;
  touch-action: none;
}

body.unauthenticated #hightower-master-header,
body.unauthenticated #hightower-master-viewport {
  filter: blur(10px) brightness(0.2);
  pointer-events: none;
  opacity: 0.3;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

body:not(.unauthenticated) #hightower-master-header,
body:not(.unauthenticated) #hightower-master-viewport {
  filter: none;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

/* TOP-LEVEL DEDICATION & UPDATE MODAL SPLASH (Z-INDEX 10000) */
#update-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000 !important;
  background: rgba(6, 9, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

#update-modal.active {
  display: flex !important;
}