:root {
    --bg-main: #18151abd;
    --bg-sidebar: #211c24;
    --bg-content: #2b252f;
    --bg-infobox: #3a323f;
    --bg-infobox-header: #4a3e4d;
    --text-main: #F9F6F0;
    --text-muted: #bdaebf;
    --accent-color: #d1b5dd;
    --border-color: rgba(249, 246, 240, 0.12);
    --sidebar-width: 260px;
    --error-color: #ff5577;
}

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

html, body {
    min-height: 100vh;
    background-color: var(--bg-main);
    font-family: 'Rubik', system-ui, sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 75px, #362d39 75px, #362d39 77px),
        repeating-linear-gradient(-45deg, transparent, transparent 75px, #362d39 75px, #362d39 77px),
        linear-gradient(45deg, #1f251a 25%, transparent 25%, transparent 75%, #1f251a 75%),
        linear-gradient(-45deg, #1f251a 25%, transparent 25%, transparent 75%, #1f251a 75%);
    background-size: 150px 150px;
    background-position: 0 0, 0 0, 75px 0, 75px 0;
    opacity: 0.18;
    animation: scroll-pattern 25s linear infinite;
}

@keyframes scroll-pattern {
    0% { background-position: 0 0, 0 0, 75px 0, 75px 0; }
    100% { background-position: 150px 150px, 150px 150px, 225px 150px, 225px 150px; }
}

.gospel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    opacity: 0.08;
    transform: rotate(0.5deg) scale(1.05);
    pointer-events: none;
}

.gospel-track {
    display: flex;
    flex-direction: column;
    animation: scroll-down 65s linear infinite;
}

.gospel-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 60px;
}

.gospel-content p {
    font-size: 1.4rem;
    font-family: 'Georgia', serif;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 15px auto;
    color: var(--text-main);
    font-style: italic;
}

@keyframes scroll-down {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4rem;
    background-color: rgba(33, 28, 36, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-logo {
    font-family: 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.wiki-frame-wrapper {
    display: flex;
    position: relative;
    min-height: calc(100vh - 70px);
    width: 100%;
}

.wiki-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 25px 0;
    overflow-y: auto;
    z-index: 20;
}

.wiki-sidebar-title {
    font-family: 'Rubik', serif;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-color);
}

.wiki-nav-group {
    margin-top: 20px;
}

.wiki-nav-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    padding: 0 20px 8px 20px;
}

.wiki-nav-list {
    list-style: none;
}

.wiki-nav-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wiki-nav-link:hover, .wiki-nav-link.is-active {
    background-color: rgba(209, 181, 221, 0.08);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.wiki-main-container {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 40px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.wiki-article {
    max-width: 1000px;
    width: 100%;
    background-color: rgba(43, 37, 47, 0.95);
    backdrop-filter: blur(4px);
    padding: 35px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.wiki-article-title {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.wiki-article-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.wiki-article p {
    line-height: 1.7;
    margin-bottom: 18px;
    color: #e5dfd8;
    font-size: 1.02rem;
}

.wiki-article h2 {
    font-family: 'Rubik', serif;
    font-size: 1.5rem;
    margin: 30px 0 12px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    color: var(--accent-color);
}

.infobox {
    float: right;
    width: 310px;
    background-color: var(--bg-infobox);
    border: 1px solid var(--border-color);
    padding: 14px;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.infobox-title {
    text-align: center;
    font-family: 'Rubik', serif;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: var(--bg-infobox-header);
    padding: 8px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.infobox-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.infobox-section-header {
    background-color: var(--bg-infobox-header);
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 14px 0 8px 0;
    color: var(--accent-color);
}

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

.infobox-data-label {
    font-weight: bold;
    padding: 7px 6px;
    color: var(--text-muted);
    width: 45%;
    vertical-align: top;
    font-size: 0.85rem;
}

.infobox-data-value {
    padding: 7px 6px;
    vertical-align: top;
    font-size: 0.85rem;
}

.clear-fix {
    clear: both;
}

.wiki-error-container {
    text-align: center;
    padding: 50px 20px;
}

.wiki-error-title {
    font-family: 'Rubik', serif;
    color: var(--error-color);
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.wiki-error-msg {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.contact-alert-bar {
    width: 100%;
    background-color: var(--bg-content);
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4rem;
    font-family: 'Rubik', system-ui, sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 90;
    position: relative;

    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
}

.contact-alert-bar.show {
    max-height: 60px; 
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 1;
}

.contact-alert-bar a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 600;
}

.contact-alert-bar a:hover {
    color: var(--text-main);
}

.close-alert-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}
.close-alert-btn:hover {
    color: var(--text-main);
}