/* psych.iteffect.pl v2 — linux terminal look, responsive */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --blue: #336699;
  --blue-deep: #1c3a57;
  --blue-dark: #0a1420;
  --link: #bccbdc;
  --link-hover: #597795;
  --user: #ffff00;
  --at: #ff0000;
  --host: #00ffff;
  --dim: #8fa7bf;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono",
          "Roboto Mono", "DejaVu Sans Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
}

.screen {
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 12px 32px;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--link-hover); text-decoration: underline; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- banner (dawne logo.jpg) ---------- */

.banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--blue);
  border-bottom: 0;
  background:
    radial-gradient(120% 180% at 15% 0%, rgba(51,102,153,.55) 0%, transparent 55%),
    radial-gradient(90% 160% at 90% 100%, rgba(0,120,215,.35) 0%, transparent 60%),
    linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-deep) 55%, #10253c 100%);
  padding: 14px 16px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.banner pre {
  margin: 0;
  font-family: var(--mono);
}

.ascii {
  color: var(--fg);
  font-size: 13px;
  line-height: 1.15;
  text-shadow: 0 0 12px rgba(0,150,255,.8);
  flex-shrink: 0;
}

.ascii .star { color: var(--link); text-shadow: 0 0 8px #fff; }

.motd {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.4;
  opacity: .85;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- okno terminala ---------- */

.term {
  border: 1px solid var(--blue);
}

.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #3d76a8 0%, var(--blue) 60%, #2b5680 100%);
  padding: 3px 8px;
  font-size: 12px;
  user-select: none;
}

.term-title { color: var(--fg); }

.term-buttons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.tbtn {
  width: 14px;
  height: 12px;
  border: 1px solid #cfe0f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cfe0f0;
  font-size: 10px;
  line-height: 1;
}

.tbtn-min::after { content: ""; width: 6px; border-bottom: 1px solid #cfe0f0; margin-top: 5px; }
.tbtn-max::after { content: ""; width: 6px; height: 5px; border: 1px solid #cfe0f0; }

.term-body {
  padding: 15px 20px 20px;
  min-height: 340px;
}

.lastlogin { color: var(--dim); margin-bottom: 10px; }

.prompt-line { margin-bottom: 14px; word-break: break-all; }

.c-user { color: var(--user); }
.c-at   { color: var(--at); }
.c-host { color: var(--host); }
.c-path { color: var(--fg); }

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--fg);
  animation: blink 1.06s steps(1) infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

/* ---------- content ---------- */

.page { margin: 0; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 14px;
  margin: 0;
}

.facts dt { color: var(--dim); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.projects { margin: 0; padding-left: 1.4em; }
.projects li { margin-bottom: 10px; }

.bookmarks { margin: 0; padding: 0; list-style: none; }
.bookmarks li { overflow-wrap: anywhere; }
.bookmarks li::before { content: "-> "; color: var(--dim); }

/* ---------- nav + footer ---------- */

.term-nav {
  background: var(--blue);
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.9;
}

.term-nav a.active { color: var(--fg); }

.powered {
  margin-top: 12px;
  background: var(--blue);
  border: 1px solid var(--blue);
  text-align: center;
  padding: 3px 8px;
  font-size: 12px;
}

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  .screen { padding: 8px 6px 24px; }
  .motd { display: none; }
  .ascii { font-size: 11px; }
  .term-body { padding: 12px 12px 16px; min-height: 300px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { margin-top: 8px; }
  .facts dt:first-child { margin-top: 0; }
}

@media (max-width: 360px) {
  .ascii { font-size: 9px; }
}
