/* ABOUTME: Claude Code-style terminal CSS */
/* ABOUTME: Window chrome, borders, and dark terminal aesthetic */

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

html, body {
  height: 100%;
  background: #1a1a1a;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* Centering container */
.terminal-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 20px;
}

/* Terminal window */
.terminal {
  width: 100%;
  max-width: 800px;
  background: #0d0d0d;
  border-radius: 10px;
  border: 1px solid #333;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* Title bar */
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: default;
}

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

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #666;
  font-size: 13px;
}

/* Header with path and nav */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #222;
}

.path {
  color: #888;
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.nav a:hover {
  color: #fff;
}

/* Terminal body */
.terminal-body {
  position: relative;
  padding: 20px;
  min-height: 400px;
  max-height: 70vh;
  overflow-y: auto;
  color: #c0c0c0;
}

/* Help button */
.help-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: #2d2d2d;
  border: 1px solid #444;
  border-radius: 6px;
  color: #888;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-btn:hover {
  background: #3d3d3d;
  border-color: #7c3aed;
  color: #7c3aed;
}

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

.terminal-body::-webkit-scrollbar-track {
  background: #1a1a1a;
}

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

.terminal-body::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Output area */
.output {
  margin-bottom: 16px;
}

.line {
  margin-bottom: 2px;
}

/* Input line */
.input-line {
  display: flex;
  align-items: center;
  padding-top: 8px;
}

.prompt {
  color: #7c3aed;
  margin-right: 10px;
  font-weight: 500;
}

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

/* Boot sequence */
.boot {
  color: #666;
}

.boot .ok {
  color: #27ca40;
}

/* ASCII art */
.ascii {
  color: #7c3aed;
  white-space: pre;
  font-size: 10px;
  line-height: 1.15;
  margin: 16px 0;
}

/* Tagline */
.tagline {
  color: #999;
  margin: 16px 0 8px 0;
}

/* Links */
a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Help output */
.cmd {
  color: #27ca40;
  display: inline-block;
  width: 120px;
}

.desc {
  color: #888;
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.help-col {
  min-width: 0;
}

/* Posts list */
.post-row {
  display: flex;
  gap: 16px;
  margin: 4px 0;
}

.post-id {
  color: #f59e0b;
  width: 30px;
}

.post-date {
  color: #666;
  width: 90px;
}

.post-title {
  color: #c0c0c0;
}

/* Social */
.social-row {
  margin: 6px 0;
}

.social-icon {
  color: #666;
  display: inline-block;
  width: 24px;
}

/* Highlight */
.hl {
  color: #fff;
}

/* Error */
.err {
  color: #ef4444;
}

/* Success/OK */
.ok {
  color: #27ca40;
}

/* Info */
.info {
  color: #60a5fa;
}

/* Claude purple accent */
.accent {
  color: #7c3aed;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #1e1e1e;
  border-top: 1px solid #333;
  font-size: 11px;
  color: #666;
}

.footer-time {
  color: #888;
}

.footer-built {
  color: #666;
}

.footer-built a {
  color: #7c3aed;
  text-decoration: none;
}

.footer-built a:hover {
  text-decoration: underline;
}

/* Tags */
.tag {
  display: inline-block;
  background: #2d2d2d;
  color: #7c3aed;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 6px;
}

.tag-inline {
  color: #666;
  font-size: 12px;
  margin-left: 8px;
}

.tag-list {
  margin: 8px 0;
}

/* Divider */
.divider {
  color: #333;
  display: block;
  margin: 8px 0;
}

/* Back link */
.back-link {
  display: inline-block;
  color: #7c3aed;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid #7c3aed;
  border-radius: 4px;
  margin-top: 16px;
  transition: all 0.2s;
}

.back-link:hover {
  background: #7c3aed;
  color: #fff;
  text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .terminal-wrapper {
    padding: 20px 10px;
  }

  .terminal {
    border-radius: 8px;
  }

  .header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .ascii {
    font-size: 6px;
  }

  .cmd {
    width: 90px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }
}
