/* pagina publica da postagem (Pages/Publico.cshtml) e paginas de termos/privacidade */
:root {
    --fundo: #f3f4f8;
    --solido: #fff;
    --sutil: rgba(15, 18, 34, .05);
    --texto: #0f1222;
    --texto-2: #3a3d52;
    --texto-suave: #6b7086;
    --linha: rgba(15, 18, 34, .08);
    --marca: #5b5bf6;
    --marca-claro: #eef0ff;
    --marca-grad: linear-gradient(135deg, #6d5efc 0%, #3fa7ff 100%);
    --sombra: 0 12px 40px rgba(20, 24, 60, .14);
}

[data-tema="escuro"] {
    --fundo: #0d0f1a;
    --solido: #171a2b;
    --sutil: rgba(255, 255, 255, .06);
    --texto: #eef0fa;
    --texto-2: #c9ccdd;
    --texto-suave: #9aa0ba;
    --linha: rgba(255, 255, 255, .08);
    --marca-claro: rgba(109, 94, 252, .18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--texto);
    background: var(--fundo);
}

a {
    color: var(--marca);
}

.topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 18px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--texto);
    text-decoration: none;
}

    .logo b {
        color: var(--marca);
    }

.mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--marca-grad);
}

.btn-entrar {
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    background: var(--marca-claro);
}

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 14px 30px;
}

.card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--solido);
    box-shadow: var(--sombra);
}

    .card.vazio {
        padding: 40px 24px;
        text-align: center;
    }

.big {
    font-size: 48px;
}

.foto {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.antes-depois {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

    .antes-depois figure {
        position: relative;
        margin: 0;
    }

    .antes-depois img {
        display: block;
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .antes-depois figcaption {
        position: absolute;
        left: 10px;
        bottom: 10px;
        padding: 4px 10px;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        border-radius: 999px;
        background: rgba(0, 0, 0, .6);
    }

    .antes-depois figure:last-child figcaption {
        background: rgba(22, 179, 126, .9);
    }

.corpo {
    padding: 20px 22px 24px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 600;
    color: var(--marca);
    border-radius: 999px;
    background: var(--marca-claro);
}

    .tag.status {
        color: #c2410c;
        background: rgba(249, 115, 22, .12);
    }

        .tag.status.ok {
            color: #0f8a5f;
            background: rgba(22, 179, 126, .14);
        }

h1 {
    margin: 12px 0 6px;
    font-size: 24px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.onde {
    font-size: 14px;
    color: var(--texto-suave);
}

    .onde.evento {
        margin-top: 4px;
        font-weight: 600;
        color: var(--marca);
    }

.desc {
    margin: 14px 0 0;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
    color: var(--texto-2);
}

.numeros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
    margin-top: 18px;
}

    .numeros div {
        padding: 10px;
        text-align: center;
        border-radius: 14px;
        background: var(--sutil);
    }

    .numeros b {
        display: block;
        font-size: 20px;
    }

    .numeros small {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        color: var(--texto-suave);
    }

.cta {
    margin-top: 20px;
    padding-top: 18px;
    text-align: center;
    border-top: 1px solid var(--linha);
}

    .cta p {
        margin: 0 0 14px;
        color: var(--texto-2);
    }

.btn {
    display: inline-block;
    margin: 4px;
    padding: 12px 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    background: var(--marca-grad);
    box-shadow: 0 6px 18px rgba(91, 91, 246, .35);
}

    .btn.ghost {
        color: var(--texto);
        background: var(--sutil);
        box-shadow: none;
    }

.rodape {
    padding: 10px 0 30px;
    font-size: 13px;
    text-align: center;
    color: var(--texto-suave);
}

/* termos de uso / privacidade */
.texto-legal {
    padding: 26px 26px 30px;
    line-height: 1.6;
}

    .texto-legal h1 {
        margin-top: 0;
    }

    .texto-legal h2 {
        margin: 24px 0 6px;
        font-size: 17px;
    }

    .texto-legal p,
    .texto-legal li {
        color: var(--texto-2);
    }

    .texto-legal .atualizado {
        font-size: 13px;
        color: var(--texto-suave);
    }

/* moderacao (Pages/Moderacao.cshtml) */
button.btn {
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn.perigo {
    background: linear-gradient(135deg, #ff4d6d, #e5383b);
    box-shadow: 0 6px 18px rgba(229, 56, 59, .3);
}

.card.denuncia {
    margin-bottom: 14px;
}

    .card.denuncia h2 {
        margin: 12px 0 4px;
        font-size: 18px;
        overflow-wrap: anywhere;
    }

.foto.mini {
    max-height: 200px;
    margin-top: 12px;
    border-radius: 14px;
}

.desc.relato {
    font-size: 14px;
    color: var(--texto-suave);
}

.acoes-moderacao {
    margin-top: 16px;
    text-align: right;
}

.aviso-moderacao {
    margin: 0 0 14px;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 14px;
    background: var(--marca-claro);
}

/* icone do app (wwwroot/img/logo.svg) no lugar do emoji */
img.mark {
    display: block;
    padding: 0;
    object-fit: contain;
    background: none !important;
}
