/* ================================
   Terminal Easter Egg Styles
   macOS-inspired terminal design
   ================================ */

#easter-terminal {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%) scale(0.95);
  width: 90%;
  max-width: 600px;
  max-height: 400px;
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  font-family: 'SF Mono', 'Fira Code', 'Monaco', monospace;
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid #333;
}

#easter-terminal.open {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Header */
.terminal-header {
  background: linear-gradient(180deg, #3a3a3a 0%, #2d2d2d 100%);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #1a1a1a;
  cursor: grab;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.2s;
}

.terminal-btn.close { background: #ff5f56; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #27c93f; }

.terminal-btn:hover { opacity: 0.8; }

.terminal-title {
  flex: 1;
  text-align: center;
  color: #999;
  font-size: 13px;
  font-weight: 500;
}

/* Body */
.terminal-body {
  padding: 1rem;
  height: 300px;
  display: flex;
  flex-direction: column;
  background: #1e1e1e;
}

.terminal-output {
  flex: 1;
  overflow-y: auto;
  color: #e0e0e0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.terminal-welcome {
  color: #4ec9b0;
  margin-bottom: 0.5rem;
}

.terminal-line {
  margin-bottom: 0.25rem;
}

.terminal-line.command {
  color: #569cd6;
}

.terminal-line.error {
  color: #f44747;
}

/* Input */
.terminal-input-line {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #333;
}

.terminal-prompt {
  color: #4ec9b0;
  font-weight: bold;
  margin-right: 0.5rem;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e0e0e0;
  font-family: inherit;
  font-size: inherit;
  caret-color: #4ec9b0;
}

.terminal-input::placeholder {
  color: #555;
}

/* Responsive */
@media (max-width: 600px) {
  #easter-terminal {
    width: 95%;
    bottom: 1rem;
    max-height: 350px;
  }
  
  .terminal-body {
    height: 250px;
    font-size: 13px;
  }
}

/* Hint for users - subtle indicator */
.terminal-hint {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.5;
  transition: opacity 0.3s;
  pointer-events: none;
}

.terminal-hint:hover {
  opacity: 1;
}

/* Hide hint when terminal is open */
#easter-terminal.open ~ .terminal-hint {
  opacity: 0;
}
