/* DOS/BBS Terminal Theme — 1992-1994 era
   Simulates a text-mode BBS reader / FIDO-NET interface */

body {
  margin: 0;
  padding: 0;
  background: #000;
  min-height: 100vh;
  font-size: 16px;
  font-family: monospace;
  color: #aaa;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

*, *::before, *::after {
  -webkit-font-smoothing: none !important;
  -moz-osx-font-smoothing: unset !important;
}

/* The terminal frame */
.dos-frame {
  max-width: 860px;
  margin: 0 auto;
  background: #000010;
  min-height: 100vh;
  border-left: 2px solid #333;
  border-right: 2px solid #333;
}

/* Top status bar — blue background like DOS menus */
.dos-menubar {
  background: #0000aa;
  color: #fff;
  padding: 0;
  display: flex;
  font-size: 16px;
  line-height: 1;
  user-select: none;
}
.dos-menubar span {
  padding: 2px 8px;
  cursor: default;
}
.dos-menubar span:first-child {
  background: #00aa00;
  color: #000;
  font-weight: bold;
}
.dos-menubar span:hover {
  background: #000;
  color: #0f0;
}
.dos-menubar .dos-menu-right {
  margin-left: auto;
}

/* Main content area */
.dos-viewport {
  padding: 8px 16px 16px;
  color: #aaa;
  line-height: 1.6;
}

/* Header / Title area */
.dos-header {
  border-bottom: 1px solid #555;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.dos-header h1 {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  font-family: inherit;
}
.dos-header p {
  color: #0aa;
  font-size: 16px;
  margin: 4px 0 0;
}

/* BBS-style list */
.dos-list {
  border: 1px solid #555;
  background: #000;
}
.dos-list-header {
  background: #0000aa;
  color: #ff0;
  padding: 2px 8px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
}
.dos-list-header span:last-child {
  margin-left: auto;
}
.dos-item {
  display: block;
  text-decoration: none;
  color: #aaa;
  padding: 1px 8px;
  border-bottom: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
}
.dos-item:nth-child(odd) {
  background: #000010;
}
.dos-item:nth-child(even) {
  background: #000;
}
.dos-item:hover {
  background: #0000aa;
  color: #fff;
}
.dos-item-header {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.dos-item-num {
  color: #ff0;
  min-width: 3em;
  text-align: right;
}
.dos-item-title {
  color: #0ff;
  flex: 1;
}
.dos-item:hover .dos-item-title {
  color: #fff;
}
.dos-item-date {
  color: #0a0;
  font-size: 15px;
  margin-left: auto;
}
.dos-item-count {
  color: #888;
  font-size: 15px;
}
.dos-item-preview {
  color: #666;
  padding-left: 4em;
  font-size: 15px;
}
.dos-item:hover .dos-item-preview {
  color: #aaa;
}

/* Section headers (category names) */
.dos-section {
  margin-bottom: 12px;
}
.dos-section-title {
  background: #0000aa;
  color: #ff0;
  padding: 2px 8px;
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}
.dos-section-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dos-section-list li {
  padding: 1px 8px;
  font-size: 16px;
  break-inside: avoid;
}
.dos-section-list li:nth-child(odd) {
  background: #000010;
}
.dos-section-list a {
  color: #0ff;
  text-decoration: none;
}
.dos-section-list a:hover {
  color: #fff;
  background: #0000aa;
}
.dos-section-list a:visited {
  color: #a0a;
}

/* Article display */
.dos-article {
  line-height: 1.7;
}
.dos-article h1 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px double #555;
  font-family: inherit;
}
.dos-article-subtitle {
  color: #0aa;
  font-size: 15px;
  margin: -2px 0 4px;
}
.dos-article-author {
  color: #0a0;
  font-size: 15px;
  margin: 0 0 8px;
}
.dos-article p {
  margin: 0.5em 0;
  color: #aaa;
}
.dos-article img {
  max-width: 100%;
  height: auto;
  border: 1px solid #555;
  margin: 4px 0;
  display: block;
}
.dos-article strong, .dos-article b {
  color: #fff;
}
.dos-article a {
  color: #0ff;
}
.dos-article a:hover {
  color: #fff;
}
.dos-article a:visited {
  color: #a0a;
}
.dos-article table {
  border-collapse: collapse;
  margin: 6px 0;
}
.dos-article td, .dos-article th {
  border: 1px solid #555;
  padding: 2px 6px;
  color: #aaa;
}
.dos-article th {
  background: #0000aa;
  color: #ff0;
}

/* Sub-page tabs */
.dos-tabs {
  margin-top: 8px;
  padding: 0;
  display: flex;
  list-style: none;
  gap: 0;
}
.dos-tabs li {
  background: #333;
  padding: 2px 12px;
  border: 1px solid #555;
  border-bottom: none;
  font-size: 15px;
}
.dos-tabs li[aria-selected="true"] {
  background: #0000aa;
  color: #fff;
}
.dos-tabs a {
  color: #0ff;
  text-decoration: none;
}

/* Bottom status / nav */
.dos-statusbar {
  background: #0000aa;
  color: #fff;
  padding: 2px 8px;
  font-size: 15px;
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.dos-statusbar a {
  color: #ff0;
  text-decoration: none;
}
.dos-statusbar a:hover {
  color: #fff;
}

.dos-nav {
  border-top: 1px solid #555;
  margin-top: 12px;
  padding-top: 6px;
  font-size: 15px;
  text-align: center;
  color: #888;
}
.dos-nav a {
  color: #0ff;
  text-decoration: none;
}
.dos-nav a:hover {
  color: #fff;
}

/* Hotkey hints */
.dos-hotkeys {
  background: #0000aa;
  color: #aaa;
  padding: 2px 8px;
  font-size: 15px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.dos-hotkeys kbd {
  color: #fff;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}
.dos-hotkeys a {
  color: #fff;
  text-decoration: none;
}
.dos-hotkeys a:hover {
  text-decoration: underline;
}

.dos-statusbar {
  background: #000;
  color: #555;
  padding: 2px 8px;
  font-size: 12px;
  border-top: 1px solid #333;
}
.dos-statusbar a { color: #0aa; text-decoration: none; }
.dos-statusbar a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 600px) {
  .dos-frame { border: none; }
  .dos-viewport { padding: 4px 8px 8px; }
  .dos-section-list { columns: 1; }
}
