/* Wiki - KitsuMC */
.wiki-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 5% 6rem;
    flex-wrap: wrap;
    background: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.wiki-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 5rem;
    height: fit-content;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 0.8rem 1rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    border: 1.5px solid var(--border-subtle);
    transition: border-color 0.3s;
}

.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,140,26,0.1); }

.search-box i { color: var(--accent); margin-right: 10px; }

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.wiki-menu h3 {
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    font-family: var(--font-mc);
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.wiki-menu ul { list-style: none; }
.wiki-menu li { margin-bottom: 0.2rem; }

.wiki-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s var(--ease-smooth);
}

.wiki-menu a:hover,
.wiki-menu li.active a {
    background: rgba(255,140,26,0.1);
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.wiki-menu i { width: 20px; text-align: center; margin-right: 8px; opacity: 0.7; }

.wiki-content { flex: 1; min-width: 300px; }

.content-wrapper {
    background: var(--card-bg);
    border: 1.5px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 30px rgba(255,140,26,0.05);
    transition: opacity 0.3s ease-in-out;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.wiki-content h2 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--text-primary); font-family: var(--font-mc); }
.wiki-content h3 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--accent); font-family: var(--font-mc); }

.meta-info { font-size: 0.8rem; color: var(--text-dim); opacity: 0.6; margin-bottom: 1.5rem; }

hr { border: none; height: 1px; background: var(--border-subtle); margin: 1.5rem 0; }

.wiki-content p { color: var(--text-dim); margin-bottom: 1.5rem; line-height: 1.7; }

.info-alert {
    background: rgba(255,140,26,0.08);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(255,140,26,0.05);
}

.info-alert i { color: var(--accent); font-size: 1.5rem; }
.info-alert p { margin: 0; color: var(--text-primary); }

.feature-list { margin-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-dim); }

.feature-list li {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
    border-radius: 0 4px 4px 0;
}

.feature-list strong { color: var(--text-primary); font-weight: 700; }

.wiki-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem; }

.wiki-table th, .wiki-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.wiki-table th {
    background: rgba(255,140,26,0.06);
    color: var(--accent);
    font-family: var(--font-mc);
}

.wiki-table code {
    background: rgba(255,140,26,0.08);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    color: var(--accent-secondary);
    border: 1px solid var(--border-subtle);
}

.wiki-table tr:hover { background: rgba(255,140,26,0.03); }

.wiki-img { width: 100%; border-radius: 16px; margin-top: 2rem; border: 1.5px solid var(--border-subtle); opacity: 0.85; filter: saturate(1.2) hue-rotate(310deg); }

#wiki-display { transition: opacity 0.3s ease-in-out; }

@media (max-width: 800px) {
    .wiki-container { flex-direction: column; }
    .wiki-sidebar { width: 100%; position: relative; top: 0; }
    .content-wrapper { padding: 1.5rem; }
}
