/* ==========================================
   Easter Eggs — Kernel Panic + AI Assistant
   ========================================== */

/* ---- Kernel Panic (BSOD replacement) ---- */

#bsod {
  position: fixed;
  inset: 0;
  background: #0d0d1a;
  color: var(--text-primary, #e2e8f0);
  font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', 'Courier New', monospace);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 40px;
}

.kp-header {
  font-size: 24px;
  color: var(--close-red, #ef4444);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui, 'Segoe UI', sans-serif);
  font-weight: 600;
}

.kp-header i { font-size: 32px; }

.kp-body {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text-secondary, #94a3b8);
  text-align: center;
  max-width: 500px;
}

/* ---- AI Assistant (Clippy replacement) ---- */

#clippy {
  position: fixed;
  bottom: 56px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  animation: clippy-slide-in 0.4s ease-out;
}

@keyframes clippy-slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#clippy-bubble {
  background: var(--bg-surface, rgba(25, 25, 50, 0.95));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-family: var(--font-ui, 'Segoe UI', sans-serif);
  color: var(--text-primary, #e2e8f0);
  max-width: 240px;
  margin-bottom: 10px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#clippy-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 20px;
  border-width: 8px 6px 0;
  border-style: solid;
  border-color: var(--bg-surface, rgba(25, 25, 50, 0.95)) transparent transparent;
}

#clippy-body {
  font-size: 42px;
  color: var(--accent-secondary, #06b6d4);
  cursor: pointer;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
}

#clippy-dismiss {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
  background: var(--bg-surface-solid, #1a1a32);
  color: var(--text-muted, #64748b);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

#clippy-dismiss:hover {
  background: var(--accent, #7c3aed);
  color: #fff;
  border-color: var(--accent, #7c3aed);
}
