/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Matrix Rain Canvas */
.matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

/* Terminal Container */
.loading-terminal {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 1rem;
  color: #00ffaa;
  text-align: left;
  z-index: 10;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #00ffaa;
  border-radius: 4px;
  min-width: 320px;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}

.terminal-header {
  color: #888;
  font-size: 0.75rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.loading-line {
  margin: 12px 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loading-line.visible {
  opacity: 1;
}

.line-text {
  flex-shrink: 0;
}

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

.progress-dots {
  color: #00ffaa;
  letter-spacing: 2px;
}

.progress-value {
  color: #fff;
  margin-left: 8px;
  min-width: 45px;
  text-align: right;
}

/* Prompt symbol */
.prompt {
  color: #00ffaa;
  margin-right: 8px;
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: #00ffaa;
  margin-left: 4px;
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

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

/* Final ready line */
.ready-line {
  color: #00ff00;
  margin-top: 20px;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 480px) {
  .loading-terminal {
    font-size: 0.85rem;
    min-width: 280px;
    padding: 15px;
  }
}
