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

:root {
  --green: #00d26a;
  --cyan: #56c9cc;
  --magenta: #c678dd;
  --yellow: #e5c07b;
  --orange: #ff9e64;
  --blue: #61afef;
  --red: #e06c75;
  --dark: #0d1117;
  --bg: #1a1b26;
  --bar: #16161e;
  --surface: #1f2335;
  --border: #292e42;
  --text: #c0caf5;
  --muted: #565f89;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.terminal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  width: 100%;
  overflow: hidden;
}

/* Waybar-style top bar */
.bar {
  background: var(--bar);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.bar-left {
  display: flex;
  gap: 4px;
}

.workspace {
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.workspace:hover:not(.active) {
  color: var(--text);
  background: var(--border);
}

.workspace.active {
  background: var(--green);
  color: var(--bar);
  font-weight: 600;
}

.bar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.window-title {
  color: var(--muted);
  font-size: 12px;
}

.bar-right {
  display: flex;
  gap: 16px;
}

.bar-module {
  color: var(--text);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.indicator {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Terminal content */
.terminal-content {
  padding: 24px;
  height: 480px;
  overflow-y: auto;
}

/* View switching */
.view {
  display: none;
  min-height: 100%;
}

.view.active {
  display: flex;
  flex-direction: column;
}

/* Under construction */
.construction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.construction-ascii {
  color: var(--yellow);
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.construction-text {
  text-align: center;
}

.construction-title {
  display: block;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.construction-sub {
  color: var(--muted);
  font-size: 13px;
}

.prompt-line {
  font-size: 14px;
  margin-bottom: 16px;
}

.host { color: var(--green); font-weight: 600; }
.path { color: var(--blue); margin-left: 8px; }
.prompt { color: var(--magenta); margin: 0 8px; }
.cmd { color: var(--text); }

/* Neofetch output */
.fetch-output {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
  align-items: stretch;
}

.ascii {
  color: var(--green);
  font-size: 24px;
  line-height: 1.15;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 24px;
  border-right: 1px dashed var(--border);
}

.fetch-info {
  flex: 1;
  min-width: 0;
}

.fetch-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--green);
  object-fit: cover;
  flex-shrink: 0;
  filter: blur(10px);
  transition: filter 0.3s ease;
}

.avatar.loaded {
  filter: blur(0);
}

h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.tagline {
  font-size: 13px;
  color: var(--muted);
}

.tagline span {
  color: var(--green);
}

.fetch-info .bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.fetch-info .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fetch-info .stack span {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bar);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

/* Links section */
.links-section {
  flex: 1;
}

.links {
  display: flex;
  gap: 12px;
  padding-left: 0;
}

.links a {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.links a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.links a:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Cursor */
.cursor-line {
  margin-bottom: 0;
  margin-top: auto;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--text);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

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

/* Tools section (workspace 2) */
.tools-intro {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--surface);
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
}

.tools-intro p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tool-card:hover {
  border-color: var(--green);
  transform: translateX(4px);
}

.tool-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.tool-card:hover .tool-icon {
  color: var(--text);
}

.tool-icon svg {
  width: 24px;
  height: 24px;
}

.tool-info {
  flex: 1;
  min-width: 0;
}

.tool-name {
  display: block;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.tool-card:hover .tool-name {
  color: var(--green);
}

.tool-desc {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-tags span {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--bar);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
}

/* Blog list (workspace 3) */
.blog-list {
  margin-top: 16px;
  flex: 1;
}

.blog-entry {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-entry:hover {
  border-color: var(--green);
}

.blog-entry .date {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
  min-width: 80px;
}

.blog-entry .title {
  color: var(--blue);
  font-size: 14px;
  flex: 1;
}

.blog-entry:hover .title {
  color: var(--green);
}

.blog-entry .tags {
  display: flex;
  gap: 6px;
}

.blog-entry .tag {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--bar);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 0;
    align-items: stretch;
  }

  .terminal {
    max-width: none;
    height: 100vh;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .bar-center {
    display: none;
  }

  .terminal-content {
    padding: 16px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .view {
    min-height: auto;
  }

  .fetch-output {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .ascii {
    text-align: center;
    font-size: 9px;
  }

  .fetch-header {
    flex-direction: column;
    text-align: center;
  }

  .fetch-row {
    flex-direction: column;
    gap: 2px;
  }

  .label {
    min-width: auto;
  }

  .links {
    flex-direction: column;
  }

  .links a {
    text-align: center;
  }

  .prompt-line {
    font-size: 12px;
  }

  .blog-entry {
    flex-direction: column;
    gap: 8px;
  }

  .blog-entry .tags {
    order: -1;
  }

  .tool-card {
    flex-direction: column;
    gap: 10px;
  }

  .tool-icon {
    width: 24px;
    height: 24px;
  }

  .tool-icon svg {
    width: 20px;
    height: 20px;
  }
}
