/*
 * Icesus Wiki Theme — custom override for Vector legacy skin (MW 1.42)
 * Copyright (c) 2025-2026 Icesus MUD / Idles (icesus.org). All rights reserved.
 */

/* === Base: dark background, light text === */
body {
  background-color: #0c0e1a !important;
  color: #c8cdd8 !important;
}

/* Vector header strip */
#mw-page-base {
  background: #0c0e1a !important;
  background-color: #0c0e1a !important;
  background-image: none !important;
}
#mw-head-base {
  background: #131629 !important;
  border-bottom: 1px solid #1a3050 !important;
  background-image: none !important;
}
#mw-head {
  background: transparent !important;
}

/* Site subtitle */
#siteSub, #contentSub, #contentSub2 {
  color: #5e6380 !important;
}

/* Personal tools bar */
#p-personal { color: #8892a8 !important; }
#p-personal li { color: #8892a8 !important; }
#p-personal ul li a { color: #8892a8 !important; }
#p-personal ul li a:hover { color: #7dd3fc !important; }

/* Main content panel */
#content,
#bodyContent,
.mw-body,
.mw-body-content,
.parsoid-body {
  background: #131629 !important;
  background-color: #131629 !important;
  color: #c8cdd8 !important;
  border: 1px solid #1a3050 !important;
  border-radius: 6px;
}
div#content {
  background: #131629 !important;
  background-color: #131629 !important;
}

/* Page title */
#firstHeading,
.mw-first-heading {
  color: #bae6fd !important;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(125,211,252,0.25);
  border-bottom: 1px solid rgba(125,211,252,0.15);
  padding-bottom: 8px;
}

/* Section headings */
h1, h2, h3, h4, h5, h6,
h1 .mw-headline, h2 .mw-headline, h3 .mw-headline,
h4 .mw-headline, h5 .mw-headline, h6 .mw-headline,
.mw-headline {
  color: #7dd3fc !important;
}
h2, h3, h4, h5, h6 {
  border-bottom-color: rgba(125,211,252,0.1) !important;
}
h3, h3 .mw-headline { color: #93c5fd !important; }
h4, h4 .mw-headline { color: #a5b4fc !important; }

.mw-editsection a { color: #5e6380 !important; }
.mw-editsection a:hover { color: #7dd3fc !important; }

/* Body text */
#mw-content-text,
.mw-parser-output,
.mw-body-content {
  color: #c8cdd8 !important;
  line-height: 1.7;
}

/* Links */
a, a:visited,
#mw-content-text a,
.mw-parser-output a {
  color: #7dd3fc !important;
  text-decoration: none;
}
a:hover,
#mw-content-text a:hover,
.mw-parser-output a:hover {
  color: #bae6fd !important;
  text-decoration: underline;
  text-decoration-color: rgba(125,211,252,0.4);
}
a.external { color: #93c5fd !important; }
a.external:hover { color: #bae6fd !important; }
a.new, #mw-content-text a.new { color: #f87171 !important; }
a.new:hover { color: #fca5a5 !important; }

/* === Sidebar === */
#mw-panel, #mw-navigation {
  background: transparent !important;
}
#mw-panel .portal .body {
  background: rgba(19,22,41,0.8) !important;
  border: 1px solid #1a2540 !important;
  border-radius: 4px;
}
#mw-panel .portal h3 {
  color: #5e6380 !important;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
#mw-panel .portal .body ul li a { color: #8892a8 !important; }
#mw-panel .portal .body ul li a:hover { color: #7dd3fc !important; }

/* === Top tabs (MW 1.42 uses .vector-menu classes) === */
.vectorTabs, .vectorTabs ul, .vectorTabs li,
.vector-menu-tabs, .vector-menu-tabs ul, .vector-menu-tabs li {
  background: transparent !important;
  background-image: none !important;
}
.vectorTabs span, .vector-menu-tabs span { background-image: none !important; }
.vectorTabs, .vector-menu-tabs { border-bottom: 1px solid #1a3050 !important; }
.vectorTabs li a, .vector-menu-tabs li a { color: #8892a8 !important; }
.vectorTabs li.selected a, .vectorTabs li a:hover,
.vector-menu-tabs li.selected a, .vector-menu-tabs li a:hover { color: #7dd3fc !important; }
.vectorTabs li.selected, .vector-menu-tabs li.selected { border-bottom: 2px solid #7dd3fc; }

/* Vector menu dropdowns (both old and new class names) */
.vectorMenu .menu,
.vector-menu-dropdown .vector-menu-content {
  background: #1a1e35 !important;
  background-color: #1a1e35 !important;
  border: 1px solid #2a2f4e !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}
.vectorMenu li a,
.vector-menu-dropdown li a {
  color: #8892a8 !important;
}
.vectorMenu li a:hover,
.vector-menu-dropdown li a:hover {
  color: #7dd3fc !important;
  background: rgba(125,211,252,0.06) !important;
}
.vectorMenu h3 span,
.vector-menu-dropdown h3 span { background-image: none !important; }
.vectorMenu h3 span::after,
.vector-menu-dropdown .vector-menu-heading::after { filter: invert(0.6); }

/* Search box */
#simpleSearch, #searchInput,
.vector-search-box-input {
  background: #0f1225 !important;
  background-color: #0f1225 !important;
  border: 1px solid #2a2f4e !important;
  color: #c8cdd8 !important;
  border-radius: 4px;
}
#simpleSearch:focus-within, #searchInput:focus,
.vector-search-box-input:focus {
  border-color: #4f6ef7 !important;
  box-shadow: 0 0 0 2px rgba(79,110,247,0.15);
}
#searchButton, #mw-searchButton { filter: invert(0.7); }

/* === Tables === */
table, .wikitable {
  background: #1a1e35 !important;
  background-color: #1a1e35 !important;
  color: #c8cdd8 !important;
  border-color: #2a2f4e !important;
  border-collapse: collapse;
  border-radius: 4px;
  overflow: hidden;
}
.wikitable th,
table.wikitable > tr > th,
table.wikitable > * > tr > th {
  background: #0f1225 !important;
  background-color: #0f1225 !important;
  color: #7dd3fc !important;
  border-color: #2a2f4e !important;
  font-weight: 600;
  padding: 8px 12px;
  text-align: left;
}
.wikitable td,
table.wikitable > tr > td,
table.wikitable > * > tr > td {
  background-color: #1a1e35 !important;
  color: #c8cdd8 !important;
  border-color: #2a2f4e !important;
  padding: 6px 12px;
}
.wikitable tr:nth-child(even) td { background: rgba(255,255,255,0.02) !important; }
.wikitable tr:hover td { background: rgba(125,211,252,0.05) !important; }

/* === Image thumbnails / figures === */
figure[typeof~='mw:File/Thumb'],
figure[typeof~='mw:File/Frame'],
.thumb,
.thumbinner {
  background-color: #1a1e35 !important;
  border-color: #2a2f4e !important;
}
figure[typeof~='mw:File/Thumb'] > figcaption,
figure[typeof~='mw:File/Frame'] > figcaption,
.thumbcaption {
  background-color: #1a1e35 !important;
  color: #8892a8 !important;
  border-color: #2a2f4e !important;
}
figure[typeof~='mw:File/Thumb'] > :not(figcaption) .mw-file-element,
figure[typeof~='mw:File/Frame'] > :not(figcaption) .mw-file-element {
  border-color: #2a2f4e !important;
  background: #131629 !important;
}
.thumbborder {
  border-color: #2a2f4e !important;
}

/* === Code / commands === */
code, pre, .mw-code {
  background: #0f1225 !important;
  background-color: #0f1225 !important;
  color: #5eead4 !important;
  border: 1px solid #2a2f4e !important;
  border-radius: 3px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}
code { padding: 1px 5px; font-size: 0.9em; }
pre, .mw-code { padding: 12px 16px; }
.mw-parser-output code {
  color: #5eead4 !important;
  background: rgba(94,234,212,0.08) !important;
  border: 1px solid rgba(94,234,212,0.15) !important;
}

/* === Table of Contents === */
#toc, .toc, .toccolours {
  background: #1a1e35 !important;
  background-color: #1a1e35 !important;
  border: 1px solid #2a2f4e !important;
  border-radius: 6px;
  padding: 12px 16px;
  color: #c8cdd8 !important;
}
#toc .toctitle, .toc .toctitle { color: #7dd3fc !important; font-weight: 600; }
#toc ul a, .toc ul a { color: #8892a8 !important; }
#toc ul a:hover, .toc ul a:hover { color: #7dd3fc !important; }
.tocnumber { color: #5e6380 !important; }

/* === Footer === */
#footer, #footer-info, #footer-places {
  color: #5e6380 !important;
  border-top-color: #1a3050 !important;
}
#footer a { color: #5e6380 !important; }
#footer a:hover { color: #7dd3fc !important; }
#footer-icons { opacity: 0.4; }

/* === Categories === */
#catlinks {
  background: #1a1e35 !important;
  background-color: #1a1e35 !important;
  border: 1px solid #2a2f4e !important;
  border-radius: 4px;
  color: #5e6380 !important;
}
#catlinks a { color: #8892a8 !important; }

/* === Lists === */
.mw-parser-output ul, .mw-parser-output ol { color: #c8cdd8; }
.mw-parser-output li { margin-bottom: 4px; }
.mw-parser-output b, .mw-parser-output strong { color: #eef0f6; }

/* === Printfooter === */
.printfooter { color: #5e6380 !important; }

/* === User message === */
.usermessage {
  background-color: #1a2540 !important;
  border-color: #2a4060 !important;
  color: #c8cdd8 !important;
}

/* === Message boxes === */
.mw-message-box, .warningbox, .errorbox, .successbox {
  background: #1a1e35 !important;
  border-color: #2a2f4e !important;
  color: #c8cdd8 !important;
}

/* === Forms / inputs (login, search, edit) === */
input, textarea, select {
  background-color: #0f1225 !important;
  color: #c8cdd8 !important;
  border: 1px solid #2a2f4e !important;
  border-radius: 3px;
}
input:focus, textarea:focus, select:focus {
  border-color: #4f6ef7 !important;
  outline: none;
}
input[type="submit"], input[type="button"], button,
.mw-ui-button {
  background-color: #1a2540 !important;
  color: #7dd3fc !important;
  border-color: #2a4060 !important;
  cursor: pointer;
}
input[type="submit"]:hover, input[type="button"]:hover, button:hover,
.mw-ui-button:hover {
  background-color: #1f3055 !important;
  color: #bae6fd !important;
}
.mw-ui-progressive {
  background-color: #1a3060 !important;
  color: #7dd3fc !important;
}

/* === Diff view === */
.diff-context { color: #c8cdd8 !important; }
.diff-addedline { background-color: rgba(34,197,94,0.1) !important; }
.diff-deletedline { background-color: rgba(239,68,68,0.1) !important; }
.diffchange { color: #fbbf24 !important; }
td.diff-marker { color: #5e6380 !important; }

/* === Special pages === */
.mw-datatable td, .mw-datatable th,
.TablePager td, .TablePager th {
  background-color: #1a1e35 !important;
  color: #c8cdd8 !important;
  border-color: #2a2f4e !important;
}
.mw-datatable tr:hover td,
.TablePager tr:hover td {
  background-color: rgba(125,211,252,0.05) !important;
}

/* === Fieldset / legend === */
fieldset {
  border-color: #2a2f4e !important;
}
legend {
  color: #7dd3fc !important;
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a2f4e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3f5e; }

/* === Responsive === */
@media (max-width: 640px) {
  #content { border-radius: 0; border-left: 0 !important; border-right: 0 !important; }
  .wikitable { font-size: 13px; }
  .wikitable th, .wikitable td { padding: 5px 8px; }
}
