@import url("https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "JetBrains Mono", monospace;
  background: #0d1117;
  color: #39ff14;
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
}

.terminal {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
  position: relative;
}

.terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 25% 25%,
      rgba(57, 255, 20, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(255, 107, 107, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.header {
  border-bottom: 2px solid #39ff14;
  padding-bottom: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.title {
  font-size: 1.4em;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 15px #39ff14;
  animation: glow 2s ease-in-out infinite alternate;
  font-family: "Courier Prime", monospace;
}

.subtitle {
  font-size: 0.9em;
  text-align: center;
  color: #ff6b6b;
  margin-top: 5px;
  text-shadow: 0 0 10px #ff6b6b;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #39ff14;
  }
  to {
    text-shadow: 0 0 25px #39ff14, 0 0 35px #39ff14;
  }
}

.output {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  font-size: 13px;
  white-space: pre-wrap;
  position: relative;
  z-index: 2;
}

.input-section {
  position: relative;
  z-index: 2;
}

.input-line {
  display: flex;
  align-items: center;
  margin-top: 15px;
  border-top: 1px solid #30363d;
  padding-top: 15px;
  gap: 10px;
}

.prompt {
  color: #ffd700;
  font-weight: 700;
  text-shadow: 0 0 8px #ffd700;
  flex-shrink: 0;
}

#command-input {
  background: transparent;
  border: none;
  color: #39ff14;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  flex: 1;
  caret-color: #39ff14;
  min-width: 0;
}

.enter-btn {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid #39ff14;
  color: #39ff14;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  flex-shrink: 0;
}

.enter-btn:hover {
  background: rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.enter-btn:active {
  transform: scale(0.95);
}

.cursor {
  animation: blink 1s infinite;
  color: #39ff14;
  flex-shrink: 0;
}

.command-suggestions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #21262d;
  display: none;
}

.suggestions-label {
  color: #8b949e;
  font-size: 11px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid #58a6ff;
  color: #58a6ff;
  border-radius: 12px;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.chip:hover {
  background: rgba(88, 166, 255, 0.2);
  box-shadow: 0 0 8px rgba(88, 166, 255, 0.3);
  transform: translateY(-1px);
}

.chip:active {
  transform: scale(0.95);
}

/* Show touch-friendly elements on touch devices */
@media (hover: none) and (pointer: coarse) {
  .enter-btn {
    display: block;
  }

  .command-suggestions {
    display: block;
  }

  .cursor {
    display: none;
  }
}

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

.command {
  color: #ffffff;
  font-weight: 500;
}

.highlight {
  color: #ffd700;
  font-weight: 700;
}

.error {
  color: #ff4444;
}

.success {
  color: #44ff44;
}

.info {
  color: #58a6ff;
}

.playdate {
  color: #ff6b6b;
  font-weight: 500;
}

.music {
  color: #4ecdc4;
  font-weight: 500;
}

.ascii-art {
  color: #ffd700;
  font-size: 11px;
  text-align: center;
  margin: 15px 0;
  font-family: "Courier Prime", monospace;
  text-shadow: 0 0 10px #ffd700;
}

.link {
  color: #58a6ff;
  text-decoration: underline;
  cursor: pointer;
}

.link:hover {
  color: #79c0ff;
  text-shadow: 0 0 5px #58a6ff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #161b22;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #39ff14;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #44ff44;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .terminal {
    padding: 15px;
  }

  .title {
    font-size: 1.1em;
  }

  .subtitle {
    font-size: 0.8em;
  }

  .output {
    font-size: 12px;
  }

  #command-input {
    font-size: 12px;
  }

  .ascii-art {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .terminal {
    padding: 10px;
  }

  .title {
    font-size: 1em;
  }

  .output {
    font-size: 11px;
  }

  .ascii-art {
    font-size: 8px;
  }
}
