/* ================================================================
   PROJETO EDEN — WIKI V3 · RESTYLE GLOBAL
   Camada de refinamento sobre eden-wiki-v2.css + eden-wiki-rmt.css.
   Carregado por ÚLTIMO em themes/trend/server/info.php.
   Alvo: TODAS as páginas da wiki (hero, sections, tabelas, boxes,
   sidebar, components ewr-* e micro-interações).
   ================================================================ */

:root {
    --eden-v3-gold: #e5bd64;
    --eden-v3-gold-light: #fff0a8;
    --eden-v3-gold-dark: #b8913d;
    --eden-v3-glow: rgba(229, 189, 100, 0.35);
    --eden-v3-emerald: #1f6b41;
}

/* ================================================================
   SELEÇÃO + FOCO ACESSÍVEL
   ================================================================ */
::selection {
    background: rgba(229, 189, 100, 0.25);
    color: var(--eden-gold-light, #fff0a8);
}

:focus-visible {
    outline: 2px solid rgba(229, 189, 100, 0.55);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ================================================================
   HERO — VERSÃO PREMIUM
   ================================================================ */
.ewr-hero {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 70px rgba(229, 189, 100, 0.05);
    border-color: rgba(229, 189, 100, 0.42);
}

/* Brilho varrendo o hero (só decorativo) */
.ewr-hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 46%;
    background: linear-gradient(100deg, transparent, rgba(229, 189, 100, 0.08) 45%, rgba(255, 240, 168, 0.12) 50%, transparent 64%);
    transform: skewX(-16deg);
    animation: roSheen 8.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes roSheen {
    0% { left: -70%; }
    55% { left: 150%; }
    100% { left: 150%; }
}

/* Substitui o emoji de moeda por vinheta dourada no canto superior direito */
.ewr-hero::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -18%;
    width: 55%;
    height: 70%;
    background: radial-gradient(closest-side, rgba(229, 189, 100, 0.14), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.ewr-hero-tag {
    position: relative;
    z-index: 1;
    background: rgba(229, 189, 100, 0.13);
    border-color: rgba(229, 189, 100, 0.42);
    color: var(--eden-v3-gold-light);
    box-shadow: 0 0 18px rgba(229, 189, 100, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* bonus_refino tem decoração própria no ::before — não deixa o
   shimmer global (left/animation) vazar para o hatch dele */
.eden-bonus-refino .ewr-hero::before {
    left: auto;
    animation: none;
}

.ewr-hero h2 {
    color: var(--eden-v3-gold-light);
    text-shadow: 0 2px 22px rgba(229, 189, 100, 0.22);
}

.ewr-hero p {
    color: var(--eden-muted, #cdbd91);
}

/* ---- STATS DO HERO — vidro + glow ---- */
.ewr-hero-stats {
    border-top-color: rgba(229, 189, 100, 0.3);
}

.ewr-hero-stat {
    background: linear-gradient(160deg, rgba(10, 26, 20, 0.75), rgba(1, 12, 8, 0.55));
    border-color: rgba(229, 189, 100, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 22px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ewr-hero-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 189, 100, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 22px rgba(229, 189, 100, 0.14);
}

.ewr-hero-stat strong {
    color: #ffefb0;
    text-shadow: 0 0 18px rgba(229, 189, 100, 0.4);
}

.ewr-hero-stat span {
    color: var(--eden-muted, #cdbd91);
    letter-spacing: 1.2px;
}

/* ---- ÍCONE GRANDE DO HERO (global) ----
   Antes só existia CSS local em bonus_refino.html; agora vale p/ todas */
.ewr-hero-icon-large {
    position: absolute;
    right: -6px;
    top: -8px;
    width: 150px;
    height: 150px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(229, 189, 100, 0.16), rgba(229, 189, 100, 0.05) 60%, transparent 75%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 55%);
    border: 1px solid rgba(229, 189, 100, 0.16);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32), 0 0 30px rgba(229, 189, 100, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    transform: rotate(3deg);
    opacity: 0.9;
}

.ewr-hero-icon-large svg {
    width: 76px;
    height: 76px;
    color: rgba(255, 220, 140, 0.5);
    stroke: rgba(255, 220, 140, 0.5);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 24px rgba(255, 200, 100, 0.22));
    transform: rotate(-8deg);
}

.ewr-hero-icon-large::before {
    content: "";
    position: absolute;
    inset: -20% -10% -10% 32%;
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px);
    opacity: 0.55;
    pointer-events: none;
}

/* ================================================================
   HEADER / SEÇÕES
   ================================================================ */
.ro-info-header {
    position: relative;
    border-bottom: none;
    padding-bottom: 26px;
}

.ro-info-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, rgba(229, 189, 100, 0.75), rgba(229, 189, 100, 0.12) 55%, transparent);
    border-radius: 2px;
}

.ro-info-header h1 {
    color: var(--eden-v3-gold-light);
    text-shadow: 0 2px 26px rgba(229, 189, 100, 0.2);
}

.ro-info-section h2::before {
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--eden-v3-gold-light), var(--eden-v3-gold-dark));
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(229, 189, 100, 0.5);
}

/* ================================================================
   TABELAS
   ================================================================ */
.ro-info-table {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.ro-info-table th {
    background: linear-gradient(135deg, var(--eden-v3-emerald), var(--eden-green-light, #2a8f56));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ro-info-table tbody tr:hover td {
    background: rgba(31, 107, 65, 0.13);
}

.ro-info-table td code {
    background: rgba(229, 189, 100, 0.1);
    padding: 2px 6px;
    border-radius: 5px;
    color: #ffefb0;
    font-size: 12px;
}

.ro-info-table td:first-child {
    color: var(--eden-v3-gold-light);
}

/* ================================================================
   INFO BOXES / TOC / HIGHLIGHT
   ================================================================ */
.wiki-info-box {
    background: linear-gradient(135deg, rgba(31, 107, 65, 0.15), rgba(2, 12, 8, 0.35));
    border-left: 4px solid var(--eden-v3-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.wiki-toc {
    background: linear-gradient(135deg, rgba(31, 107, 65, 0.13), rgba(2, 12, 8, 0.3));
    border-color: rgba(229, 189, 100, 0.3);
}

.wiki-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
}

.wiki-toc-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: rgba(1, 12, 8, 0.3);
    transition: all 0.2s ease;
}

.wiki-toc-list a:hover {
    color: var(--eden-v3-gold-light);
    border-color: rgba(229, 189, 100, 0.3);
    background: rgba(31, 107, 65, 0.18);
}

.wiki-highlight {
    background: rgba(229, 189, 100, 0.12);
    box-shadow: inset 0 0 0 1px rgba(229, 189, 100, 0.2);
}

/* ================================================================
   ALERTA
   ================================================================ */
.ro-info-alert {
    background: linear-gradient(135deg, rgba(13, 56, 36, 0.55), rgba(2, 12, 8, 0.5));
    border-color: rgba(229, 189, 100, 0.3);
    border-left: 3px solid var(--eden-v3-gold);
}

.ro-info-alert span {
    background: rgba(229, 189, 100, 0.16);
    border-color: rgba(229, 189, 100, 0.4);
}

/* ================================================================
   SIDEBAR / NAV
   ================================================================ */
.ro-info-side {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ro-info-side-header {
    background: linear-gradient(135deg, rgba(31, 107, 65, 0.2), rgba(1, 12, 8, 0.25));
    border-bottom-color: rgba(229, 189, 100, 0.3);
}

.ro-info-side-title svg {
    color: var(--eden-v3-gold);
    filter: drop-shadow(0 0 6px rgba(229, 189, 100, 0.4));
}

.ro-info-nav a.is-active,
.ro-info-nav a:hover {
    box-shadow: 0 0 18px rgba(229, 189, 100, 0.12), inset 0 0 12px rgba(229, 189, 100, 0.05);
}

.ro-info-nav a .ro-icon {
    transition: transform 0.2s ease;
}

.ro-info-nav a:hover .ro-icon,
.ro-info-nav a.is-active .ro-icon {
    transform: scale(1.08);
}

/* ================================================================
   PAINEL PRINCIPAL — profundidade extra
   ================================================================ */
.ro-info-main {
    background:
        radial-gradient(ellipse at 100% 0%, rgba(229, 189, 100, 0.05), transparent 42%),
        radial-gradient(ellipse at 0% 100%, rgba(31, 107, 65, 0.09), transparent 50%),
        var(--eden-bg-card);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-color: rgba(229, 189, 100, 0.32);
}

/* ================================================================
   COMPONENTES EWR-* — POLIMENTO
   ================================================================ */
.ewr-card,
.ewr-pillar,
.ewr-sac-step,
.ewr-pix-type,
.ewr-rule {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ewr-card:hover,
.ewr-pillar:hover,
.ewr-sac-step:hover,
.ewr-pix-type:hover,
.ewr-rule:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.25), 0 0 20px rgba(229, 189, 100, 0.1);
}

.ewr-step-num {
    box-shadow: 0 0 22px rgba(229, 189, 100, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.ewr-quote {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ewr-quote p {
    text-shadow: 0 2px 18px rgba(229, 189, 100, 0.18);
}

.ewr-note {
    background: linear-gradient(135deg, rgba(31, 107, 65, 0.18), rgba(2, 12, 8, 0.35));
}

.ewr-cta {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ewr-btn-gold {
    box-shadow: 0 0 28px rgba(229, 189, 100, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ewr-btn-gold:hover {
    box-shadow: 0 0 40px rgba(229, 189, 100, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ewr-compare thead th {
    background: rgba(229, 189, 100, 0.09);
    border-bottom-color: rgba(229, 189, 100, 0.35);
}

.ewr-compare tbody tr:hover td {
    background: rgba(229, 189, 100, 0.06);
}

.ewr-coin-icon {
    box-shadow: 0 0 26px rgba(229, 189, 100, 0.4), inset 0 0 8px rgba(27, 16, 4, 0.3);
}

/* ================================================================
   SCROLLBAR + MOTION
   ================================================================ */
.ro-info-main::-webkit-scrollbar-thumb,
.ro-info-side-content::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: linear-gradient(180deg, var(--eden-gold-dark, #d4a854), #a87f35);
}

@media (prefers-reduced-motion: reduce) {
    .ewr-hero::before {
        animation: none !important;
    }
    .ro-info-nav a,
    .ewr-hero-stat,
    .ewr-card,
    .ewr-pillar,
    .ewr-sac-step,
    .ewr-pix-type,
    .ewr-rule,
    .cfg-bar-fill {
        transition: none !important;
    }
}

/* ================================================================
   RESPONSIVO V3
   ================================================================ */
@media (max-width: 980px) {
    .ewr-hero-icon-large {
        width: 104px;
        height: 104px;
        right: 6px;
        opacity: 0.55;
    }
    .ewr-hero-icon-large svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 640px) {
    .ewr-hero {
        padding: 26px 18px;
    }
    .ewr-hero h2 {
        font-size: clamp(20px, 6vw, 26px);
    }
    .ewr-hero-icon-large {
        display: none;
    }
    .wiki-toc-list {
        grid-template-columns: 1fr;
    }
}