/*
WRUniverse spacing, FAQ, command center, and notice polish.
No database dependency.
*/

/* Global spacing cleanup */
.site-main {
    width: min(1156px, calc(100% - 30px));
    margin-left: auto;
    margin-right: auto;
}

.page-hero,
.card,
.info-card,
.mini-card,
.wru-empty-state {
    box-sizing: border-box;
}

.page-hero {
    margin-bottom: 28px;
}

.page-hero p:last-child,
.card p:last-child,
.info-card p:last-child,
.mini-card p:last-child {
    margin-bottom: 0;
}

.card + .card,
.card + .info-grid,
.info-grid + .card,
.page-hero + .card,
.page-hero + .info-grid,
.wru-stats-strip + .card,
.wru-stats-strip + .info-grid {
    margin-top: 24px;
}

.info-grid {
    margin-top: 24px;
    margin-bottom: 24px;
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

form label {
    display: block;
    margin-bottom: 14px;
}

form input,
form select,
form textarea {
    box-sizing: border-box;
    width: 100%;
}

.list {
    display: grid;
    gap: 16px;
}

.list > article {
    margin: 0;
}

/* Mini command center upgrade */
.command-menu {
    width: 340px;
    padding: 12px;
}

.command-menu-head {
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.command-menu-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.command-menu .command-menu-links a {
    min-height: 44px;
    justify-content: center;
    text-align: center;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
}

.command-menu .command-menu-links a:hover {
    background: rgba(61,124,255,.22);
    border-color: rgba(61,124,255,.34);
}

.command-menu .command-menu-links a.command-primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(61,124,255,.35), rgba(240,191,66,.18));
    border-color: rgba(61,124,255,.42);
    color: #fff;
}

.command-menu .command-menu-links a.command-danger {
    color: #ffd6d6;
}

.command-menu .command-menu-links a.command-high command {
    background: rgba(240,191,66,.12);
    border-color: rgba(240,191,66,.24);
}

/* Premium FAQ accordion */
.faq-shell {
    display: grid;
    gap: 14px;
}

.faq-item {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
        #111114;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.faq-question {
    width: 100%;
    min-height: 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 18px 20px;
    text-align: left;
    cursor: pointer;
}

.faq-question span:first-child {
    font-size: 16px;
    font-weight: 950;
    line-height: 1.35;
}

.faq-toggle {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(61,124,255,.18);
    border: 1px solid rgba(61,124,255,.28);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    color: #bfc0c8;
    line-height: 1.75;
}

.faq-answer p {
    margin: 0;
}

.faq-item.is-open {
    border-color: rgba(61,124,255,.34);
}

.faq-item.is-open .faq-toggle {
    background: rgba(240,191,66,.16);
    border-color: rgba(240,191,66,.28);
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* Cookie / community notice */
.wru-cookie-notice {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 10050;
    display: none;
    max-width: 860px;
    margin: 0 auto;
    background: rgba(13,13,16,.96);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0,0,0,.46);
    padding: 18px;
    color: #fff;
    backdrop-filter: blur(16px);
}

.wru-cookie-notice.is-visible {
    display: block;
}

.wru-cookie-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.wru-cookie-notice h2 {
    margin: 0 0 6px;
    font-size: 17px;
}

.wru-cookie-notice p {
    margin: 0;
    color: #bfc0c8;
    line-height: 1.6;
    font-size: 14px;
}

.wru-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wru-cookie-actions button,
.wru-cookie-actions a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 16px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.wru-cookie-actions button {
    border: 0;
    background: #3d7cff;
    color: #fff;
}

.wru-cookie-actions a {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: #fff;
}

/* Light mode / day mode safety */
@media (prefers-color-scheme: light) {
    .faq-item {
        background: #ffffff;
        border-color: rgba(0,0,0,.08);
        box-shadow: 0 16px 40px rgba(0,0,0,.08);
    }

    .faq-question {
        color: #111;
    }

    .faq-answer {
        color: #444;
    }

    .wru-cookie-notice {
        background: rgba(255,255,255,.96);
        color: #111;
        border-color: rgba(0,0,0,.10);
    }

    .wru-cookie-notice p {
        color: #444;
    }

    .wru-cookie-actions a {
        color: #111;
        background: rgba(0,0,0,.04);
        border-color: rgba(0,0,0,.10);
    }
}

@media (max-width: 640px) {
    .site-main {
        width: calc(100% - 18px);
    }

    .page-hero {
        margin-bottom: 20px;
    }

    .card + .card,
    .card + .info-grid,
    .info-grid + .card,
    .page-hero + .card,
    .page-hero + .info-grid,
    .wru-stats-strip + .card,
    .wru-stats-strip + .info-grid {
        margin-top: 18px;
    }

    .command-menu {
        width: auto;
    }

    .command-menu-links {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .command-menu .command-menu-links a {
        font-size: 13px;
        min-height: 42px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .wru-cookie-inner {
        grid-template-columns: 1fr;
    }

    .wru-cookie-actions {
        width: 100%;
    }

    .wru-cookie-actions button,
    .wru-cookie-actions a {
        flex: 1 1 auto;
    }
}
