
/* GHOSTBASE 2.0 — PLATAFORMA V10
   Somente módulos novos. Não altera o tema aprovado. */

.gbp-hero{
    min-height:270px;
    display:flex;
    align-items:center;
    background:
        radial-gradient(900px 300px at 18% 50%,rgba(255,107,0,.055),transparent 68%),
        #0a0f12;
    border-bottom:1px solid #202b33;
}
.gbp-hero h1{margin:8px 0 10px;font-size:clamp(42px,5vw,72px);line-height:.98}
.gbp-hero p{max-width:780px;margin:0;color:#91a3ad;line-height:1.65}
.gbp-section{padding:64px 0 82px!important}
.gbp-back{display:inline-block;margin-bottom:22px;color:#8295a0;text-decoration:none;font-size:12px}
.gbp-back:hover{color:#ff6b00}
.gbp-empty{padding:36px;border:1px solid #27343d;border-radius:18px;background:#0f151a}
.gbp-section-head{margin:42px 0 18px}.gbp-section-head:first-child{margin-top:0}
.gbp-section-head h2{margin:5px 0 0;font-size:28px}

/* GhostTools */
.gbtools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.gbtool-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;min-height:210px;padding:20px;border:1px solid #27343d;border-radius:17px;background:linear-gradient(180deg,#12191f,#0e1519);color:inherit;text-decoration:none;transition:.22s ease}
.gbtool-card:hover{transform:translateY(-4px);border-color:rgba(255,107,0,.65);box-shadow:0 18px 50px rgba(0,0,0,.25)}
.gbtool-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:14px;background:#1a130d;color:#ff6b00;font-size:28px}
.gbtool-copy{display:flex;flex-direction:column;min-width:0}
.gbtool-topline{display:flex;justify-content:space-between;gap:8px;color:#ff7d22;font-size:9px;font-weight:900;letter-spacing:.7px;text-transform:uppercase}
.gbtool-topline b{padding:3px 6px;border-radius:999px;background:rgba(255,107,0,.12)}
.gbtool-card h3{margin:10px 0 8px;font-size:21px}
.gbtool-card p{margin:0;color:#91a4ae;font-size:12px;line-height:1.6}
.gbtool-card strong{margin-top:auto;padding-top:16px;color:#ff7d22;font-size:10px;text-transform:uppercase}
.gbtool-rich{max-width:900px;color:#d7e0e5;line-height:1.8}
.gbtool-rich h2,.gbtool-rich h3{margin-top:28px}
.gbtool-route-action{margin-top:28px}

/* Joule */
.gbjoule-shell{max-width:900px;padding:30px;border:1px solid #2b3942;border-radius:20px;background:#0f161a;box-shadow:0 24px 70px rgba(0,0,0,.2)}
.gbjoule-head h2{margin:6px 0 8px;font-size:36px}.gbjoule-head p{margin:0;color:#93a5af}
.gbjoule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:28px}
.gbjoule-grid label{display:grid;gap:8px}.gbjoule-grid span{color:#93a6b0;font-size:11px;font-weight:800}
.gbjoule-grid input,.gbjoule-grid select{width:100%;height:50px;padding:0 13px;border:1px solid #31414a;border-radius:10px;background:#090f13;color:#fff;font-size:16px}
.gbjoule-result{display:flex;align-items:baseline;gap:10px;margin-top:24px;padding:24px;border:1px solid rgba(255,107,0,.35);border-radius:14px;background:rgba(255,107,0,.06)}
.gbjoule-result small{color:#ff7d22;font-size:9px;font-weight:900;letter-spacing:1px}.gbjoule-result strong{margin-left:auto;font-size:48px;color:#fff}.gbjoule-result span{font-size:18px;color:#ff7d22;font-weight:900}
.gbjoule-extra{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.gbjoule-extra div{padding:15px;border:1px solid #27343d;border-radius:12px;background:#0b1115}.gbjoule-extra small{display:block;color:#7f929d;font-size:9px}.gbjoule-extra strong{display:block;margin-top:4px;font-size:20px}
.gbjoule-note{margin:18px 0 0;color:#71838d;font-size:11px;line-height:1.6}

/* Community */
.gbcommunity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.gbcommunity-card{min-height:260px;display:flex;flex-direction:column;padding:24px;border:1px solid #27343d;border-radius:18px;background:#10171b;color:inherit;text-decoration:none}
.gbcommunity-card.is-primary{border-color:rgba(255,107,0,.5);background:radial-gradient(500px 220px at 15% 10%,rgba(255,107,0,.12),transparent 70%),#10171b}
.gbcommunity-card>span{font-size:30px}.gbcommunity-card h2{margin:16px 0 9px;font-size:23px}.gbcommunity-card p{margin:0;color:#91a4ae;line-height:1.6}.gbcommunity-card strong{margin-top:auto;padding-top:18px;color:#ff7d22;font-size:11px}
.gbcommunity-card.is-soon{opacity:.68}

/* Submit */
.gbsubmit-form{max-width:1050px}
.gbsubmit-card{margin-bottom:18px;padding:25px;border:1px solid #27343d;border-radius:18px;background:#0f161a}
.gbsubmit-card h2{margin:5px 0 20px;font-size:27px}
.gbsubmit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.gbsubmit-grid label{display:grid;gap:7px;min-width:0}.gbsubmit-grid .wide{grid-column:1/-1}
.gbsubmit-grid label>span{color:#95a7b1;font-size:11px;font-weight:800}
.gbsubmit-grid input,.gbsubmit-grid select,.gbsubmit-grid textarea{width:100%;padding:12px 13px;border:1px solid #30404a;border-radius:10px;background:#090f13;color:#fff;font:inherit}
.gbsubmit-grid input,.gbsubmit-grid select{height:48px}.gbsubmit-grid textarea{resize:vertical;line-height:1.6}.gbsubmit-grid small{color:#70828d}
.gbsubmit-terms{max-width:950px;color:#71838d;font-size:11px;line-height:1.6}
.gbsubmit-actions{display:flex;gap:10px;margin-top:20px}
.gbp-alert{margin-bottom:18px;padding:14px 16px;border-radius:10px;font-size:13px}.gbp-alert.is-success{border:1px solid #145b35;background:#082819;color:#88e5b0}.gbp-alert.is-error{border:1px solid #71302e;background:#2c1110;color:#ffaaa5}

/* Operation CTA */
.gb-operation-submit-cta{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:25px;align-items:center;margin-bottom:28px;padding:24px 26px;border:1px solid rgba(255,107,0,.38);border-radius:17px;background:radial-gradient(600px 180px at 80% 30%,rgba(255,107,0,.09),transparent 70%),#0f161a}
.gb-operation-submit-cta h2{margin:5px 0 7px;font-size:27px}.gb-operation-submit-cta p{margin:0;color:#91a4ae}

/* Map */
.gbmap-filter{display:grid;grid-template-columns:220px minmax(220px,1fr) auto;gap:10px;margin-bottom:26px}.gbmap-filter select,.gbmap-filter input{height:46px;padding:0 12px;border:1px solid #30404a;border-radius:10px;background:#090f13;color:#fff}
.gbmap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.gbmap-card{overflow:hidden;border:1px solid #27343d;border-radius:17px;background:#0f161a}.gbmap-media{aspect-ratio:16/9;background:#0a0f12}.gbmap-media img{width:100%!important;height:100%!important;object-fit:cover!important}.gbmap-placeholder{width:100%;height:100%;display:grid;place-items:center;font-size:48px}.gbmap-copy{padding:19px}.gbmap-copy h2{margin:7px 0 8px;font-size:22px}.gbmap-copy p{color:#91a4ae;font-size:12px;line-height:1.6}.gbmap-meta{display:flex;gap:8px;flex-wrap:wrap}.gbmap-meta span{padding:5px 8px;border-radius:999px;background:#151e23;color:#9dafb9;font-size:9px}.gbmap-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.gbmap-actions a{color:#ff7d22;font-size:10px;font-weight:900;text-decoration:none}

@media(max-width:1050px){
    .gbtools-grid,.gbcommunity-grid,.gbmap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
    .gbp-hero{min-height:220px}.gbp-section{padding:46px 0 60px!important}
    .gbtools-grid,.gbcommunity-grid,.gbmap-grid{grid-template-columns:1fr}
    .gbtool-card{grid-template-columns:54px minmax(0,1fr);min-height:190px;padding:17px}.gbtool-icon{width:54px;height:54px}
    .gbjoule-shell{padding:20px}.gbjoule-grid{grid-template-columns:1fr}.gbjoule-result{align-items:center;flex-wrap:wrap}.gbjoule-result strong{margin-left:0;font-size:42px}
    .gbsubmit-grid{grid-template-columns:1fr}.gbsubmit-grid .wide{grid-column:auto}.gbsubmit-card{padding:18px}
    .gbsubmit-actions{display:grid;grid-template-columns:1fr}.gbsubmit-actions .btn{width:100%;justify-content:center}
    .gb-operation-submit-cta{grid-template-columns:1fr}.gb-operation-submit-cta .btn{width:100%;justify-content:center}
    .gbmap-filter{grid-template-columns:1fr}
}


/* ==========================================================
   GHOSTBASE — COMUNIDADE COMPLETA V12
   ========================================================== */

/* Todos os cards agora são interativos. Nenhum fica
   permanentemente "selecionado". */
.gbcommunity-card{
    position:relative;
    overflow:hidden;
    opacity:1!important;
    cursor:pointer;
    transition:
        transform .22s ease,
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease;
}

.gbcommunity-card::before{
    content:"";
    position:absolute;
    inset:-40% auto auto -20%;
    width:180px;
    height:180px;
    border-radius:50%;
    background:rgba(255,107,0,.13);
    filter:blur(18px);
    opacity:0;
    transform:scale(.65);
    transition:.24s ease;
    pointer-events:none;
}

.gbcommunity-card:hover,
.gbcommunity-card:focus-visible{
    transform:translateY(-5px);
    border-color:#ff6b00;
    background:
        linear-gradient(
            145deg,
            rgba(255,107,0,.12),
            rgba(255,107,0,.035) 38%,
            #10171b 72%
        );
    box-shadow:
        0 18px 50px rgba(0,0,0,.28),
        0 0 0 1px rgba(255,107,0,.06);
    outline:none;
}

.gbcommunity-card:hover::before,
.gbcommunity-card:focus-visible::before{
    opacity:1;
    transform:scale(1);
}

.gbcommunity-card .gbcommunity-icon{
    position:relative;
    z-index:1;
    display:grid;
    place-items:center;
    width:52px;
    height:52px;
    border-radius:14px;
    background:#151d22;
    border:1px solid #26343d;
    font-size:27px;
    transition:.22s ease;
}

.gbcommunity-card:hover .gbcommunity-icon,
.gbcommunity-card:focus-visible .gbcommunity-icon{
    transform:translateY(-2px) scale(1.05);
    background:rgba(255,107,0,.14);
    border-color:rgba(255,107,0,.55);
}

.gbcommunity-card h2,
.gbcommunity-card p,
.gbcommunity-card strong{
    position:relative;
    z-index:1;
}

.gbcommunity-card:hover h2,
.gbcommunity-card:focus-visible h2{
    color:#fff;
}

.gbcommunity-card:hover strong,
.gbcommunity-card:focus-visible strong{
    color:#ff8b3d;
}

.gbcommunity-secondary-cta{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:24px;
    align-items:center;
    margin-top:22px;
    padding:24px 26px;
    border:1px solid #27343d;
    border-radius:17px;
    background:#0f161a;
}

.gbcommunity-secondary-cta h2{
    margin:5px 0 7px;
    font-size:25px;
}

.gbcommunity-secondary-cta p{
    margin:0;
    color:#91a4ae;
}

.gbmap-top-actions{
    display:flex;
    justify-content:flex-end;
    margin-bottom:14px;
}

.platform-extra-data{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.platform-extra-data > div{
    min-width:0;
    padding:12px 13px;
    border:1px solid #293740;
    border-radius:9px;
    background:#0b1216;
}

.platform-extra-data small{
    display:block;
    margin-bottom:5px;
    color:#7993a2;
    font-size:9px;
    text-transform:uppercase;
}

.platform-extra-data strong{
    display:block;
    overflow-wrap:anywhere;
    font-size:12px;
    line-height:1.5;
}

@media(max-width:720px){
    .gbcommunity-secondary-cta{
        grid-template-columns:1fr;
    }

    .gbcommunity-secondary-cta .btn{
        width:100%;
        justify-content:center;
    }

    .gbmap-top-actions .btn{
        width:100%;
        justify-content:center;
    }

    .platform-extra-data{
        grid-template-columns:1fr;
    }
}
