/* Essential UX Enhancements */

/* Welcome Guide */
.welcome-guide {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  animation: slideIn 0.5s ease;
}

.guide-header {
  color: #00ff00;
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 1.1em;
}

.step {
  margin: 8px 0;
  padding-left: 16px;
}

.cmd {
  background: rgba(0, 255, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  color: #00ff00;
  font-weight: bold;
}

.guide-tip {
  margin-top: 12px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Achievement System */
.achievement {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
  text-align: center;
  animation: bounce 0.6s ease;
}

.achievement-title {
  font-weight: bold;
  font-size: 1.2em;
}

.achievement-desc {
  font-size: 0.9em;
  margin-top: 4px;
}

/* Loading States */
.command-loading {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 255, 0, 0.3);
  border-top: 2px solid #00ff00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

/* Enhanced Mobile Keyboard */
.mobile-keyboard {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.mobile-keyboard.show {
  transform: translateY(0);
}

.keyboard-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: center;
}

.keyboard-row button {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
}

.keyboard-row button:hover {
  background: rgba(0, 255, 0, 0.2);
  transform: translateY(-2px);
}

.keyboard-row button.wide {
  flex: 1;
  max-width: 80px;
}

/* Progress Indicator */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #00ff00;
  transition: width 0.3s ease;
  z-index: 1001;
}

/* Quick Help */
.quick-help {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #00ff00;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.8em;
  max-width: 200px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.quick-help.show {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .terminal-container {
    height: calc(100vh - 200px);
  }
  
  .mobile-keyboard.show ~ .terminal-container {
    height: calc(100vh - 200px);
  }
  
  .welcome-guide {
    font-size: 0.9em;
    padding: 12px;
  }
}