/* Master Theme & Dark Palette Setup */
body {
    background-color: #0b0f17; /* Deep midnight space background */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 25px 25px; /* Clean digital grid matrix background */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #e2e8f0; /* Crisp white-silver body text */
    line-height: 1.7;
}

/* Centralized Glassmorphism Panel Wrapper */
.wiki-container {
    max-width: 850px;
    margin: 60px auto;
    background: #131a26; /* Dark slate card surfaces matching game panels */
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid #1e293b;
}

/* Header & Meta Section */
.wiki-header {
    border-bottom: 2px solid #2563eb; /* Neon blueprint underline */
    padding-bottom: 20px;
    margin-bottom: 35px;
}

.wiki-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.wiki-header p {
    margin: 0;
    color: #94a3b8; /* Dimmed slate subtitle */
    font-size: 1.1rem;
}

/* Content Sections */
.wiki-section h2 {
    color: #38bdf8; /* Bright electric sky blue accents */
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

/* Hyperlink List Navigation - Main Directory Menu */
.wiki-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wiki-menu li {
    margin-bottom: 16px;
}

.wiki-menu a {
    display: block;
    padding: 18px 24px;
    background: #1e293b; /* Inset button panel */
    border: 1px solid #334155;
    border-radius: 10px;
    color: #38bdf8; /* Electric blue hyperlink text */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Interactive Neon Hover States */
.wiki-menu a:hover {
    background: #2563eb; /* Shifts to active dark blue */
    color: #ffffff; /* Text turns pure white */
    border-color: #60a5fa;
    transform: translateY(-2px); /* Snappy lift effect */
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Back Link Footer Button Styling */
.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #94a3b8;
    text-decoration: underline;
}

/* Mathematical Snippet Panels */
.math-block {
    background: #0f172a;
    border-left: 4px solid #ef4444; /* Crimson equation accent bar */
    padding: 18px;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-weight: 600;
    border-radius: 8px;
    margin: 20px 0;
    color: #f1f5f9;
}
