/* =========================================================
   MEGAPEÃO - SIMULADOR DE PASTA DE INVESTIMENTOS
   style.css
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;

    color: #f5f7ff;

    background:
        linear-gradient(
            rgba(6, 10, 22, 0.94),
            rgba(6, 10, 22, 0.98)
        ),
        url("assets/backgrounds/fundo-principal.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    overflow-x: hidden;

    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   VARIÁVEIS
   ========================================================= */

:root {

    --bg-principal: #070b16;

    --card: rgba(18, 25, 45, 0.88);

    --card-secundario: rgba(25, 34, 58, 0.86);

    --borda: rgba(255, 255, 255, 0.08);

    --texto: #f7f9ff;

    --texto-secundario: #9da9c3;

    --amarelo: #f5c542;

    --azul: #4da3ff;

    --verde: #5ed18a;

    --vermelho: #ef5350;

    --roxo: #ab75ff;

    --rosa: #f06292;

    --laranja: #ff9f43;

    --sombra:
        0 18px 45px rgba(0, 0, 0, 0.35);

    --radius-grande: 24px;

    --radius-medio: 18px;

    --radius-pequeno: 12px;
}


/* =========================================================
   EFEITOS DE FUNDO
   ========================================================= */

.background-effects {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -3;

    overflow: hidden;
}


.background-glow {

    position: absolute;

    width: 320px;

    height: 320px;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.18;
}


.glow-1 {

    top: -100px;

    left: -120px;

    background: #366cff;
}


.glow-2 {

    top: 35%;

    right: -150px;

    background: #8d4cff;
}


.glow-3 {

    bottom: -130px;

    left: 20%;

    background: #f5c542;
}


/* =========================================================
   DECORAÇÕES
   ========================================================= */

.decoracoes-site {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -1;

    overflow: hidden;
}


.decoracao {

    position: absolute;

    object-fit: contain;

    user-select: none;

    opacity: 0.12;
}


.decoracao-01 {

    width: 220px;

    top: 100px;

    right: -50px;

    transform: rotate(-8deg);
}


.decoracao-02 {

    width: 190px;

    top: 55%;

    left: -65px;

    transform: rotate(9deg);
}


.decoracao-03 {

    width: 230px;

    bottom: 80px;

    right: -80px;

    transform: rotate(-12deg);
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.topo {

    width: 100%;

    padding: 18px 18px 8px;
}


.marca {

    max-width: 980px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 12px;
}


.logo-container {

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;
}


.logo-megapeao {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;
}


.marca-texto {

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.marca-nome {

    font-size: 19px;

    font-weight: 800;

    letter-spacing: 0.3px;

    color: #ffffff;
}


.marca-subtitulo {

    font-size: 12px;

    color: var(--texto-secundario);
}
/* =========================================================
   CABEÇALHO / LOGO DO SISTEMA
   ========================================================= */

.topo {
    width: 100%;
    padding: 22px 16px 8px;
}

.logo-sistema-container {
    width: min(100%, 650px);

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-sistema {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 10px 25px rgba(0, 0, 0, 0.45));
}

/* =========================================================
   CONTAINER
   ========================================================= */

.app-container {

    width: min(100%, 980px);

    margin: 0 auto;

    padding: 20px 16px 60px;

    position: relative;

    z-index: 1;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    padding: 24px 4px 26px;
}


.hero-badge {

    display: inline-flex;

    align-items: center;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.3px;

    color: var(--amarelo);

    background: rgba(245, 197, 66, 0.1);

    border: 1px solid rgba(245, 197, 66, 0.2);

    margin-bottom: 12px;
}


.hero h1 {

    font-size: clamp(30px, 7vw, 48px);

    line-height: 1.05;

    max-width: 700px;

    color: #ffffff;

    margin-bottom: 12px;
}


.hero p {

    max-width: 620px;

    color: var(--texto-secundario);

    font-size: 15px;

    line-height: 1.6;
}


/* =========================================================
   CARD PADRÃO
   ========================================================= */

.card,
.categoria-card {

    background:
        linear-gradient(
            145deg,
            rgba(26, 35, 60, 0.94),
            rgba(14, 20, 36, 0.94)
        );

    border: 1px solid var(--borda);

    border-radius: var(--radius-grande);

    box-shadow: var(--sombra);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);
}


.card {

    padding: 22px;

    margin-bottom: 18px;
}


.card-header,
.grafico-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}


.card-label {

    display: block;

    margin-bottom: 5px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;

    color: var(--amarelo);
}


.card h2,
.section-title h2 {

    font-size: 21px;

    color: #ffffff;
}


/* =========================================================
   VALOR DA PASTA
   ========================================================= */

.valor-pasta-card {

    overflow: hidden;

    position: relative;
}


.valor-pasta-card::after {

    content: "";

    position: absolute;

    width: 130px;

    height: 130px;

    right: -55px;

    top: -55px;

    border-radius: 50%;

    background: rgba(245, 197, 66, 0.12);

    filter: blur(8px);
}


.input-dinheiro {

    position: relative;

    display: flex;

    align-items: center;

    border-radius: var(--radius-medio);

    background: rgba(0, 0, 0, 0.22);

    border: 1px solid rgba(255, 255, 255, 0.08);

    overflow: hidden;
}


.prefixo {

    padding-left: 18px;

    padding-right: 6px;

    color: var(--amarelo);

    font-size: 20px;

    font-weight: 800;
}


.input-dinheiro input {

    width: 100%;

    min-width: 0;

    border: none;

    outline: none;

    background: transparent;

    color: #ffffff;

    font-size: 26px;

    font-weight: 800;

    padding: 18px 18px 18px 4px;
}


.input-dinheiro input::-webkit-inner-spin-button,
.input-dinheiro input::-webkit-outer-spin-button {

    appearance: none;

    margin: 0;
}


/* =========================================================
   GRÁFICO
   ========================================================= */

.grafico-card {

    position: relative;

    overflow: hidden;
}


.grafico-card::before {

    content: "";

    position: absolute;

    width: 260px;

    height: 260px;

    top: 100px;

    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(77, 163, 255, 0.07);

    filter: blur(35px);
}


.status-carteira {

    flex-shrink: 0;

    padding: 7px 11px;

    border-radius: 999px;

    background: rgba(94, 209, 138, 0.12);

    border: 1px solid rgba(94, 209, 138, 0.22);

    color: var(--verde);

    font-size: 11px;

    font-weight: 800;
}


.grafico-wrapper {

    position: relative;

    width: min(100%, 360px);

    aspect-ratio: 1 / 1;

    margin: 10px auto 22px;

    display: flex;

    align-items: center;

    justify-content: center;
}


#graficoPizza {

    width: 100% !important;

    height: 100% !important;

    position: relative;

    z-index: 2;
}


.resumo-distribuicao {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.resumo-item {

    min-width: 0;

    padding: 15px;

    border-radius: var(--radius-medio);

    background: rgba(0, 0, 0, 0.18);

    border: 1px solid rgba(255, 255, 255, 0.06);
}


.resumo-item span {

    display: block;

    color: var(--texto-secundario);

    font-size: 11px;

    margin-bottom: 5px;
}


.resumo-item strong {

    display: block;

    color: #ffffff;

    font-size: 18px;
}


/* =========================================================
   SEÇÃO DE CATEGORIAS
   ========================================================= */

.categorias-section {

    margin-top: 34px;
}


.section-title {

    padding: 0 3px;

    margin-bottom: 15px;
}


/* =========================================================
   CARD DE CATEGORIA
   ========================================================= */

.categoria-card {

    position: relative;

    overflow: hidden;

    padding: 20px;

    margin-bottom: 14px;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}


.categoria-card:active {

    transform: scale(0.995);
}


.categoria-conteudo {

    position: relative;

    z-index: 3;
}


.categoria-imagem {

    position: absolute;

    right: -15px;

    bottom: -25px;

    width: 130px;

    height: 130px;

    object-fit: contain;

    opacity: 0.13;

    pointer-events: none;

    user-select: none;

    z-index: 1;

    filter:
        drop-shadow(0 7px 16px rgba(0, 0, 0, 0.38));
}


/* Cada imagem pode ser customizada individualmente depois */

.categoria-imagem-graduadas {}

.categoria-imagem-vintage {}

.categoria-imagem-joias {}

.categoria-imagem-bigten {}

.categoria-imagem-ilustradores {}

.categoria-imagem-internacional {}

.categoria-imagem-oportunidades {}


/* =========================================================
   TOPO DAS CATEGORIAS
   ========================================================= */

.categoria-topo {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 20px;
}


.categoria-identificacao {

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 0;
}


.categoria-cor {

    width: 11px;

    height: 38px;

    border-radius: 999px;

    flex-shrink: 0;
}


.categoria-identificacao h3 {

    color: #ffffff;

    font-size: 16px;

    line-height: 1.15;

    margin-bottom: 5px;
}


.categoria-valor {

    display: block;

    color: var(--texto-secundario);

    font-size: 12px;
}


.categoria-percentual {

    min-width: 66px;

    text-align: right;

    font-size: 24px;

    color: #ffffff;

    font-weight: 900;
}


/* =========================================================
   CORES DAS CATEGORIAS
   ========================================================= */

.cor-graduadas {

    background: #f5c542;

    box-shadow: 0 0 14px rgba(245, 197, 66, 0.45);
}


.cor-vintage {

    background: #b5835a;

    box-shadow: 0 0 14px rgba(181, 131, 90, 0.4);
}


.cor-joias {

    background: #4da3ff;

    box-shadow: 0 0 14px rgba(77, 163, 255, 0.45);
}


.cor-bigten {

    background: #ef5350;

    box-shadow: 0 0 14px rgba(239, 83, 80, 0.45);
}


.cor-ilustradores {

    background: #f06292;

    box-shadow: 0 0 14px rgba(240, 98, 146, 0.45);
}


.cor-internacional {

    background: #ab75ff;

    box-shadow: 0 0 14px rgba(171, 117, 255, 0.45);
}


.cor-oportunidades {

    background: #5ed18a;

    box-shadow: 0 0 14px rgba(94, 209, 138, 0.45);
}


/* =========================================================
   SLIDERS
   ========================================================= */

.slider-area {

    position: relative;

    width: 100%;

    padding: 12px 0 13px;

    touch-action: pan-y;
}


/*
   IMPORTANTE:
   input range nativo.
   O usuário pode encostar no marcador e arrastar.
*/

.slider-area input[type="range"] {

    width: 100%;

    height: 34px;

    margin: 0;

    padding: 0;

    display: block;

    cursor: grab;

    appearance: none;

    -webkit-appearance: none;

    background: transparent;

    touch-action: pan-y;
}


.slider-area input[type="range"]:active {

    cursor: grabbing;
}


/* TRILHO - WEBKIT */

.slider-area input[type="range"]::-webkit-slider-runnable-track {

    width: 100%;

    height: 9px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.22),
            rgba(255, 255, 255, 0.08)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* BOTÃO DO SLIDER - WEBKIT */

.slider-area input[type="range"]::-webkit-slider-thumb {

    appearance: none;

    -webkit-appearance: none;

    width: 28px;

    height: 28px;

    border-radius: 50%;

    background: #ffffff;

    border: 5px solid #172039;

    margin-top: -10px;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.08);
}


/* FIREFOX */

.slider-area input[type="range"]::-moz-range-track {

    width: 100%;

    height: 9px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.08);
}


.slider-area input[type="range"]::-moz-range-thumb {

    width: 21px;

    height: 21px;

    border-radius: 50%;

    background: #ffffff;

    border: 5px solid #172039;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.5);
}


/* SLIDER DESABILITADO */

.slider-area input[type="range"]:disabled {

    cursor: not-allowed;

    opacity: 0.35;
}


/* =========================================================
   TRAVA
   ========================================================= */

.categoria-footer {

    display: flex;

    justify-content: flex-end;
}


.lock-control {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    cursor: pointer;

    user-select: none;
}


.lock-control input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.lock-switch {

    width: 42px;

    height: 24px;

    border-radius: 999px;

    position: relative;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.1);

    transition: 0.25s ease;
}


.lock-switch::after {

    content: "";

    position: absolute;

    top: 3px;

    left: 3px;

    width: 16px;

    height: 16px;

    border-radius: 50%;

    background: #ffffff;

    transition: 0.25s ease;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.4);
}


.lock-control input:checked + .lock-switch {

    background: rgba(239, 83, 80, 0.3);

    border-color: rgba(239, 83, 80, 0.45);
}


.lock-control input:checked + .lock-switch::after {

    transform: translateX(18px);

    background: #ff6d68;
}


.lock-text {

    min-width: 50px;

    color: var(--texto-secundario);

    font-size: 12px;

    font-weight: 700;
}


/* CARD TRAVADO */

.categoria-card.travada {

    border-color: rgba(239, 83, 80, 0.28);

    background:
        linear-gradient(
            145deg,
            rgba(41, 29, 42, 0.95),
            rgba(20, 17, 29, 0.95)
        );
}


.categoria-card.travada .categoria-imagem {

    opacity: 0.06;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.acoes {

    margin-top: 25px;
}


.btn {

    width: 100%;

    min-height: 52px;

    border: none;

    border-radius: var(--radius-medio);

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        border-color 0.18s ease;
}


.btn:active {

    transform: scale(0.985);
}


.btn-secundario {

    color: #ffffff;

    background: rgba(255, 255, 255, 0.06);

    border: 1px solid rgba(255, 255, 255, 0.1);
}


.btn-secundario:hover {

    border-color: rgba(255, 255, 255, 0.2);
}


/* =========================================================
   RODAPÉ
   ========================================================= */

.rodape {

    position: relative;

    max-width: 980px;

    margin: 0 auto;

    padding: 45px 20px 55px;

    text-align: center;

    overflow: hidden;
}


.logo-watermark {

    width: 150px;

    max-height: 150px;

    object-fit: contain;

    opacity: 0.05;

    position: absolute;

    left: 50%;

    top: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;
}


.rodape p {

    position: relative;

    z-index: 2;

    color: #ffffff;

    font-weight: 900;

    font-size: 17px;

    margin-bottom: 5px;
}


.rodape span {

    position: relative;

    z-index: 2;

    color: var(--texto-secundario);

    font-size: 11px;
}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (min-width: 720px) {

    .app-container {

        padding-left: 24px;

        padding-right: 24px;
    }


    .valor-pasta-card {

        padding: 26px;
    }


    .grafico-card {

        padding: 28px;
    }


    .categoria-card {

        padding: 22px 24px;
    }


    .categoria-imagem {

        width: 155px;

        height: 155px;
    }

}


@media (max-width: 430px) {

    .topo {

        padding-left: 14px;

        padding-right: 14px;
    }


    .app-container {

        padding-left: 12px;

        padding-right: 12px;
    }


    .hero {

        padding-top: 18px;
    }


    .card {

        padding: 18px;
    }


    .categoria-card {

        padding: 18px 16px;
    }


    .categoria-percentual {

        font-size: 22px;

        min-width: 58px;
    }


    .categoria-imagem {

        width: 110px;

        height: 110px;

        right: -12px;

        bottom: -20px;
    }


    .grafico-wrapper {

        width: min(100%, 315px);
    }



}