/* Darkmatter Marketplace - Wikipedia Style CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Linux Libertine', Georgia, 'Times New Roman', serif;
    background: #f6f6f6;
    color: #202122;
    line-height: 1.7;
    font-size: 16px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #a2a9b1;
    padding: 15px 30px;
}

.header h1 {
    font-size: 1.6em;
    font-weight: normal;
}

.header-nav {
    margin-top: 10px;
    font-size: 0.9em;
}

.header-nav a {
    color: #0645ad;
    text-decoration: none;
    margin-right: 20px;
}

.header-nav a:hover {
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85em;
    color: #54595d;
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: #0645ad;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Layout */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    display: flex;
    gap: 0;
}

.sidebar {
    width: 220px;
    background: #f8f9fa;
    border-right: 1px solid #a2a9b1;
    padding: 20px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    padding: 30px 40px;
    max-width: 900px;
}

/* Sidebar TOC */
.toc {
    background: white;
    border: 1px solid #a2a9b1;
    padding: 15px;
    margin-bottom: 20px;
}

.toc-title {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin: 6px 0;
    font-size: 0.9em;
}

.toc a {
    color: #0645ad;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

.toc .toc-level-1 {
    font-weight: bold;
}

.toc .toc-level-2 {
    padding-left: 15px;
}

/* Navigation box */
.nav-box {
    margin-bottom: 20px;
}

.nav-box h3 {
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #54595d;
}

.nav-box ul {
    list-style: none;
}

.nav-box li {
    margin: 6px 0;
}

.nav-box a {
    color: #0645ad;
    text-decoration: none;
    font-size: 0.9em;
}

.nav-box a:hover {
    text-decoration: underline;
}

/* Main content typography */
h1 {
    font-size: 2.2em;
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 8px;
    margin-bottom: 25px;
}

h2 {
    font-size: 1.8em;
    font-weight: normal;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 6px;
    margin-top: 40px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.4em;
    font-weight: normal;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Lead paragraph */
.lead {
    font-size: 1.05em;
    margin-bottom: 25px;
}

.lead strong {
    font-weight: bold;
}

/* Content blocks */
.content-block {
    margin-bottom: 30px;
    font-size: 1.05em;
    line-height: 1.8;
}

.content-block p {
    margin-bottom: 18px;
}

/* Links */
a {
    color: #0645ad;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #0b0080;
}

/* Infobox */
.infobox {
    float: right;
    width: 280px;
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    margin: 0 0 20px 20px;
    font-size: 0.9em;
}

.infobox-title {
    background: #eaecf0;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #a2a9b1;
}

.infobox-image {
    width: 100%;
    height: 200px;
    background: #eaecf0;
    border-bottom: 1px solid #a2a9b1;
}

.infobox table {
    width: 100%;
    border-collapse: collapse;
}

.infobox th,
.infobox td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eaecf0;
}

.infobox th {
    font-weight: bold;
    width: 40%;
    background: #f8f9fa;
}

.infobox td {
    background: white;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
}

th,
td {
    border: 1px solid #a2a9b1;
    padding: 10px 12px;
    text-align: left;
}

th {
    background: #eaecf0;
    font-weight: bold;
}

tr:nth-child(even) {
    background: #f8f9fa;
}

/* Lists */
ul,
ol {
    margin: 15px 0 15px 25px;
}

li {
    margin: 8px 0;
}

/* Blockquotes */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid #a2a9b1;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

/* Info boxes */
.info-section {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 25px;
    margin: 30px 0;
}

.info-section h3 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
}

.note-box {
    background: #eef6ff;
    border: 1px solid #a8d4ff;
    border-left: 4px solid #36c;
    padding: 15px 20px;
    margin: 20px 0;
}

.warning-box {
    background: #fef6e7;
    border: 1px solid #fc3;
    border-left: 4px solid #fc3;
    padding: 15px 20px;
    margin: 20px 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    width: 100%;
    max-width: 700px;
    height: 350px;
    background: #eaecf0;
    margin: 25px 0;
    border: 1px solid #a2a9b1;
}

.image-caption {
    font-size: 0.9em;
    color: #54595d;
    margin-top: 8px;
    font-style: italic;
}

/* External links section */
.external-links {
    margin-top: 40px;
}

.external-links h2 {
    font-size: 1.5em;
}

.external-links ul {
    list-style: none;
    margin-left: 0;
}

.external-links li {
    margin: 10px 0;
}

.external-links a:before {
    content: "→ ";
    color: #0645ad;
}

/* References */
.references {
    margin-top: 40px;
    font-size: 0.9em;
}

.references h2 {
    font-size: 1.5em;
}

.references ol {
    margin-left: 20px;
}

.references li {
    margin: 10px 0;
}

.ref-link {
    font-size: 0.8em;
    vertical-align: super;
    color: #0645ad;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #a2a9b1;
    padding: 25px 30px;
    margin-top: 50px;
    text-align: center;
    font-size: 0.9em;
    color: #54595d;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #0645ad;
    margin: 0 10px;
}

/* Category links */
.category-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #a2a9b1;
    font-size: 0.9em;
}

.category-links strong {
    margin-right: 10px;
}

.category-links a {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #a2a9b1;
    }
    
    .infobox {
        float: none;
        width: 100%;
        margin: 20px 0;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
}
