/* BIOS Loading Screen Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'VT323', monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  cursor: default;
  transition: background-color 0.6s ease, color 0.6s ease;
}

body.theme-transitioning {
  transition: background-color 1.2s ease, color 1.2s ease;
}

.bios-container {
  padding: 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  pointer-events: auto;
}

.bios-header {
  margin-bottom: 30px;
}

.bios-title {
  font-size: 24px;
  color: var(--text-primary);
  font-weight: normal;
  margin-bottom: 10px;
  text-align: center;
  animation: flicker 2s infinite;
  transition: color 0.6s ease;
  text-shadow: var(--text-shadow);
}

.bios-separator {
  color: var(--text-primary);
  font-size: 16px;
  text-align: center;
  opacity: 0.7;
  transition: color 0.6s ease;
}

.loading-content {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 80px;
  max-height: 50vh;
  padding: 0 60px;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
  align-content: start;
  z-index: 1;
  pointer-events: auto;
}

.loading-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.loading-item.active {
  opacity: 1;
  transform: translateX(0);
}

.loading-text {
  color: var(--text-primary);
  font-size: 18px;
  transition: color 0.6s ease;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.progress-blocks {
  display: flex;
  gap: 2px;
}

.block {
  width: 12px;
  height: 12px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: inline-block;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.block.filled {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 5px var(--glow-color);
  animation: blockFill 0.3s ease;
}

.percentage {
  color: var(--text-primary);
  font-size: 16px;
  min-width: 40px;
  transition: color 0.6s ease;
}

.status {
  color: var(--text-secondary);
  font-size: 14px;
  min-width: 80px;
  transition: color 0.6s ease;
}

.status.loading {
  color: var(--accent-secondary);
  animation: pulse 1s infinite;
}

.status.done {
  color: var(--accent-primary);
  font-weight: bold;
}

.motivational-text {
  position: absolute;
  bottom: 50px;
  left: 30px;
  text-align: left;
  color: var(--text-secondary);
  font-size: 16px;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  max-width: 280px;
  transition: color 0.6s ease;
}

.lets-go-btn {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: 'VT323', monospace;
  font-size: 24px;
  padding: 15px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: buttonGlow 2s infinite;
  z-index: 1000;
  pointer-events: auto;
}

.lets-go-btn:hover {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--glow-color);
}

.bios-footer {
  position: absolute;
  bottom: 10px;
  right: 20px;
}

.cursor {
  color: var(--text-primary);
  font-size: 20px;
  animation: blink 1s infinite;
  transition: color 0.6s ease;
}

/* Animations */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes blockFill {
  from {
    background-color: inherit;
    box-shadow: none;
  }
  to {
    background-color: inherit;
    box-shadow: inherit;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes buttonGlow {
  0%, 100% {
    box-shadow: 0 0 5px currentColor;
  }
  50% {
    box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
  }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .bios-title {
    font-size: 20px;
  }

  .loading-text {
    font-size: 16px;
  }

  .loading-content {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 30px;
    max-width: 100%;
    max-height: 45vh;
  }

  .lets-go-btn {
    font-size: 20px;
    padding: 12px 30px;
  }

  .block {
    width: 10px;
    height: 10px;
  }

  .motivational-text {
    left: 20px;
    bottom: 60px;
    font-size: 14px;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .bios-container {
    padding: 15px;
  }

  .loading-content {
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 0 15px;
    max-width: 100%;
  }

  .progress-container {
    margin-left: 10px;
  }

  .lets-go-btn {
    font-size: 18px;
    padding: 10px 25px;
  }

  .motivational-text {
    left: 10px;
    bottom: 40px;
    font-size: 12px;
    max-width: 200px;
  }

  .loading-text {
    font-size: 14px;
  }
}
