/* Wiki shared styles — Dracula palette */

:root {
    color-scheme: dark;
    --bg:        #282a36;
    --current:   #44475a;
    --fg:        #f8f8f2;
    --comment:   #6272a4;
    --cyan:      #8be9fd;
    --green:     #50fa7b;
    --orange:    #ffb86c;
    --pink:      #ff79c6;
    --purple:    #bd93f9;
    --red:       #ff5555;
    --yellow:    #f1fa8c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 1.5rem;
    line-height: 1.55;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--fg);
}

main { max-width: 60rem; margin: 0 auto; }

nav.crumbs { margin-bottom: 1.5rem; font-size: 0.92rem; }
nav.crumbs a { color: var(--cyan); text-decoration: none; }
nav.crumbs a:hover { color: var(--green); }

h1 {
    color: var(--green);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}
h1 small {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--comment);
    letter-spacing: 0;
    margin-top: 0.25rem;
}

h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--purple);
    margin: 2.5rem 0 0.75rem;
    border-top: 1px solid var(--current);
    padding-top: 1.25rem;
}

h3 {
    color: var(--cyan);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

a { color: var(--cyan); }
a:hover { color: var(--green); }

p { margin: 0.6em 0; }
p.lead { color: var(--comment); margin-top: 0; }

ul { padding-left: 1.2rem; margin: 0.5rem 0; }
li { margin: 0.2rem 0; }

code, .mono {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    background: rgba(98,114,164,0.25);
    color: var(--yellow);
    padding: 0.05em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: 0.5rem 0;
}
td, th {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--current);
    vertical-align: top;
    text-align: left;
}
th { color: var(--comment); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
td:first-child:not(:only-child) { color: var(--comment); width: 12rem; }

/* Category sections on the overview */
section.category { margin: 1.5rem 0; }
section.category h2 { margin-top: 1.75rem; }
section.category ul.mods { columns: 2; column-gap: 1.5rem; padding-left: 1.2rem; }
@media (max-width: 640px) { section.category ul.mods { columns: 1; } }
section.category li { break-inside: avoid; }

/* Per-mod detail pages */
.version-banner {
    display: inline-block;
    background: rgba(189, 147, 249, 0.15);
    border: 1px solid var(--purple);
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: var(--purple);
    margin: 0.5rem 0 1rem;
    font-family: ui-monospace, monospace;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}
.gallery img, .gallery a img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--current);
    display: block;
}
.gallery .caption { font-size: 0.8rem; color: var(--comment); margin-top: 0.3rem; }

.videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.videos .vid {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--current);
}
.videos .vid iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.videos .meta { font-size: 0.85rem; color: var(--comment); margin-top: 0.3rem; }

.stub-notice {
    background: rgba(241, 250, 140, 0.08);
    border-left: 3px solid var(--yellow);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    color: var(--yellow);
    font-size: 0.9rem;
}

footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--comment);
    text-align: center;
    border-top: 1px solid var(--current);
    padding-top: 1.5rem;
}
