/* =============================== */
/* PROJETO EDEN - WIKI STYLE V2 */
/* COM MENU COLAPS�VEL */
/* =============================== */

:root {
    --eden-bg-dark: #020f0a;
    --eden-bg-light: #0a1a14;
    --eden-bg-card: rgba(10, 26, 20, 0.6);
    --eden-green: #1f6b41;
    --eden-green-light: #2a8f56;
    --eden-green-dark: #0d3824;
    --eden-gold: #e5bd64;
    --eden-gold-light: #fff0a8;
    --eden-gold-dark: #d4a854;
    --eden-text: #f4ead0;
    --eden-text-secondary: #c9b5a0;
    --eden-text-muted: #8b7a68;
    --eden-border: rgba(229, 189, 100, 0.2);
    --eden-border-light: rgba(229, 189, 100, 0.1);
    --eden-danger: #ff9aaa;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
    background: var(--eden-bg-dark);
    color: var(--eden-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* =============================== */
/* FUNDO */
/* =============================== */

.ro-info-shell {
    position: relative;
    min-height: 100vh;
    padding: 92px 24px 80px;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(2, 15, 10, 0.4), rgba(2, 15, 10, 0.5)),
        url("../images/projetoeden/info/background.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.ro-info-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.ro-info-alert,
.ro-info-frame {
    position: relative;
    z-index: 2;
}

/* =============================== */
/* ALERTA */
/* =============================== */

.ro-info-alert {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 28px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 12px;
    background: rgba(13, 56, 36, 0.4);
    border: 1px solid var(--eden-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

.ro-info-alert span {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(229, 189, 100, 0.15);
    border: 1px solid var(--eden-border);
    color: var(--eden-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.ro-info-alert p {
    margin: 0;
    color: var(--eden-text-secondary);
    flex: 1;
}

.ro-info-alert small {
    color: var(--eden-text-muted);
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* =============================== */
/* FRAME PRINCIPAL */
/* =============================== */

.ro-info-frame {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* =============================== */
/* SIDEBAR / MENU COLAPS�VEL */
/* =============================== */

.ro-info-side {
    position: sticky;
    top: 110px;
    padding: 0;
    border-radius: 16px;
    background: var(--eden-bg-card);
    border: 1px solid var(--eden-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 130px);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* HEADER DO MENU */
.ro-info-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--eden-border);
    background: rgba(31, 107, 65, 0.15);
}

.ro-info-side-title {
    margin: 0;
    padding: 0;
    color: var(--eden-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ro-menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(229, 189, 100, 0.1);
    color: var(--eden-gold-light);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    align-items: center;
    justify-content: center;
}

.ro-menu-toggle:hover {
    background: rgba(229, 189, 100, 0.2);
    transform: scale(1.05);
}

/* CONTE�DO DO MENU */
.ro-info-side-content {
    padding: 12px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.ro-info-side.collapsed .ro-info-side-content {
    display: none;
}

.ro-info-side.collapsed {
    padding: 0;
    width: auto;
}

.ro-info-side.collapsed .ro-info-side-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* =============================== */
/* NAV - MENU ITEMS */
/* =============================== */

.ro-info-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ro-info-nav a {
    position: relative;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    background: rgba(1, 12, 8, 0.3);
    border: 1px solid var(--eden-border);
    color: var(--eden-text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    overflow: hidden;
    cursor: pointer;
}

.ro-info-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--eden-gold);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ro-info-nav a:hover,
.ro-info-nav a.is-active {
    color: var(--eden-gold-light);
    border-color: rgba(255, 240, 168, 0.4);
    background: rgba(31, 107, 65, 0.3);
    box-shadow: 0 0 12px rgba(229, 189, 100, 0.1);
    transform: translateX(3px);
}

.ro-info-nav a:hover::before,
.ro-info-nav a.is-active::before {
    opacity: 1;
}

.ro-icon {
    position: relative;
    z-index: 2;
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(229, 189, 100, 0.08);
    border: 1px solid rgba(229, 189, 100, 0.2);
    color: var(--eden-gold-light);
    flex-shrink: 0;
}

.ro-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: currentColor;
}

/* =============================== */
/* CONTE�DO PRINCIPAL */
/* =============================== */

.ro-info-main {
    min-width: 0;
    padding: 32px;
    border-radius: 16px;
    background: var(--eden-bg-card);
    border: 1px solid var(--eden-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ANIMA��ES DE CARREGAMENTO */
.ro-info-main.ro-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ro-info-main.ro-loaded {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================== */
/* HEADER */
/* =============================== */

.ro-info-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--eden-border);
}

.ro-info-header h1 {
    margin: 0 0 16px;
    color: var(--eden-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.ro-info-header p {
    margin: 0;
    color: var(--eden-text-secondary);
    font-size: 15px;
    line-height: 1.8;
    max-width: 90%;
}

.ro-info-header iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    margin: 20px 0 0;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--eden-border);
    background: rgba(0, 0, 0, 0.3);
}

/* =============================== */
/* CONTE�DO DIN�MICO */
/* =============================== */

#ro-info-dynamic {
    animation: fadeIn 0.3s ease;
}

/* =============================== */
/* SE��ES */
/* =============================== */

.ro-info-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--eden-border);
}

.ro-info-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.ro-info-section h2 {
    margin: 0 0 20px;
    color: var(--eden-gold-light);
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ro-info-section h2::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 20px;
    background: var(--eden-gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.ro-info-section p {
    margin: 0 0 16px;
    color: var(--eden-text-secondary);
    font-size: 14px;
    line-height: 1.3;
}

.ro-info-section strong {
    color: var(--eden-gold-light);
    font-weight: 600;
}

/* =============================== */
/* TABELAS */
/* =============================== */

.ro-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: visible !important;
    border: 1px solid var(--eden-border);
    background: rgba(1, 8, 5, 0.3);
    font-size: 14px;
}

.ro-info-table th {
    padding: 12px 16px;
    text-align: left;
    background: linear-gradient(135deg, var(--eden-green), var(--eden-green-light));
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--eden-border);
}

.ro-info-table td {
    padding: 12px 16px;
    color: var(--eden-text-secondary);
    border-bottom: 1px solid var(--eden-border-light);
}

.ro-info-table tr:last-child td {
    border-bottom: none;
}

.ro-info-table tbody tr:hover {
    background: rgba(31, 107, 65, 0.1);
}

.ro-info-table td:first-child {
    color: var(--eden-gold-light);
    font-weight: 600;
    width: 35%;
}

/* =============================== */
/* INFO BOXES */
/* =============================== */

.wiki-info-box {
    margin: 24px 0;
    padding: 20px;
    border-radius: 12px;
    background: rgba(31, 107, 65, 0.08);
    border-left: 4px solid var(--eden-gold);
    border-top: 1px solid var(--eden-border);
    border-right: 1px solid var(--eden-border);
    border-bottom: 1px solid var(--eden-border);
}

.wiki-info-box strong {
    color: var(--eden-gold-light);
    display: block;
    margin-bottom: 8px;
}

.wiki-highlight {
    background: rgba(229, 189, 100, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--eden-gold-light);
}

/* =============================== */
/* SCROLLBAR */
/* =============================== */

.ro-info-main,
.ro-info-side-content {
    scrollbar-width: thin;
    scrollbar-color: var(--eden-gold-dark) transparent;
}

.ro-info-main::-webkit-scrollbar,
.ro-info-side-content::-webkit-scrollbar {
    width: 8px;
}

.ro-info-main::-webkit-scrollbar-track,
.ro-info-side-content::-webkit-scrollbar-track {
    background: transparent;
}

.ro-info-main::-webkit-scrollbar-thumb,
.ro-info-side-content::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--eden-gold-dark);
}

.ro-info-main::-webkit-scrollbar-thumb:hover,
.ro-info-side-content::-webkit-scrollbar-thumb:hover {
    background: var(--eden-gold);
}

/* =============================== */
/* RESPONSIVO */
/* =============================== */

@media (max-width: 1200px) {
    .ro-info-frame {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }

    .ro-info-main {
        padding: 28px;
    }

    .ro-info-side {
        padding: 0;
    }
}

@media (max-width: 980px) {
    .ro-info-frame {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ro-info-side {
        position: relative;
        top: auto;
        max-height: none;
        width: 100%;
    }

    .ro-menu-toggle {
        display: flex;
    }

    .ro-info-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .ro-info-side.collapsed {
        width: 100%;
    }

    .ro-info-side.collapsed .ro-info-side-title {
        writing-mode: initial;
        transform: none;
    }

    .ro-info-alert {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ro-info-alert small {
        width: 100%;
        text-align: right;
    }
}

@media (max-width: 720px) {
    .ro-info-shell {
        padding: 70px 16px 60px;
    }

    .ro-info-main,
    .ro-info-side {
        padding: 20px;
        border-radius: 12px;
    }

    .ro-info-side {
        padding: 0;
    }

    .ro-info-side-content {
        padding: 12px;
    }

    .ro-info-nav {
        grid-template-columns: 1fr;
    }

    .ro-info-header h1 {
        font-size: 24px;
    }

    .ro-info-header iframe {
        height: 220px;
    }

    .ro-info-table {
        font-size: 13px;
    }

    .ro-info-table th,
    .ro-info-table td {
        padding: 10px 12px;
    }

    .ro-info-alert {
        flex-direction: column;
        align-items: flex-start;
    }

    .ro-info-alert span {
        align-self: flex-start;
    }

    .ro-info-alert p {
        max-width: 100%;
    }

    .ro-info-alert small {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .ro-info-frame {
        gap: 16px;
    }

    .ro-info-main {
        padding: 16px;
    }

    .ro-info-header h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .ro-info-header p {
        max-width: 100%;
        font-size: 13px;
    }

    .ro-info-section {
        padding-top: 20px;
        margin-top: 20px;
    }

    .ro-info-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .ro-info-table {
        font-size: 12px;
    }

    .ro-info-table th,
    .ro-info-table td {
        padding: 8px 10px;
    }

    .ro-info-table td:first-child {
        width: 40%;
    }

    .ro-icon {
        width: 24px;
        height: 24px;
    }

    .ro-icon svg {
        width: 14px;
        height: 14px;
    }

    .ro-info-nav a {
        font-size: 12px;
        padding: 10px 12px;
    }
}


/* ============================================================
   ICONES SVG DA WIKI (.edi)
   Subtitui emojis por ícones vetoriais reutilizáveis
   ============================================================ */
.edi {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: none;
    vertical-align: -0.125em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.edi-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    border: 1px solid var(--eden-gold-light, #e5bd64);
    border-radius: 50%;
    color: var(--eden-gold-light, #e5bd64);
    font-size: 0.92em;
    font-weight: 700;
    vertical-align: -0.3em;
    margin-right: 2px;
}
.edi-medal-gold   { color: #ffd966; }
.edi-medal-silver { color: #cfd8e3; }
.edi-medal-bronze { color: #e2a76f; }
.edi-sm { width: 0.85em; height: 0.85em; }
.edi-lg { width: 1.35em; height: 1.35em; }
