
/* Wiki */
.wiki-intro {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(90deg, rgba(5, 8, 12, 0.96), rgba(5, 8, 12, 0.72)),
        url("../header.jpg") center 42% / cover no-repeat;
}

.wiki-intro-inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 430px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 70px;
    padding: 65px 0 55px;
}

.wiki-intro-copy {
    max-width: 760px;
}

.wiki-intro-copy h1 {
    margin: 7px 0 14px;
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.wiki-intro-copy p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.wiki-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.wiki-intro-logo {
    width: 100%;
    max-width: 520px;
    justify-self: end;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.wiki-page {
    display: grid;
    gap: 72px;
    padding-top: 70px;
}

.wiki-group {
    display: grid;
    gap: 24px;
}

.wiki-group-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 820px;
}

.wiki-group-heading h2 {
    margin: 3px 0 7px;
    color: #fff;
    font-size: 1.7rem;
    text-transform: uppercase;
}

.wiki-group-heading p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.wiki-group-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    color: var(--accent-gold);
    border: 1px solid rgba(197, 160, 89, 0.32);
    background: rgba(197, 160, 89, 0.08);
    border-radius: 4px;
}

.wiki-group-icon svg {
    width: 23px;
    height: 23px;
}

.wiki-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wiki-link {
    min-height: 104px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.wiki-link:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 160, 89, 0.5);
    background: rgba(197, 160, 89, 0.07);
}

.wiki-link > svg:first-child {
    width: 25px;
    height: 25px;
    color: var(--accent-gold);
}

.wiki-link > svg:last-child {
    width: 17px;
    height: 17px;
    color: rgba(255, 255, 255, 0.35);
}

.wiki-link span {
    min-width: 0;
}

.wiki-link strong,
.wiki-link small {
    display: block;
}

.wiki-link strong {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.wiki-link small {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.wiki-discord-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: 34px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.32);
    border-bottom: 1px solid rgba(197, 160, 89, 0.32);
}

.wiki-discord-cta.section-container {
    margin-top: 80px;
}

.wiki-discord-cta-copy {
    max-width: 760px;
}

.wiki-discord-cta h2 {
    margin: 5px 0 9px;
    color: #fff;
    font-size: 1.7rem;
    text-transform: uppercase;
}

.wiki-discord-cta p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.wiki-discord-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.command-category .bot-commands-grid {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.command-category.command-category-open .bot-commands-grid {
    max-height: 600px;
    opacity: 1;
    margin-top: 20px;
}

.command-category .clan-members-grid {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, margin-top 0.3s ease;
}

.command-category.command-category-open .clan-members-grid {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 20px;
}

.command-category-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0 0 14px 0;
    cursor: pointer;
    font-family: inherit;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-arrow {
    transition: transform 0.3s ease;
}

.command-category.command-category-open .category-arrow {
    transform: rotate(180deg);
}
