/* ===== WIKI LAYOUT ===== */
.wiki-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

/* ===== WIKI SIDEBAR ===== */
.wiki-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.wiki-nav {
    background-color: #1f2028;
    border: 2px solid #333444;
    border-radius: 10px;
    padding: 20px;
}

.wiki-nav-section h4 {
    color: #dda900;
    margin-bottom: 15px;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wiki-nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wiki-nav-section li {
    margin-bottom: 10px;
}

.wiki-nav-section a {
    color: #bbbbbb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wiki-nav-section a:hover {
    background-color: #333444;
    color: #dda900;
    padding-left: 16px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.wiki-nav-section a.active {
    background-color: #dda900;
    color: #000000;
    font-weight: bold;
}

/* ===== WIKI MAIN CONTENT ===== */
.wiki-content {
    flex: 1;
    min-width: 0;
}

.wiki-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wiki-section.active {
    display: block;
}

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

.wiki-section h1 {
    font-size: 2.5em;
    color: #dda900;
    margin-bottom: 15px;
    margin-top: 0;
}

.wiki-section > p {
    color: #bbbbbb;
    font-size: 1.05em;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ===== WIKI ARTICLES ===== */
.wiki-article {
    background-color: #1f2028;
    border: 2px solid #333444;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

/* ===== WIKI SUBTABS ===== */
.wiki-subtabs {
    display: flex;
    gap: 10px;
    margin: 20px 0 30px 0;
    flex-wrap: wrap;
    border-bottom: 2px solid #333444;
    padding-bottom: 0;
    font-family: "Fredoka", sans-serif;
}

.subtab-btn {
    background-color: #13141a;
    color: #bbbbbb;
    border: 1px solid #333444;
    padding: 12px 18px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 400;
    font-size: 1em;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: "Fredoka", sans-serif;
}

.subtab-btn:hover {
    background-color: #1a1b22;
    color: #dda900;
    border-color: #444555;
}

.subtab-btn.active {
    background-color: #dda900;
    color: #000000;
    border-color: #dda900;
    font-weight: 400;
}

.subtab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.subtab-content.active {
    display: block;
}

.wiki-article {
    background-color: #1f2028;
    border: 2px solid #333444;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.wiki-article:hover {
    border-color: #dda900;
    box-shadow: 0 4px 12px rgba(221, 169, 0, 0.15);
}

.wiki-article h2 {
    color: #dda900;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}

.wiki-article h3 {
    color: #cccccc;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.wiki-article p {
    color: #bbbbbb;
    line-height: 1.7;
    margin-bottom: 15px;
}

.wiki-article ul, .wiki-article ol {
    color: #bbbbbb;
    margin-left: 20px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.wiki-article li {
    margin-bottom: 8px;
}

/* Meta information bar */
.meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333444;
}

/* Version badges */
.version-badge {
    display: inline-block;
    background-color: #333444;
    color: #bbbbbb;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
}

.version-badge.new-badge {
    background: linear-gradient(180deg, #ffdd66, #dda900);
    color: #000000;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(221, 169, 0, 0.2);
}

/* Wiki link buttons */
.wiki-link-btn {
    display: inline-block;
    background-color: #dda900;
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.wiki-link-btn:hover {
    background-color: #ffdd66;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(221, 169, 0, 0.3);
}

/* Code formatting */
.wiki-article code {
    background-color: #13141a;
    color: #ffdd66;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

/* Pre-formatted code blocks */
.wiki-article pre {
    background-color: #13141a;
    border: 1px solid #333444;
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.wiki-article pre code {
    background-color: transparent;
    color: #bbbbbb;
    padding: 0;
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.recipe-item {
    background-color: #13141a;
    border: 1px solid #333444;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recipe-item img {
    width: 100%;
    height: auto;
    max-width: 160px;
    margin-bottom: 12px;
    border-radius: 6px;
    object-fit: contain;
}

.recipe-item:hover {
    border-color: #dda900;
    background-color: #1a1b22;
    box-shadow: 0 4px 12px rgba(221, 169, 0, 0.1);
}

.recipe-item h4 {
    color: #dda900;
    margin: 0 0 8px 0;
    font-size: 0.95em;
}

.recipe-item p {
    color: #999999;
    font-size: 0.85em;
    margin: 0;
}

/* Changelog Styling */
.changelog {
    margin: 20px 0;
}

.changelog-entry {
    background-color: #13141a;
    border-left: 4px solid #dda900;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.changelog-entry:hover {
    background-color: #1a1b22;
    box-shadow: 0 4px 12px rgba(221, 169, 0, 0.1);
}

.changelog-entry h4 {
    color: #dda900;
    margin: 0 0 8px 0;
    font-size: 1em;
}

.changelog-entry p {
    color: #bbbbbb;
    margin: 0;
    font-size: 0.95em;
}

/* Commands List */
.commands-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.command-item {
    background-color: #13141a;
    border: 1px solid #333444;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.command-item:hover {
    border-color: #dda900;
    background-color: #1a1b22;
    box-shadow: 0 4px 12px rgba(221, 169, 0, 0.1);
}

.command-item code {
    background-color: transparent;
    color: #ffdd66;
    padding: 4px 0;
    border-radius: 0;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.command-item p {
    color: #bbbbbb;
    font-size: 0.9em;
    margin: 0;
}

/* ===== QUICK LINKS SECTION ===== */
.wiki-section.quick-links {
    background: linear-gradient(135deg, rgba(221, 169, 0, 0.1), rgba(221, 169, 0, 0.05));
    border: 2px solid #333444;
    border-radius: 10px;
    padding: 30px;
    margin-top: 50px;
}

.quick-links h2 {
    color: #dda900;
    margin-top: 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wiki-quick-link {
    background-color: #1f2028;
    border: 2px solid #333444;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #dda900;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.wiki-quick-link:hover {
    background-color: #dda900;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 169, 0, 0.2);
    border-color: #dda900;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .wiki-container {
        flex-direction: column;
        gap: 20px;
    }

    .wiki-sidebar {
        position: relative;
        top: 0;
        flex: 1;
        max-width: 100%;
    }

    .wiki-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .wiki-nav-section {
        flex: 1;
        min-width: 200px;
    }

    .wiki-nav-section ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .wiki-nav-section li {
        flex: 0 1 auto;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .wiki-container {
        padding: 20px 10px;
        gap: 15px;
    }

    .wiki-section h1 {
        font-size: 2em;
    }

    .wiki-article {
        padding: 20px;
    }

    .wiki-article h2 {
        font-size: 1.5em;
    }

    .meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .wiki-nav {
        flex-direction: column;
    }

    .wiki-nav-section ul {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wiki-container {
        padding: 15px 10px;
    }

    .wiki-section h1 {
        font-size: 1.8em;
    }

    .wiki-article {
        padding: 15px;
    }

    .wiki-article h2 {
        font-size: 1.3em;
    }

    .wiki-article h3 {
        font-size: 1.1em;
    }

    .version-badge {
        font-size: 0.75em;
    }

    .wiki-link-btn {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}