/* ============================================================
   theme98.css  —  Windows 98 skin for dolteddown.com
   Loaded AFTER shared.css on index/blog/music/admin only.
   Overrides the neon/glass theme with the classic 98.css look.
   (Other pages — learn/sandbox/edit-index — are untouched.)
   ============================================================ */

@import url("https://unpkg.com/98.css");

:root {
  --desktop: #008080;       /* classic teal desktop */
  --silver: #c0c0c0;
  --navy: #000080;
}

/* ---- Kill the neon/glass base from shared.css ---- */
body::before,
body::after { content: none !important; display: none !important; }

html, body { min-height: 100%; }
body {
  background: var(--desktop) !important;
  color: #222 !important;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif !important;
  -webkit-font-smoothing: none;
  font-smooth: never;
  font-size: 12px !important;
  line-height: 1.4 !important;
  overflow-x: hidden;
}

a { color: var(--navy); text-decoration: underline; }
a:hover { color: #1818c0; }
::selection { background: var(--navy); color: #fff; }

/* ---- Raised / sunken helpers (98.css bevels) ---- */
.raised {
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
              inset -2px -2px grey, inset 2px 2px #dfdfdf;
}
.sunken {
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey,
              inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}

/* ============================================================
   NAV  ->  classic menu bar
   ============================================================ */
.nav {
  display: flex; align-items: center; gap: 0;
  background: var(--silver) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border: none;
  box-shadow: inset 0 -1px #808080, inset 0 -2px #fff;
  padding: 2px 4px;
  position: sticky; top: 0; z-index: 50;
}
.nav a {
  color: #222 !important;
  opacity: 1 !important;
  text-decoration: none;
  font-size: 12px; font-weight: normal;
  padding: 3px 10px;
  background: none !important;
  -webkit-background-clip: border-box !important; background-clip: border-box !important;
}
.nav a:hover { background: var(--navy) !important; color: #fff !important; }
.nav .brand {
  font-weight: bold;
  color: #222 !important;
  -webkit-text-fill-color: #222;
  text-transform: none;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
}
.nav .brand::before { /* real Win98 floppy-disk icon */
  content: "";
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  background: url("/icons98/floppy_drive_3_5-0.png") no-repeat center / contain;
}
.nav .spacer { flex: 1; }
.nav .auth-state {
  font-size: 11px; letter-spacing: 0; text-transform: none;
  color: #222 !important;
  background: var(--silver) !important;
  border: none; border-radius: 0;
  padding: 2px 8px;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey,
              inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}
.nav .auth-state:empty { display: none; }

/* ============================================================
   LAYOUT  ->  windows on the desktop
   ============================================================ */
.container {
  max-width: 820px;
  margin: 24px auto;
  padding: 0 16px 60px;
}

/* A 98.css .window inherits its own styling; just space them out */
.window { margin-bottom: 16px; }
.window-body { font-size: 12px; line-height: 1.5; }

/* Headings: flat, bold, no gradients */
h1, h2, h3 {
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif !important;
  font-weight: bold !important;
  letter-spacing: 0 !important;
  color: #222 !important;
  background: none !important;
  -webkit-text-fill-color: #222;
  -webkit-background-clip: border-box !important; background-clip: border-box !important;
  filter: none !important;
  line-height: 1.3 !important;
}
h1 { font-size: 20px !important; margin-bottom: 8px !important; }
h2 { font-size: 15px !important; margin-bottom: 6px !important; }
h3 { font-size: 13px !important; margin-bottom: 4px !important; }
p  { margin-bottom: 10px; }

/* ============================================================
   BUTTONS  ->  classic gray buttons (covers <a class=btn> too)
   ============================================================ */
.btn {
  display: inline-block;
  box-sizing: border-box;
  background: var(--silver) !important;
  color: #222 !important;
  border: none !important;
  border-radius: 0 !important;
  min-width: 80px;
  padding: 5px 14px;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif !important;
  font-size: 12px; font-weight: normal; letter-spacing: 0;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transform: none !important;
  filter: none !important;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
              inset -2px -2px grey, inset 2px 2px #dfdfdf !important;
}
.btn:hover { background: var(--silver) !important; text-decoration: none; }
.btn:active,
.btn:focus:active {
  box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a,
              inset -2px -2px #dfdfdf, inset 2px 2px grey !important;
  padding: 6px 13px 4px 15px;
}
.btn:disabled { opacity: 1; color: grey !important; text-shadow: 1px 1px #fff; cursor: default; }
.btn.danger,
.btn.secondary { background: var(--silver) !important; color: #222 !important; box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf !important; }
.btn.danger::before { /* real Win98 warning icon */
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 5px;
  vertical-align: -2px;
  background: url("/icons98/msg_warning-0.png") no-repeat center / contain;
}

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: 12px; text-transform: none; letter-spacing: 0;
  opacity: 1; color: #222; margin-bottom: 4px; font-weight: normal;
}
.input, textarea, input[type="file"] {
  width: 100%;
  background: #fff !important;
  color: #222 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 6px !important;
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif !important;
  font-size: 12px !important;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey,
              inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a !important;
}
input[type="file"] { background: var(--silver) !important; box-shadow: none !important; padding: 2px !important; }
textarea { min-height: 220px; resize: vertical; line-height: 1.5; }
.input:focus, textarea:focus {
  outline: 1px dotted #222; outline-offset: -4px;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey,
              inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a !important;
}

/* ============================================================
   CARDS  ->  raised silver panels
   ============================================================ */
.card {
  background: var(--silver) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 14px !important;
  margin-bottom: 14px;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  transform: none !important;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff,
              inset -2px -2px grey, inset 2px 2px #dfdfdf !important;
}
.card.muted { opacity: 1; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .spacer { flex: 1; }

.muted   { opacity: 1; color: #444; font-size: 12px; }
.error   { color: #a00000; font-size: 12px; }
.success { color: #006000; font-size: 12px; }

.empty {
  text-align: center; padding: 40px 20px; opacity: 1; color: #444;
  font-style: normal; font-size: 12px;
  background: #fff;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey,
              inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}

/* ============================================================
   MUSIC TRACKS  ->  sunken list rows
   ============================================================ */
.track-list { display: flex; flex-direction: column; gap: 10px; }
.track {
  background: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey,
              inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a !important;
}
.track::before { content: none !important; }
.track:hover { background: #fff !important; }
.track .title {
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif !important;
  font-weight: bold; font-size: 13px; margin-bottom: 2px; color: #222;
}
.track .meta { font-size: 11px; color: #555; opacity: 1; margin-bottom: 10px; letter-spacing: 0; }
.track audio { width: 100%; height: 32px; }

/* ============================================================
   BLOG POSTS  ->  sunken clickable rows
   ============================================================ */
.post-list { display: flex; flex-direction: column; gap: 8px; }
.post-item {
  background: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
  transform: none !important;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey,
              inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a !important;
}
.post-item:hover { background: #efefef !important; transform: none !important; }
.post-item .title {
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif !important;
  font-weight: bold; font-size: 14px; margin-bottom: 2px;
  letter-spacing: 0; color: var(--navy);
}
.post-item .meta { font-size: 11px; color: #555; opacity: 1; text-transform: none; letter-spacing: 0; }
.post-item a { color: inherit; text-decoration: none; display: block; }

.post-body {
  white-space: pre-wrap; word-wrap: break-word;
  line-height: 1.6; font-size: 13px; color: #222;
  background: #fff; padding: 12px;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey,
              inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}

/* ============================================================
   CONTROL GLYPHS  ->  Win98-style vector arrows / check
   Drawn shapes (not bitmaps) — Windows 98 rendered scrollbar /
   spin / menu indicators as vector control glyphs, not icons.
   Color follows currentColor so they inherit the control's text.
   ============================================================ */
.w98 {
  display: inline-block;
  width: 0; height: 0;
  vertical-align: middle;
}
.w98.up    { border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; }
.w98.down  { border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.w98.right { border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; }
.w98.check {
  width: 4px; height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  vertical-align: 1px;
  margin: 0 2px;
}

.hidden { display: none !important; }
