/* Fallout / Pip-Boy inspired 90s personal website */
/* Save as style.css */

:root {
  --bg: #081b0c;
  --panel: #0d2b13;
  --panel-dark: #061108;
  --line: #2aff7a;
  --text: #7dff9b;
  --text-dim: #4cae61;
  --highlight: #c2ffcb;
  --warning: #ffd15c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at center, rgba(42,255,122,0.08) 0%, rgba(42,255,122,0.02) 35%, rgba(0,0,0,0) 60%),
    linear-gradient(to bottom, rgba(42,255,122,0.03), rgba(0,0,0,0.04)),
    var(--bg);
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  line-height: 1.4;
  text-shadow: 0 0 4px rgba(42, 255, 122, 0.25);
}

/* Old monitor scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      rgba(0,0,0,0.00) 2px,
      rgba(0,0,0,0.00) 4px
    );
  opacity: 0.15;
  z-index: 999;
}

/* Slight screen flicker */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(42,255,122,0.02);
  animation: flicker 6s infinite;
  z-index: 998;
}

@keyframes flicker {
  0%, 100% { opacity: 0.10; }
  25% { opacity: 0.05; }
  50% { opacity: 0.12; }
  75% { opacity: 0.08; }
}

a {
  color: var(--highlight);
  text-decoration: none;
}

a:hover {
  color: var(--line);
  text-decoration: underline;
}

.page {
  max-width: 1000px;
  margin: 20px auto;
  padding: 16px;
  border: 2px solid var(--line);
  background: linear-gradient(to bottom, rgba(13,43,19,0.95), rgba(6,17,8,0.96));
  box-shadow:
    0 0 20px rgba(42,255,122,0.08),
    inset 0 0 30px rgba(42,255,122,0.03);
}

.header {
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.header h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.subtitle {
  color: var(--text-dim);
  margin-top: 6px;
  font-size: 16px;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  padding: 12px;
  margin-bottom: 16px;
}

.panel h2, .panel h3 {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

ul {
  padding-left: 20px;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.small {
  font-size: 14px;
  color: var(--text-dim);
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.button-link {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 6px 10px;
  margin: 4px 6px 4px 0;
  background: rgba(42,255,122,0.08);
  text-transform: uppercase;
}

.button-link:hover {
  background: rgba(42,255,122,0.18);
  text-decoration: none;
}

.footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 14px;
}

/* Pip-Boy navigation page */
.pipboy-shell {
  border: 3px solid var(--line);
  padding: 14px;
  background:
    radial-gradient(circle at top center, rgba(42,255,122,0.10), rgba(42,255,122,0.02) 40%, rgba(0,0,0,0) 70%),
    linear-gradient(to bottom, #102816, #081b0c);
  box-shadow:
    inset 0 0 50px rgba(42,255,122,0.05),
    0 0 25px rgba(42,255,122,0.10);
}

.pipboy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.pipboy-brand {
  font-size: 28px;
  letter-spacing: 3px;
}

.pipboy-status {
  text-align: right;
  font-size: 14px;
  color: var(--text-dim);
}

.pipboy-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pipboy-tab {
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: rgba(42,255,122,0.06);
  text-transform: uppercase;
}

.pipboy-tab.active,
.pipboy-tab:hover {
  background: rgba(42,255,122,0.18);
  color: var(--highlight);
  text-decoration: none;
}

.pipboy-screen {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.pipboy-main,
.pipboy-side {
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(0,0,0,0.18);
  min-height: 350px;
}

.vault-boy {
  font-size: 14px;
  color: var(--text-dim);
  white-space: pre;
  overflow-x: auto;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-list li {
  padding: 6px 0;
  border-bottom: 1px dotted rgba(42,255,122,0.4);
}

.tag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 2px 8px;
  margin: 2px 6px 2px 0;
  font-size: 14px;
  color: var(--highlight);
}

.update-entry {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dotted rgba(42,255,122,0.4);
}

.update-date {
  color: var(--warning);
  font-size: 15px;
}

.quote-box {
  border-left: 3px solid var(--line);
  padding-left: 10px;
  color: var(--highlight);
}

.marquee-box {
  border: 1px solid var(--line);
  padding: 8px;
  margin: 12px 0;
  background: rgba(42,255,122,0.05);
}

.code-block {
  background: rgba(0,0,0,0.25);
  border: 1px dashed var(--line);
  padding: 10px;
  white-space: pre-wrap;
  color: var(--highlight);
}

@media (max-width: 800px) {
  .grid-2,
  .grid-3,
  .pipboy-screen {
    grid-template-columns: 1fr;
  }

  .header h1 {
    font-size: 28px;
  }
}
