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

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

:root {
  --bg: #0e1116;
  --fg: #c9d1d9;
  --prompt: #7ee787;
  --accent: #58a6ff;
  --muted: #6e7681;
  --error: #f85149;
  --warning: #d29922;
  --border: #30363d;
  --selection: #264f78;
  --bar: #3fb950;
  --bar-bg: #21262d;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
}

#terminal {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Title bar */
.title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--border);
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.title-bar-dots {
  display: flex;
  gap: 6px;
}

.title-bar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.title-bar-dot.red { background: #f85149; }
.title-bar-dot.yellow { background: #d29922; }
.title-bar-dot.green { background: #3fb950; }

.title-bar-text {
  flex: 1;
  text-align: center;
}

/* Terminal body */
.terminal-body {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 16px;
  flex: 1;
}

/* Output area */
#output {
  white-space: pre-wrap;
  word-wrap: break-word;
}

#output .line {
  margin-bottom: 2px;
}

/* Prompt styling */
.prompt-line {
  display: flex;
  align-items: center;
}

.prompt {
  color: var(--prompt);
  white-space: nowrap;
  flex-shrink: 0;
}

#input {
  background: none;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  outline: none;
  width: 100%;
  caret-color: var(--prompt);
}

/* Output types */
.output-prompt .prompt {
  color: var(--prompt);
}

.output-prompt .cmd {
  color: var(--fg);
}

.output-text {
  color: var(--fg);
}

.output-accent {
  color: var(--accent);
}

.output-muted {
  color: var(--muted);
}

.output-error {
  color: var(--error);
}

.output-warning {
  color: var(--warning);
}

.output-success {
  color: var(--prompt);
}

.output-link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.output-link:hover {
  text-decoration: underline;
}

/* ASCII art */
.ascii-art {
  color: var(--accent);
  line-height: 1.2;
  margin: 4px 0;
}

/* Skills bar chart */
.skill-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-name {
  width: 120px;
  text-align: right;
  color: var(--muted);
  flex-shrink: 0;
}

.skill-track {
  flex: 1;
  height: 14px;
  background: var(--bar-bg);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--bar);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.skill-level {
  width: 40px;
  color: var(--muted);
  font-size: 12px;
}

/* Neofetch card */
.neofetch {
  display: flex;
  gap: 24px;
  margin: 4px 0;
}

.neofetch-logo {
  color: var(--accent);
  line-height: 1.2;
  flex-shrink: 0;
}

.neofetch-info .label {
  color: var(--accent);
  font-weight: 700;
}

.neofetch-separator {
  color: var(--border);
}

.neofetch-colors {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.neofetch-color {
  width: 24px;
  height: 14px;
  border-radius: 2px;
}

/* Timeline */
.timeline-entry {
  padding-left: 20px;
  border-left: 2px solid var(--border);
  margin-bottom: 8px;
  position: relative;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  color: var(--muted);
  font-size: 12px;
}

.timeline-title {
  color: var(--fg);
  font-weight: 700;
}

.timeline-desc {
  color: var(--muted);
}

/* Mobile */
@media (max-width: 600px) {
  #terminal {
    padding: 8px;
  }

  .terminal-body {
    padding: 12px;
  }

  html, body {
    font-size: 12px;
  }

  .neofetch {
    flex-direction: column;
    gap: 12px;
  }

  .skill-name {
    width: 80px;
    font-size: 11px;
  }
}
