/* 
  This file contains styles specific to the wiki page,
  such as the table of contents and accordion components.
  These styles were moved from components.css.
*/

/* --- Wiki Page Components --- */
.wiki-toc {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
}
.wiki-toc h3 {
    margin-bottom: 0.5rem;
}
.wiki-toc ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.wiki-toc li a {
    text-decoration: none;
    color: var(--text-muted-color);
    transition: color 0.2s;
}
.wiki-toc li a:hover {
    color: var(--primary-color);
}
.wiki-section {
    margin-top: 3rem;
}
.wiki-section-header {
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion {
    margin-bottom: 0; /* Adjusted since gap is handled by container */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--surface-color);
    overflow: hidden;
}
.accordion-header {
    background-color: transparent;
    border: none;
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.accordion-header::after {
    content: '\f078'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
}
.accordion.active .accordion-header::after {
    transform: translateY(-50%) rotate(-180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}
.accordion.active .accordion-content {
    padding: 1.5rem 1.5rem 0 1.5rem;
}
.accordion-content p, .accordion-content ul, .accordion-content ol {
    padding-bottom: 1.5rem;
    color: var(--text-muted-color);
}
.accordion-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.accordion-content ul, .accordion-content ol {
    margin-left: 20px;
}
.accordion-content a {
    font-weight: 600;
}
.command-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.command-list li {
    margin-bottom: 0.75rem;
}
.command-list code {
    background-color: var(--background-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: 'Courier New', Courier, monospace;
    color: var(--primary-color);
    white-space: nowrap;
}

.command-list code .cmd-variable {
    color: #f59e0b; /* Amber/Yellow for variables */
    font-style: italic;
}

.wiki-section code {
    background-color: var(--background-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: 'Courier New', Courier, monospace;
    color: var(--primary-color);
    white-space: nowrap;
}

/* --- Crafting Recipe Components --- */
.recipe-description {
    padding-bottom: 1.5rem;
}

.crafting-recipe {
    margin-bottom: 2rem;
}
.crafting-grid-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.crafting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 162px; /* 3 * 50px + 2 * 4px */
    height: 162px; /* 3 * 50px + 2 * 4px */
}
.grid-slot {
    width: 50px;
    height: 50px;
    background-color: #555;
    border: 2px solid #333;
    border-right-color: #888;
    border-bottom-color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering: pixelated;
}
.grid-slot img {
    width: 36px;
    height: 36px;
    transform: scale(1.5); /* Make items look larger inside the slot */
}
.crafting-arrow {
    font-size: 2.5rem;
    color: var(--text-muted-color);
}
.result-slot {
    width: 60px;
    height: 60px;
}
.result-slot img {
    width: 48px;
    height: 48px;
}