/* ============================================
   jasonhall.net — Retro 2003 Style, 2026 Build
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&family=Press+Start+2P&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  background: #06060f;
  color: #c0c0d8;
  font-size: 13px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ---- Scanlines ---- */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.12) 2px,
    rgba(0,0,0,0.12) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ---- Chrome bar ---- */
.chrome-bar {
  background: #111128;
  border-bottom: 2px solid #3a3a88;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #5555aa;
  position: sticky;
  top: 0;
  z-index: 100;
}

.chrome-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.chrome-r { background: #bb3333; }
.chrome-y { background: #bbaa33; }
.chrome-g { background: #33bb33; }

.chrome-url {
  background: #0a0a22;
  border: 1px solid #2a2a66;
  padding: 2px 10px;
  flex: 1;
  color: #7788cc;
  font-size: 10px;
  border-radius: 2px;
}

.chrome-compat {
  font-size: 9px;
  color: #333355;
  white-space: nowrap;
}

/* ---- Ticker ---- */
.ticker-wrap {
  background: #09091e;
  border-top: 1px solid #2a2a55;
  border-bottom: 1px solid #2a2a55;
  overflow: hidden;
  white-space: nowrap;
  padding: 4px 0;
}

.ticker-inner {
  display: inline-block;
  animation: ticker 35s linear infinite;
  font-size: 10px;
  color: #4455aa;
  padding-left: 100%;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- 3-column layout ---- */
.layout {
  display: grid;
  grid-template-columns: 168px 1fr 148px;
  min-height: calc(100vh - 120px);
  border-top: 1px solid #2a2a55;
}

/* ---- Sidebars ---- */
.sidebar-left,
.sidebar-right {
  background: #0b0b1e;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-color: #252550;
}

.sidebar-left  { border-right: 1px solid #252550; }
.sidebar-right { border-left:  1px solid #252550; }

/* ---- Box components ---- */
.box-title {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #9999ee;
  background: #14143a;
  border: 1px solid #3a3a88;
  padding: 2px 6px;
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.box-body {
  border: 1px solid #252550;
  background: #07071a;
  padding: 8px;
  font-size: 11px;
  color: #9999bb;
  line-height: 1.65;
}

/* ---- Nav links ---- */
.nav-box { padding: 4px 0; }

.nav-link {
  display: block;
  padding: 3px 6px;
  color: #7799ee;
  text-decoration: none;
  font-size: 11px;
  border-left: 2px solid transparent;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.nav-link::before { content: "» "; color: #4455aa; }
.nav-link:hover {
  color: #ffffff;
  border-left-color: #9999ff;
  background: #14143a;
}

/* ---- Who Am I ---- */
.who-line { margin-bottom: 3px; font-size: 11px; }
.pixel-hr { border: none; border-top: 1px dashed #222244; margin: 6px 0; }
.inline-link { color: #7799ee; font-size: 10px; text-decoration: none; }
.inline-link:hover { color: #aabbff; text-decoration: underline; }

/* ---- Now Playing ---- */
.np-source { color: #444466; font-size: 9px; margin-bottom: 3px; }
.np-track   { color: #9999ee; font-size: 11px; margin-bottom: 2px; }
.np-format  { font-size: 9px; color: #444466; }

/* ---- Status ---- */
.status-row    { font-size: 11px; color: #33cc66; margin-bottom: 4px; }
.status-subrow { font-size: 10px; color: #336644; }
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 4px #00ff88;
  margin-right: 5px;
  vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.35; } }

/* ---- 88×31 badges ---- */
.badge-stack { display: flex; flex-direction: column; gap: 4px; }
.badge88 {
  font-family: 'VT323', monospace;
  font-size: 12px;
  text-align: center;
  padding: 4px 5px;
  border: 1px solid;
  line-height: 1.3;
}
.badge-linux    { background: #0d0d2a; border-color: #3333aa; color: #6677cc; }
.badge-selfhost { background: #001408; border-color: #004422; color: #33aa55; }
.badge-c64      { background: #1a0800; border-color: #663300; color: #cc7700; }
.badge-fhir     { background: #080022; border-color: #440088; color: #9944cc; }

/* ---- Main content ---- */
.main-content {
  padding: 18px 20px;
  background: #08081a;
}

/* ---- Hero ---- */
.hero-section {
  background: #0b0b28;
  border: 1px solid #3a3a88;
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
  position: relative;
}

.hero-corner {
  position: absolute;
  top: 5px; right: 8px;
  font-size: 10px;
  color: #2a2a55;
}

.hero-title-text {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 2vw, 20px);
  color: #aaaaff;
  text-shadow: 2px 2px 0 #000033;
  margin-bottom: 8px;
  line-height: 1.5;
}

.hero-subtitle {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: #7777bb;
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 11px;
  color: #8888aa;
  max-width: 600px;
  margin: 0 auto 12px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 10px;
}

.tag {
  font-size: 9px;
  padding: 2px 8px;
  border: 1px solid #3a3a88;
  color: #7788cc;
  background: #0f0f3a;
}

.visitor-row {
  font-size: 10px;
  color: #444466;
}

.visitor-count {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #00ff88;
  text-shadow: 0 0 5px #00ff88;
  margin: 0 3px;
}

/* ---- Section headings ---- */
.section-title {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #9999ee;
  border-bottom: 1px solid #252550;
  margin-bottom: 12px;
  padding-bottom: 3px;
}

.subsection-title {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #7777bb;
  margin-bottom: 6px;
  border-bottom: 1px dashed #1a1a44;
  padding-bottom: 2px;
}

/* ---- Dividers ---- */
.pixel-divider {
  border: none;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    #252550 0px, #252550 4px,
    transparent 4px, transparent 8px
  );
  margin: 16px 0;
}

/* ---- Body paragraphs ---- */
.body-para {
  font-size: 12px;
  color: #aaaacc;
  line-height: 1.75;
  margin-bottom: 10px;
}
.body-para strong { color: #ccccff; }

/* ---- Fun fact box ---- */
.fun-fact-box {
  border: 1px solid #2a3a5a;
  background: #080818;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-left: 3px solid #4444aa;
}
.fun-fact-label {
  display: block;
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #6677cc;
  margin-bottom: 4px;
}
.fun-fact-box p { font-size: 11px; color: #8888aa; line-height: 1.6; }

/* ---- Skills grid ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.skill-card {
  border: 1px solid #252550;
  background: #0b0b22;
  padding: 6px 8px;
  font-size: 10px;
  color: #8899cc;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.skill-card:hover { background: #14143a; border-color: #4444aa; color: #aabbff; }

/* ---- Two column ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---- Retro list ---- */
.retro-list {
  list-style: none;
  padding: 0;
}
.retro-list li {
  font-size: 11px;
  color: #8899bb;
  padding: 2px 0;
  border-bottom: 1px dashed #111133;
}
.retro-list li::before { content: "» "; color: #4455aa; }

/* ---- Retro button ---- */
.retro-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  padding: 5px 12px;
  background: #0b0b22;
  border: 1px solid #4444aa;
  color: #8899dd;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}
.retro-btn:hover { background: #14143a; color: #aabbff; border-color: #7788cc; }
.small-btn { font-size: 10px; padding: 3px 8px; }

/* ---- Projects grid ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.project-card {
  border: 1px solid #252550;
  background: #0b0b22;
  padding: 12px;
}

.featured-card {
  border-color: #4444aa;
  background: #0d0d28;
  grid-column: span 2;
}

.project-date  { font-size: 9px; color: #444466; margin-bottom: 4px; }
.project-name  { font-family: 'VT323', monospace; font-size: 18px; color: #9999ee; margin-bottom: 6px; }
.project-desc  { font-size: 11px; color: #8888aa; line-height: 1.6; margin-bottom: 8px; }

.project-tags  { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.project-tags span {
  font-size: 9px;
  padding: 1px 6px;
  border: 1px solid #2a2a66;
  color: #6677aa;
  background: #08081a;
}

/* ---- C64 Banner ---- */
.c64-banner {
  background: #0000aa;
  color: #8888ff;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 2px solid #0000cc;
  font-family: 'VT323', monospace;
  text-align: center;
}

.c64-banner-text {
  font-size: 28px;
  color: #aaaaff;
  letter-spacing: 4px;
  text-shadow: 2px 2px 0 #000066;
}

.c64-banner-sub {
  font-size: 16px;
  color: #7777cc;
  margin-top: 2px;
}

.c64-cursor-line { margin-top: 6px; }
.c64-cursor { font-size: 18px; color: #aaaaff; }

/* ---- Code block ---- */
.code-block {
  background: #04040e;
  border: 1px solid #2a2a55;
  border-left: 3px solid #5555cc;
  padding: 12px;
  margin: 12px 0;
  overflow-x: auto;
}

.code-title {
  font-size: 11px;
  color: #555577;
  margin-bottom: 8px;
}

.code-block pre {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #8888ee;
  line-height: 1.7;
  white-space: pre;
}

/* ---- Retro note ---- */
.retro-note {
  font-size: 11px;
  color: #7788aa;
  border: 1px dashed #2a2a55;
  padding: 8px 10px;
  margin: 10px 0;
  background: #08080e;
}

/* ---- Resource grid ---- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 5px;
  margin-top: 6px;
}

.resource-link {
  display: block;
  padding: 4px 8px;
  font-size: 10px;
  color: #7799ee;
  background: #0b0b22;
  border: 1px solid #2a2a55;
  text-decoration: none;
  text-align: center;
  transition: background 0.1s, border-color 0.1s;
}
.resource-link:hover { background: #14143a; border-color: #4455aa; color: #aabbff; }

/* ---- Hobbies grid ---- */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.hobby-card {
  border: 1px solid #252550;
  background: #0b0b22;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.hobby-card:hover { background: #111133; border-color: #4444aa; }
.hobby-icon { font-size: 24px; margin-bottom: 6px; }
.hobby-name { font-family: 'VT323', monospace; font-size: 16px; color: #9999ee; margin-bottom: 4px; }
.hobby-desc { font-size: 10px; color: #7777aa; line-height: 1.5; margin-bottom: 6px; }
.hobby-link { font-size: 9px; color: #5566aa; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.contact-item {
  border: 1px solid #252550;
  background: #0b0b22;
  padding: 8px 10px;
}

.contact-label { display: block; font-size: 9px; color: #555577; margin-bottom: 3px; }
.contact-value { display: block; font-size: 12px; color: #8899ee; text-decoration: none; }
a.contact-value:hover { color: #aabbff; }

/* ---- Guestbook ---- */
.guestbook-entries { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }

.gb-entry {
  border: 1px solid #1a1a3a;
  background: #09091e;
  padding: 8px 10px;
}

.gb-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.gb-name   { font-size: 12px; color: #7799ee; }
.gb-date   { font-size: 9px; color: #333355; }
.gb-msg    { font-size: 11px; color: #8888aa; }

.gb-sign-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.gb-note { font-size: 10px; color: #444466; }

/* ---- Right sidebar specifics ---- */
.counter-box {
  text-align: center;
  border: 1px solid #252550;
  background: #07071a;
  padding: 10px 8px;
}

.counter-label    { font-size: 9px; color: #444466; text-transform: uppercase; margin-bottom: 4px; }
.counter-sublabel { font-size: 9px; color: #333355; margin-top: 4px; }
.counter-digits   {
  font-family: 'VT323', monospace;
  font-size: 30px;
  color: #00ff88;
  text-shadow: 0 0 6px #00ff88;
  letter-spacing: 2px;
}

.weather-box { text-align: center; }
.wx-loc    { font-size: 9px; color: #444466; margin-bottom: 3px; }
.wx-temp   { font-family: 'VT323', monospace; font-size: 30px; color: #ffaa44; }
.wx-desc   { font-size: 10px; color: #888; margin-bottom: 4px; }
.wx-modern { font-size: 9px; color: #444455; border: 1px solid #2a2a44; padding: 1px 6px; display: inline-block; margin-top: 2px; }

.news-item    { padding: 5px 0; border-bottom: 1px dashed #111133; }
.news-date    { font-family: 'VT323', monospace; font-size: 13px; color: #555577; }
.news-text    { font-size: 10px; color: #7788aa; line-height: 1.5; }

.stack-item   { margin-bottom: 6px; }
.stack-label  { font-size: 9px; color: #666688; display: block; margin-bottom: 2px; }
.stack-bar    { background: #0b0b22; border: 1px solid #252550; height: 7px; }
.stack-fill   {
  height: 100%;
  background: #3a3a99;
  background-image: repeating-linear-gradient(
    90deg, transparent, transparent 3px, rgba(255,255,255,0.08) 3px, rgba(255,255,255,0.08) 4px
  );
}

.friend-link {
  display: block;
  padding: 3px 6px;
  font-size: 10px;
  color: #7788cc;
  background: #0b0b22;
  border: 1px solid #1a1a3a;
  text-decoration: none;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.1s, color 0.1s;
}
.friend-link:hover { background: #14143a; color: #aabbff; border-color: #4455aa; }

/* ---- Footer ---- */
.site-footer {
  background: #0b0b1e;
  border-top: 2px solid #3a3a88;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-links a {
  color: #5566aa;
  text-decoration: none;
  margin-right: 12px;
  font-size: 10px;
}
.footer-links a:hover { color: #8899dd; }

.footer-copy { color: #333355; font-size: 9px; }

/* ---- Modals ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,10,0.88);
  z-index: 1000;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0d0d28;
  border: 2px solid #4444aa;
  padding: 24px 28px;
  z-index: 1001;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  font-family: 'Share Tech Mono', monospace;
}

.modal.active, .modal-overlay.active { display: block; }

.modal-close {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  background: transparent;
  border: 1px solid #4444aa;
  color: #7788cc;
  padding: 3px 10px;
  cursor: pointer;
  float: right;
  margin-bottom: 12px;
}
.modal-close:hover { background: #14143a; color: #aabbff; }

.modal-h2 {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #9999ee;
  margin-bottom: 12px;
  clear: both;
  border-bottom: 1px solid #2a2a55;
  padding-bottom: 4px;
}

.modal-h4 {
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: #7777bb;
  margin: 12px 0 6px;
}

.modal p {
  font-size: 12px;
  color: #9999bb;
  margin-bottom: 10px;
  line-height: 1.7;
}

.modal-list {
  list-style: none;
  margin-bottom: 10px;
}
.modal-list li {
  font-size: 11px;
  color: #8888aa;
  padding: 2px 0;
}
.modal-list li::before { content: "» "; color: #4455aa; }

/* ---- Blink animation ---- */
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{ opacity:1; } 50%{ opacity:0; } }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #06060f; }
::-webkit-scrollbar-thumb { background: #2a2a66; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4444aa; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .sidebar-left  { border-right: none; border-bottom: 1px solid #252550; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .sidebar-right { border-left: none;  border-top:    1px solid #252550; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .sidebar-left > *, .sidebar-right > * { flex: 1 1 160px; }
  .featured-card { grid-column: span 1; }
  .two-col { grid-template-columns: 1fr; }
  .chrome-compat { display: none; }
}
