/* ==========================================================================
   Animations — boot sequence, transitions, XP-style effects
   ========================================================================== */

/* Boot fade in */
@keyframes bootFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Boot progress bar fill */
@keyframes bootProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* XP-style progress bar block animation */
@keyframes xpProgressBlocks {
  0%   { background-position: -60px 0; }
  100% { background-position: 300px 0; }
}

/* Logo build-up effect */
@keyframes pixelBuild {
  0%   { opacity: 0; transform: scale(0.8); }
  30%  { opacity: 0.4; transform: scale(0.9); }
  60%  { opacity: 0.7; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Blinking text cursor */
@keyframes blinkCursor {
  0%, 49%  { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Window open scale-in */
@keyframes windowOpen {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Window close scale-out */
@keyframes windowClose {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(0.85); opacity: 0; }
}

/* Boot screen container — XP blue background */
.boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0046c8 0%, #0058e6 40%, #003da8 100%);
  z-index: var(--z-boot);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

.boot-screen.hidden {
  display: none;
}

/* BIOS-style boot text */
.boot-text {
  font-family: var(--font-content);
  font-size: var(--font-size-sm);
  line-height: 2;
  color: #ffffff;
  text-align: left;
  max-width: 600px;
  width: 90%;
  animation: bootFadeIn 0.3s ease-out;
}

.boot-text .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #ffffff;
  animation: blinkCursor 0.8s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

/* XP-style progress bar — green blocks in a blue track */
.boot-progress-container {
  width: 300px;
  height: 24px;
  background: #1a3a7a;
  border: 2px solid #0a2a5a;
  border-radius: 3px;
  padding: 3px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
  overflow: hidden;
}

.boot-progress-bar {
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      #00aa00 0px,
      #00cc00 4px,
      #00aa00 8px,
      transparent 8px,
      transparent 10px
    );
  background-size: 10px 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Boot logo area */
.boot-logo {
  animation: pixelBuild 1.5s ease-out forwards;
  font-family: var(--font-content);
  font-size: var(--font-size-2xl);
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Boot content layout */
.boot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  width: 90%;
}

/* Boot text (styled for XP) */
.boot-bios-text {
  font-family: var(--font-content);
  font-size: 11px;
  color: #ffffff;
  white-space: pre-wrap;
  line-height: 2;
  text-align: left;
  width: 100%;
}

/* Boot logo image (DC initials) */
.boot-logo-img {
  font-family: var(--font-content);
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.3);
}

/* Boot logo subtitle */
.boot-logo-text {
  font-family: var(--font-content);
  font-size: 11px;
  color: #ccddff;
}

/* Boot status text */
.boot-status {
  font-family: var(--font-content);
  font-size: 11px;
  color: white;
}

/* Click to start prompt */
.boot-click-prompt {
  font-family: var(--font-content);
  font-size: 13px;
  color: white;
  animation: blinkCursor 1s infinite;
  position: absolute;
  bottom: 20%;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Desktop fade in after boot */
.boot-fade-in {
  animation: bootFadeIn 0.5s ease-out;
}
