/*
 * Icesus Wiki Theme — custom override for Vector skin
 * Copyright (c) 2025 Icesus MUD / Idles (icesus.org). All rights reserved.
 * Fingerprint: IC-ICESUS-WC-2025-a7f3e9b1d4c8
 */

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

/* Vector header strip — the white bars at the top */
#mw-page-base {
  background: #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 {
  background: #131629 !important;
  color: #c8cdd8 !important;
  border: 1px solid #1a3050 !important;
  border-radius: 6px;
}
div#content {
  background: #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 — all pages including Disclaimer etc. */
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 === */
.vectorTabs, .vectorTabs ul, .vectorTabs li {
  background: transparent !important;
  background-image: none !important;
}
.vectorTabs span { background-image: none !important; }
.vectorTabs { border-bottom: 1px solid #1a3050 !important; }
.vectorTabs li a { color: #8892a8 !important; }
.vectorTabs li.selected a, .vectorTabs li a:hover { color: #7dd3fc !important; }
.vectorTabs li.selected { border-bottom: 2px solid #7dd3fc; }

/* Vector menu dropdowns */
.vectorMenu .menu { background: #1a1e35 !important; border: 1px solid #2a2f4e !important; }
.vectorMenu li a { color: #8892a8 !important; }
.vectorMenu li a:hover { color: #7dd3fc !important; background: rgba(125,211,252,0.06) !important; }
.vectorMenu h3 span { background-image: none !important; }
.vectorMenu h3 span::after { filter: invert(0.6); }

/* Search box */
#simpleSearch, #searchInput {
  background: #0f1225 !important;
  border: 1px solid #2a2f4e !important;
  color: #c8cdd8 !important;
  border-radius: 4px;
}
#simpleSearch:focus-within, #searchInput: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;
  color: #c8cdd8 !important;
  border-color: #2a2f4e !important;
  border-collapse: collapse;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}
.wikitable th,
table.wikitable > tr > th,
table.wikitable > * > tr > th {
  background: #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 {
  border-color: #2a2f4e !important;
  padding: 6px 12px;
}
.wikitable tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.wikitable tr:hover td { background: rgba(125,211,252,0.05); }

/* === Code / commands === */
code, pre, .mw-code {
  background: #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 {
  background: #1a1e35 !important;
  border: 1px solid #2a2f4e !important;
  border-radius: 6px;
  padding: 12px 16px;
}
#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;
  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; }

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

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

/* === 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; }
}
