/* =============================================================================
   Developer Console
   Quake-style drop-down terminal with CRT aesthetics
   ============================================================================= */

.console {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  z-index: 150;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.95);
  color: #33ff33;
  border-bottom: 2px solid #33ff33;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.4;
  transform: translateY(-100%);
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.console.open {
  transform: translateY(0);
}

/* CRT scanlines overlay */
.console::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 1;
}

/* Scrollable output area */
.console__output {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: #33ff33 rgba(10, 10, 10, 0.5);
}

.console__output::-webkit-scrollbar {
  width: 6px;
}

.console__output::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.5);
}

.console__output::-webkit-scrollbar-thumb {
  background-color: #33ff33;
  border-radius: 3px;
}

/* Output line types */
.console__line {
  margin: 0;
  padding: 1px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.console__line--command {
  color: #fff;
}

.console__line--command::before {
  content: '$ ';
  color: #33ff33;
}

.console__line--output {
  color: #ccc;
}

.console__line--error {
  color: #ff6b6b;
}

.console__line--accent {
  color: #33ff33;
}

.console__line--muted {
  color: #666;
}

/* Pre-wrapped block for file contents */
.console__block {
  margin: 4px 0;
  padding: 4px 0 4px 16px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #ccc;
}

/* Input line */
.console__input-line {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-top: 1px solid #333;
  flex-shrink: 0;
}

.console__prompt {
  color: #33ff33;
  margin-right: 8px;
  user-select: none;
}

.console__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #33ff33;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  caret-color: #33ff33;
  padding: 0;
}

.console__input::placeholder {
  color: #444;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .console {
    transition: none;
  }
}

/* Mobile: shorter console */
@media (max-width: 768px) {
  .console {
    height: 40vh;
    font-size: 13px;
  }

  .console__output {
    padding: 8px 12px;
  }

  .console__input-line {
    padding: 6px 12px;
  }
}
