/* Estilos específicos de la Wiki Chowbox */

body {
    padding-top: 100px; /* Espacio para el navbar fijo */
}

.wiki-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.wiki-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    z-index: 50;
}

.sidebar-box {
    background-color: var(--c-dark-lighter);
    border: var(--border-thick);
    border-radius: var(--radius-box);
    padding: 20px;
    box-shadow: var(--shadow-solid);
    margin-bottom: 25px;
}

.sidebar-box h3 {
    font-size: 1.5rem;
    color: var(--c-white);
    margin-bottom: 15px;
    border-bottom: 2px dashed rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: var(--c-white-dim);
    font-weight: bold;
    border-radius: 8px;
    transition: 0.2s;
    border: 2px solid transparent;
}

.sidebar-menu a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--c-white);
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background-color: var(--c-primary-dark);
    color: white;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
}

/* Contenido Principal */
.wiki-content {
    flex: 1;
    min-width: 0; /* Previene desbordamiento */
}

.wiki-section {
    background-color: var(--c-dark-lighter);
    border: var(--border-thick);
    border-radius: var(--radius-box);
    padding: 40px;
    box-shadow: var(--shadow-solid);
    display: none; /* Ocultamos todas por defecto */
    animation: fadeIn 0.4s ease forwards;
}

.wiki-section.active-section {
    display: block; /* Mostramos la activa */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wiki-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px #000;
}

.wiki-section h2 {
    font-size: 2rem;
    margin: 30px 0 15px 0;
    color: var(--c-primary-light);
    border-bottom: 2px dashed rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.wiki-card {
    background-color: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--c-white-dim);
}

.alert-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background-color: rgba(255, 157, 0, 0.1);
    border-left: 5px solid var(--c-accent);
    padding: 15px;
    border-radius: 0 8px 8px 0;
}

.alert-box.info {
    background-color: rgba(163, 17, 237, 0.1);
    border-left-color: var(--c-primary);
}

.alert-box.info i {
    color: var(--c-primary);
}

.alert-box i {
    font-size: 1.5rem;
    color: var(--c-accent);
    margin-top: 2px;
}

table.wiki-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(0,0,0,0.4);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
}

table.wiki-table th {
    background-color: var(--c-primary-dark);
    color: white;
    text-align: left;
    padding: 15px;
    font-family: var(--f-title);
    font-size: 1.2rem;
    border-bottom: 3px solid #000;
}

table.wiki-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

table.wiki-table tr:last-child td {
    border-bottom: none;
}

code {
    background-color: #000;
    color: var(--c-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .wiki-container {
        flex-direction: column;
    }
    
    .wiki-sidebar {
        width: 100%;
        position: static;
    }
}
