
* {
    box-sizing: border-box;
}

:root {
    --wiki-bg: #0c080a;
    --wiki-panel: #160e11;
    --wiki-panel-hover: #211116;
    --wiki-red: #b94358;
    --wiki-red-light: #e06476;
    --wiki-text: #eee1e3;
    --wiki-muted: #a58b91;
    --wiki-border: rgba(177, 66, 84, .22);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wiki-bg);
    color: var(--wiki-text);
    font-family: Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.wiki-page {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(142, 32, 53, .23), transparent 55%),
        radial-gradient(ellipse at 0% 50%, rgba(83, 20, 34, .08), transparent 40%),
        var(--wiki-bg);
}

/* HEADER */

.wiki-header {
    position: relative;
    z-index: 5;
    min-height: 76px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--wiki-border);
    background: rgba(12, 8, 10, .92);
    backdrop-filter: blur(14px);
}

.wiki-back,
.wiki-version {
    color: #aa858c;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.3px;
    transition: .2s;
}

.wiki-back:hover {
    color: var(--wiki-red-light);
}

.wiki-logo {
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--wiki-text);
    text-align: center;
}

.wiki-logo span,
.wiki-hero h1 span {
    color: var(--wiki-red-light);
}

.wiki-logo small {
    display: block;
    margin-top: 4px;
    color: #98747b;
    font: bold 8px Arial;
    letter-spacing: 4px;
}

/* LANGUAGES */

.wiki-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wiki-languages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wiki-languages a {
    padding: 7px 9px;
    color: #987b81;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid transparent;
    transition: .2s;
}

.wiki-languages a:hover,
.wiki-languages a.active {
    color: #f0dadd;
    background: rgba(150, 35, 50, .2);
    border-color: rgba(180, 60, 75, .45);
}

/* HERO */

.wiki-hero {
    position: relative;
    padding: 95px 20px 85px;
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(125, 25, 43, .20), transparent 65%);
}

.wiki-eyebrow {
    color: #c45a6c;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.wiki-hero h1 {
    margin: 19px 0 12px;
    font-family: Georgia, serif;
    font-size: clamp(36px, 6vw, 68px);
    letter-spacing: 5px;
    text-shadow: 0 5px 35px rgba(190, 55, 75, .17);
}

.wiki-hero p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--wiki-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* SEARCH */

.wiki-search {
    display: flex;
    max-width: 570px;
    min-height: 56px;
    margin: 35px auto 0;
    overflow: hidden;
    border: 1px solid rgba(190, 70, 90, .4);
    background: rgba(25, 15, 18, .85);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    transition: .25s;
}

.wiki-search:focus-within {
    border-color: rgba(220, 85, 105, .8);
    box-shadow: 0 0 25px rgba(180, 45, 65, .13);
}

.wiki-search input {
    flex: 1;
    min-width: 0;
    padding: 16px 19px;
    color: white;
    background: transparent;
    border: 0;
    outline: none;
    font-size: 13px;
}

.wiki-search input::placeholder {
    color: #806970;
}

.wiki-search button {
    padding: 0 25px;
    color: #fff;
    background: linear-gradient(135deg, #963447, #67202f);
    border: 0;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.3px;
    transition: .2s;
}

.wiki-search button:hover {
    background: linear-gradient(135deg, #bd4b60, #842b3d);
}

/* MAIN */

.wiki-main {
    max-width: 1250px;
    margin: auto;
    padding: 30px 25px 85px;
}

.wiki-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 27px;
}

.wiki-section-heading h2 {
    margin: 0;
    color: #eee0e2;
    font-size: 15px;
    letter-spacing: 2px;
}

.wiki-section-heading p {
    margin: 7px 0 0;
    color: #927b80;
    font-size: 12px;
}

.wiki-section-heading > span {
    color: #c05265;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

/* CATEGORY GRID */

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.wiki-card {
    position: relative;
    display: block;
    min-height: 195px;
    padding: 25px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(36, 19, 25, .95), rgba(17, 11, 14, .98));
    border: 1px solid var(--wiki-border);
    border-left: 2px solid #702635;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.wiki-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(174, 47, 68, .13), transparent 70%);
    opacity: 0;
    transition: .3s;
    pointer-events: none;
}

.wiki-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #27141b, #180e12);
    border-color: rgba(195, 70, 90, .55);
    border-left-color: var(--wiki-red-light);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .24);
}

.wiki-card:hover::before {
    opacity: 1;
}

.wiki-card-icon {
    position: relative;
    font-size: 27px;
    margin-bottom: 17px;
    filter: drop-shadow(0 3px 8px rgba(190, 55, 75, .2));
}

.wiki-card h3 {
    position: relative;
    margin: 0 0 9px;
    color: #eee0e2;
    font-size: 15px;
    letter-spacing: .3px;
}

.wiki-card p {
    position: relative;
    min-height: 35px;
    margin: 0;
    color: #a28a90;
    font-size: 12px;
    line-height: 1.6;
}

.wiki-card-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid rgba(145, 55, 70, .22);
    color: #b44c60;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1.2px;
}

.wiki-arrow {
    font-size: 18px;
    transition: transform .2s;
}

.wiki-card:hover .wiki-arrow {
    transform: translateX(5px);
}

/* EMPTY SEARCH */

.wiki-empty {
    grid-column: 1 / -1;
    padding: 45px 25px;
    color: #a58d92;
    text-align: center;
    background: rgba(25, 15, 18, .85);
    border: 1px solid var(--wiki-border);
}

/* FOOTER */

.wiki-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 27px 6%;
    color: #806970;
    border-top: 1px solid var(--wiki-border);
    background: rgba(10, 7, 9, .65);
    font-size: 10px;
    letter-spacing: 1px;
}

.wiki-footer a {
    color: #bd5363;
    transition: .2s;
}

.wiki-footer a:hover {
    color: #ed8090;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .wiki-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wiki-hero {
        padding: 75px 20px;
    }
}

@media (max-width: 600px) {
    .wiki-header {
        min-height: 76px;
        height: auto;
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px;
    }

    .wiki-back,
    .wiki-version {
        font-size: 8px;
    }

    .wiki-logo {
        font-size: 19px;
    }

    .wiki-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .wiki-hero {
        padding: 60px 15px;
    }

    .wiki-hero h1 {
        letter-spacing: 2px;
    }

    .wiki-hero p {
        font-size: 12px;
    }

    .wiki-search {
        min-height: 50px;
    }

    .wiki-search input {
        padding: 13px;
        font-size: 12px;
    }

    .wiki-search button {
        padding: 0 14px;
        font-size: 9px;
    }

    .wiki-main {
        padding: 20px 15px 55px;
    }

    .wiki-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wiki-card {
        min-height: 175px;
        padding: 21px;
    }

    .wiki-footer {
        flex-direction: column;
        text-align: center;
        line-height: 1.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

.wiki-header {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center;
}

.wiki-back {
    justify-self: start;
}

.wiki-logo {
    grid-column: 1;
    justify-self: start;
}

.wiki-header-center {
    grid-column: 2;
    justify-self: center;
    white-space: nowrap;
}

.wiki-header-right {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.wiki-languages {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
}

.wiki-languages a {
    white-space: nowrap;
}

@media (max-width: 700px) {
    .wiki-header {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .wiki-header-right {
        width: 100%;
        justify-content: flex-end;
    }

    .wiki-header-center {
        order: 3;
        width: 100%;
        text-align: center;
    }
}


/* ARTICLE CONTENT */

.wiki-article-content {
    max-width: 950px;
    margin: 0 auto;
    padding: 35px;
    color: #cbb9bd;
    background: linear-gradient(135deg, #1b1014, #130c0f);
    border: 1px solid rgba(145, 55, 70, .27);
    border-left: 2px solid #9c354a;
    font-size: 14px;
    line-height: 1.85;
}

.wiki-article-content h2 {
    margin: 25px 0 12px;
    color: #edcbd1;
    font-family: Georgia, serif;
    font-size: 22px;
}

.wiki-article-content h2:first-child {
    margin-top: 0;
}

.wiki-article-content h3 {
    color: #d56b7d;
    font-size: 16px;
}

.wiki-article-content p {
    margin: 12px 0;
}

.wiki-article-content a {
    color: #e06a80;
    text-decoration: underline;
}

.wiki-article-content ul,
.wiki-article-content ol {
    padding-left: 25px;
}

.wiki-article-content li {
    margin: 7px 0;
}

.wiki-article-content table {
    width: 100%;
    margin: 22px 0;
    border-collapse: collapse;
    background: rgba(10, 7, 9, .4);
}

.wiki-article-content th,
.wiki-article-content td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid rgba(145, 55, 70, .25);
}

.wiki-article-content th {
    color: #f0cbd1;
    background: rgba(130, 35, 52, .25);
}

.wiki-article-content tr:hover td {
    background: rgba(150, 45, 65, .08);
}

.wiki-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border: 1px solid rgba(180, 65, 85, .35);
}

.wiki-article-navigation {
    max-width: 950px;
    margin: 22px auto 0;
}

.wiki-article-navigation a {
    display: inline-block;
    padding: 12px 20px;
    color: #e7cbd0;
    background: #211116;
    border: 1px solid rgba(180, 65, 85, .3);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: .2s;
}

.wiki-article-navigation a:hover {
    background: #76283a;
    border-color: #b94b60;
}

@media (max-width: 600px) {
    .wiki-article-content {
        padding: 20px;
        font-size: 13px;
    }

    .wiki-article-content th,
    .wiki-article-content td {
        padding: 9px;
    }
}
