/* ============================================================
   MAIN.CSS — Base styles, variables, reset
   Frutiger Aero Experience
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

:root {
  /* Blues */
  --blue-deep:    #001a3d;
  --blue-dark:    #003580;
  --blue-mid:     #0068c8;
  --blue-sky:     #0096d6;
  --blue-light:   #40c4e8;
  --blue-pale:    #a8e6ff;
  --blue-ice:     #d6f5ff;

  /* Greens */
  --green-deep:   #002e1a;
  --green-dark:   #005c38;
  --green-mid:    #009960;
  --green-bright: #00cc80;
  --green-light:  #7effd4;
  --green-pale:   #c0fff0;

  /* Glass surfaces */
  --glass-w10:    rgba(255,255,255,0.10);
  --glass-w15:    rgba(255,255,255,0.15);
  --glass-w20:    rgba(255,255,255,0.20);
  --glass-w30:    rgba(255,255,255,0.30);
  --glass-w40:    rgba(255,255,255,0.40);
  --glass-b10:    rgba(0,80,180,0.10);
  --glass-b20:    rgba(0,80,180,0.20);
  --glass-b30:    rgba(0,80,180,0.30);
  --glass-b50:    rgba(0,80,180,0.50);

  /* Borders */
  --border-glass: rgba(255,255,255,0.62);
  --border-blue:  rgba(100,200,255,0.65);

  /* Shadows */
  --shadow-glow:  0 0 20px rgba(64,196,232,0.75), 0 0 50px rgba(0,150,214,0.40), 0 0 90px rgba(0,100,200,0.18);
  --shadow-win:   0 0 0 1px rgba(100,180,255,0.35), 0 0 40px rgba(0,80,220,0.40), 0 28px 80px rgba(0,20,80,0.75), 0 8px 28px rgba(0,0,0,0.50);
  --shadow-float: 0 8px 32px rgba(0,60,180,0.35);

  /* Fonts */
  --font-main: 'Nunito', 'Segoe UI', 'Trebuchet MS', sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Timing */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-main);
  cursor: none !important;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background: var(--blue-deep);
  color: white;
}

/* Hide default cursors everywhere */
*, *::before, *::after {
  cursor: none !important;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0,40,100,0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.55) 0%,
    var(--blue-light) 30%,
    var(--green-bright) 100%
  );
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(64,196,232,0.65), 0 1px 0 rgba(255,255,255,0.55) inset;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff, var(--blue-light));
}

/* Text selection */
::selection {
  background: rgba(0, 150, 214, 0.5);
  color: white;
}

/* Utility */
.hidden { display: none !important; }
.invisible { visibility: hidden !important; }
.no-pointer { pointer-events: none; }

/* Boot screen */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse at 50% 40%, #001a5e 0%, #000510 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.boot-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: boot-logo-appear 1s var(--ease-spring) forwards;
}

.boot-logo-orb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    #ffffff 0%,
    var(--blue-light) 25%,
    var(--blue-sky) 55%,
    var(--green-mid) 80%,
    var(--green-dark) 100%
  );
  box-shadow:
    0 0 40px rgba(64,196,232,0.8),
    0 0 80px rgba(0,150,214,0.5),
    0 0 120px rgba(0,200,128,0.3),
    inset 0 2px 8px rgba(255,255,255,0.6);
  animation: orb-pulse 2s ease-in-out infinite;
}

.boot-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 8px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, var(--blue-light) 40%, var(--green-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(64,196,232,0.6));
}

.boot-subtitle {
  font-size: 13px;
  letter-spacing: 4px;
  color: rgba(168, 230, 255, 0.7);
  text-transform: uppercase;
}

.boot-progress-wrap {
  width: 280px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.boot-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-sky), var(--green-bright), var(--blue-light));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(0,200,128,0.8);
  animation: boot-progress 3s ease-in-out forwards;
}

.boot-loading-text {
  font-size: 12px;
  color: rgba(168,230,255,0.5);
  letter-spacing: 2px;
  animation: text-blink 1s ease-in-out infinite;
}

/* Custom cursor orb — replaced by canvas in effects.js */
#cursor-orb {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
}

#cursor-trail-container {
  display: none;
}

/* Notification toasts */
#notification-container {
  position: fixed;
  bottom: 56px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 50000;
  pointer-events: none;
}

.notification-toast {
  background: linear-gradient(165deg,
    rgba(20,60,165,0.94) 0%,
    rgba(0,40,128,0.92) 50%,
    rgba(0,22,88,0.96) 100%
  );
  backdrop-filter: blur(14px) saturate(200%) brightness(110%);
  -webkit-backdrop-filter: blur(14px) saturate(200%) brightness(110%);
  border: 1px solid rgba(100,180,255,0.55);
  border-top-color: rgba(200,235,255,0.75);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-size: 13px;
  box-shadow:
    0 0 0 1px rgba(80,160,255,0.20),
    0 0 20px rgba(0,80,200,0.45),
    0 8px 28px rgba(0,30,120,0.65),
    inset 0 1px 0 rgba(220,240,255,0.40);
  animation: toast-slide-in 0.4s var(--ease-spring) forwards;
  max-width: 280px;
}

.notification-toast.hiding {
  animation: toast-slide-out 0.3s ease-in forwards;
}

.notification-toast .toast-title {
  font-weight: 700;
  color: var(--blue-light);
  margin-bottom: 4px;
  font-size: 13px;
}

.notification-toast .toast-body {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
}
