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

:root {
  --tv-blue: #0000aa;
  --tv-blue-light: #5555ff;
  --tv-cyan: #00aaaa;
  --tv-white: #ffffff;
  --tv-gray: #aaaaaa;
  --tv-yellow: #ffff55;
  --tv-black: #000000;
  --tv-green: #00aa00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1rem;
  background: var(--tv-cyan);
  background-image:
    linear-gradient(45deg, #009999 25%, transparent 25%),
    linear-gradient(-45deg, #009999 25%, transparent 25%);
  background-size: 4px 4px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: var(--tv-white);
  min-height: 100vh;
}

.desktop {
  max-width: 860px;
  margin: 0 auto;
}

.window {
  background: var(--tv-blue);
  border: 2px solid var(--tv-white);
  margin-bottom: 1.5rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}

.window-title {
  background: var(--tv-white);
  color: var(--tv-blue);
  text-align: center;
  font-weight: bold;
  padding: 0.15rem 0;
  position: relative;
}

.window-title::before { content: "[■] "; }
.window-title::after { content: " [↕][×]"; float: right; padding-right: 0.5rem; }
.window-title::after { position: absolute; right: 0.5rem; top: 0.15rem; }

.window-body {
  padding: 1.25rem 1.5rem;
  line-height: 1.6;
}

h1, h2 {
  margin-top: 0;
  color: var(--tv-yellow);
}

a { color: var(--tv-yellow); }
a:hover { color: var(--tv-white); background: var(--tv-blue-light); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.tag {
  background: var(--tv-cyan);
  color: var(--tv-black);
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--tv-black);
  font-size: 0.85rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.project-card {
  border: 1px solid var(--tv-white);
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
}

.project-card .thumb {
  width: 100%;
  height: auto;
  border: 1px solid var(--tv-black);
  display: block;
  margin-bottom: 0.5rem;
}
.project-card h3 { margin: 0 0 0.4rem; color: var(--tv-white); }
.project-card h3 a { text-decoration: none; }
.project-card p { margin: 0.4rem 0; font-size: 0.9rem; }
.lang { color: var(--tv-cyan); font-weight: bold; }

.timeline {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}
.timeline li { margin-bottom: 0.5rem; }
.timeline .role { color: var(--tv-yellow); font-weight: bold; }
.timeline .dates { color: var(--tv-gray); font-size: 0.85rem; }
.timeline .role-sub {
  font-size: 0.8rem;
  margin: 0.15rem 0 0 1rem;
}
.timeline .role-mgmt { color: var(--tv-cyan); font-weight: bold; }

.statusbar {
  background: var(--tv-gray);
  color: var(--tv-black);
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  border-radius: 0 0 2px 2px;
}

footer.window .window-body {
  text-align: center;
}
