﻿/* =========================================================
   PARABOBE — REDE SOCIAL
   Identidade: social, nostálgica, moderna e vibrante

   Base visual:
   - Branco / preto
   - Roxo vivo
   - Interface limpa
   - Nostalgia de redes sociais clássicas
   - Mobile-first na interação
   ========================================================= */


/* =========================================================
   VARIÁVEIS
   ========================================================= */

:root {
    --roxo: #9b4dff;
    --roxo-vivo: #a855f7;
    --roxo-escuro: #7838c7;
    --roxo-claro: #f5edff;
    --roxo-claro-2: #faf6ff;
    --roxo-borda: #e3d1f5;
    --preto: #151515;
    --preto-suave: #252525;
    --texto: #202020;
    --texto-secundario: #555555;
    --texto-suave: #777777;
    --texto-claro: #999999;
    --fundo: #f5f6f8;
    --branco: #ffffff;
    --borda: #e8e8eb;
    --borda-suave: #eeeeef;
    --verde: #28633b;
    --verde-fundo: #edf8f0;
    --vermelho: #d64545;
    --vermelho-fundo: #fff1f1;
    --sombra-leve: 0 2px 8px rgba(0, 0, 0, .035);
    --sombra-media: 0 8px 28px rgba(0, 0, 0, .07);
    --sombra-roxa: 0 8px 25px rgba(155, 77, 255, .20);
    --raio-pequeno: 8px;
    --raio-medio: 13px;
    --raio-grande: 18px;
    --altura-toque: 44px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background: var(--fundo);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--fundo);
    color: var(--preto);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* =========================================================
   ELEMENTOS GERAIS
   ========================================================= */

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

a:hover {
    color: var(--roxo);
}


/* =========================================================
   CONTAINER PRINCIPAL
   ========================================================= */

.timeline-container {
    width: 100%;
    max-width: 680px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--branco);
    border-left: 1px solid var(--borda);
    border-right: 1px solid var(--borda);
    box-shadow: 0 0 30px rgba(0, 0, 0, .035);
}


/* =========================================================
   HEADER PRINCIPAL
   ========================================================= */

.timeline-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 20px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--borda-suave);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   LOGO
   ========================================================= */

.timeline-header h1 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #111111;
}

.timeline-header h1::first-letter {
    color: var(--roxo);
}


/* =========================================================
   MENU DO USUÁRIO
   ========================================================= */

.user-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .88rem;
}

.user-menu a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    color: #444444;
    transition: color .2s ease, background-color .2s ease;
}

.user-menu a:hover {
    color: var(--roxo);
}

.btn-logout {
    color: var(--vermelho) !important;
}

.btn-logout:hover {
    color: #b52e2e !important;
}


/* =========================================================
   ÁREA DE PUBLICAÇÃO
   ========================================================= */

.post-box {
    padding: 20px;
    background: var(--branco);
    border-bottom: 1px solid var(--borda-suave);
}


/* =========================================================
   TEXTAREA PRINCIPAL
   ========================================================= */

.post-box textarea {
    display: block;
    width: 100%;
    min-height: 90px;
    padding: 14px 15px;
    border: 1px solid #dddde2;
    border-radius: var(--raio-medio);
    background: #fafafa;
    color: #171717;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.post-box textarea::placeholder {
    color: #999999;
}

.post-box textarea:hover {
    border-color: #cfc0d8;
}

.post-box textarea:focus {
    background: #ffffff;
    border-color: var(--roxo);
    box-shadow: 0 0 0 3px rgba(155, 77, 255, .12), 0 4px 16px rgba(155, 77, 255, .05);
}


/* =========================================================
   AÇÕES DA PUBLICAÇÃO
   ========================================================= */

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}


/* =========================================================
   CONTADOR
   ========================================================= */

#contador {
    color: #8a8a8a;
    font-size: .82rem;
    font-weight: 500;
    transition: color .2s ease;
}

.contador-alerta {
    color: var(--vermelho) !important;
    font-weight: 700;
}


/* =========================================================
   BOTÃO PUBLICAR
   ========================================================= */

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 21px;
    border: none;
    border-radius: 999px;
    background: var(--preto);
    color: #ffffff;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 750;
    letter-spacing: .1px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .08);
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.btn-submit:hover {
    background: var(--roxo);
    color: #ffffff;
    box-shadow: 0 7px 20px rgba(155, 77, 255, .28);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: scale(.97);
}


/* =========================================================
   FEED
   ========================================================= */

.feed {
    background: var(--branco);
}

.feed h2 {
    margin: 0;
    padding: 18px 20px 13px;
    color: #777777;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--borda-suave);
}


/* =========================================================
   POST
   ========================================================= */

.post-card {
    position: relative;
    padding: 19px 20px 16px;
    background: var(--branco);
    border-bottom: 1px solid var(--borda-suave);
    transition: background-color .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    background: #fefeff;
}


/* =========================================================
   CABEÇALHO DO POST
   ========================================================= */

.post-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
}


/* =========================================================
   AUTOR
   ========================================================= */

.post-autor {
    font-size: .94rem;
    font-weight: 750;
    min-width: 0;
}

.post-autor a {
    color: var(--preto);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.post-autor a:hover {
    color: var(--roxo);
}


/* =========================================================
   INFORMAÇÕES DO POST
   ========================================================= */

.post-info {
    color: #858585;
    font-size: .78rem;
    font-weight: 400;
    white-space: nowrap;
}

.post-info::before {
    content: "•";
    margin-right: 8px;
    color: #c2c2c2;
}


/* =========================================================
   TEXTO DO POST
   ========================================================= */

.post-content {
    padding-left: 0;
    min-width: 0;
}

.post-content p {
    margin: 0;
    color: var(--texto);
    font-size: 1rem;
    line-height: 1.58;
    word-break: break-word;
    overflow-wrap: anywhere;
}


/* =========================================================
   LINKS DOS POSTS
   ========================================================= */

.post-link {
    color: var(--roxo);
    font-weight: 650;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s ease, background-color .2s ease;
}

.post-link:hover {
    color: var(--roxo-escuro);
    text-decoration: underline;
}


/* =========================================================
   IMAGENS DOS POSTS
   ========================================================= */

.post-card img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}


/* =========================================================
   ESTADO VAZIO
   ========================================================= */

.empty-feed {
    padding: 55px 25px;
    color: #999999;
    text-align: center;
    font-size: .95rem;
}

.empty-feed::before {
    content: "♡";
    display: block;
    margin-bottom: 8px;
    color: var(--roxo);
    font-size: 2rem;
    text-shadow: 0 4px 14px rgba(155, 77, 255, .22);
}


/* =========================================================
   PERFIL
   ========================================================= */

.profile-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 25px 20px;
    background: var(--branco);
    border-bottom: 1px solid var(--borda-suave);
}


/* =========================================================
   AVATAR
   ========================================================= */

.avatar-placeholder,
.profile-box img {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, var(--roxo), var(--roxo-vivo));
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 5px 18px rgba(155, 77, 255, .22);
}


/* =========================================================
   INFORMAÇÕES DO PERFIL
   ========================================================= */

.profile-info {
    min-width: 0;
}

.profile-info h2 {
    margin: 1px 0 4px;
    color: var(--preto);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.4px;
    overflow-wrap: anywhere;
}

.profile-details {
    margin: 0 0 9px;
    color: #777777;
    font-size: .85rem;
}

.profile-desc {
    margin: 0 0 10px;
    color: #333333;
    font-size: .93rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.profile-joined {
    margin: 0;
    color: #999999;
    font-size: .75rem;
}


/* =========================================================
   FORMULÁRIOS
   ========================================================= */

.form-auth {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
}

.form-group {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333333;
    font-size: .85rem;
    font-weight: 650;
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid #d5d5d9;
    border-radius: 9px;
    background: #ffffff;
    color: var(--preto);
    font-family: inherit;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a1a1a1;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #cbb8d3;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--roxo);
    box-shadow: 0 0 0 3px rgba(155, 77, 255, .12);
    background: #ffffff;
}


/* =========================================================
   CONTAINER DE AUTENTICAÇÃO
   ========================================================= */

.container {
    width: calc(100% - 40px);
    max-width: 420px;
    margin: 55px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--borda);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
}


/* =========================================================
   TÍTULOS DE FORMULÁRIOS
   ========================================================= */

.container h1,
.container h2 {
    margin-top: 0;
    color: #111111;
    letter-spacing: -.7px;
}

.container h1 {
    font-size: 1.8rem;
}

.container h2 {
    font-size: 1.35rem;
}


/* =========================================================
   BOTÕES GERAIS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    margin-top: 10px;
    border: none;
    border-radius: 999px;
    background: var(--preto);
    color: #ffffff;
    text-decoration: none;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.btn:hover {
    background: var(--roxo);
    color: #ffffff;
    box-shadow: 0 7px 20px rgba(155, 77, 255, .27);
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(.97);
}


/* =========================================================
   MENSAGENS / ALERTAS
   ========================================================= */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    margin-bottom: 15px;
    border-radius: 9px;
    font-size: .88rem;
}

.alert-success {
    background: var(--verde-fundo);
    color: var(--verde);
    border: 1px solid #d2ecd9;
}

.alert-error {
    background: var(--vermelho-fundo);
    color: #8a2f2f;
    border: 1px solid #f0d0d0;
}


/* =========================================================
   DETALHES SOCIAIS
   ========================================================= */

.post-card strong {
    font-weight: 750;
}

.post-card a {
    transition: color .2s ease;
}


/* =========================================================
   ÁREA DE INTERAÇÃO DOS POSTS
   ========================================================= */

.post-interactions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 13px;
    margin-left: 52px;
    padding-top: 2px;
}

.post-interaction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #808080;
    font-size: .76rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, transform .15s ease;
}

.post-interaction:hover {
    color: var(--roxo);
    background: var(--roxo-claro);
}

.post-interaction:active {
    transform: scale(.97);
}

.post-interaction-icon {
    font-size: .92rem;
    line-height: 1;
}


/* =========================================================
   FOTO / BOTÃO DE FOTO
   ========================================================= */

.photo-button {
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease !important;
}

.photo-button:hover {
    background: var(--roxo-claro) !important;
    border-color: var(--roxo-borda) !important;
    color: var(--roxo-escuro) !important;
    box-shadow: 0 4px 12px rgba(155, 77, 255, .08);
}

.photo-button:active {
    transform: scale(.98);
}

.photo-preview {
    box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
}

.remove-photo {
    transition: color .2s ease;
}

.remove-photo:hover {
    color: #b52e2e;
}


/* =========================================================
   =========================================================
   CONTESTAÇÕES
   =========================================================
   ========================================================= */


/* =========================================================
   CONTAINER PRINCIPAL
   ========================================================= */

.contestacoes-container {
    width: 100%;
    max-width: 680px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 22px 20px 80px;
    background: var(--branco);
    border-left: 1px solid var(--borda);
    border-right: 1px solid var(--borda);
    box-shadow: 0 0 30px rgba(0, 0, 0, .035);
}


/* =========================================================
   VOLTAR
   ========================================================= */

.contestacoes-voltar {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 5px 10px;
    margin-bottom: 18px;
    border-radius: 9px;
    color: #707070;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 650;
    transition: color .2s ease, background-color .2s ease, transform .15s ease;
}

.contestacoes-voltar:hover {
    color: var(--roxo);
    background: var(--roxo-claro);
}

.contestacoes-voltar:active {
    transform: scale(.97);
}

.contestacoes-voltar-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--roxo-claro);
    color: var(--roxo);
    font-size: 1rem;
    line-height: 1;
}


/* =========================================================
   TÍTULO DA PÁGINA
   ========================================================= */

.contestacoes-titulo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0 22px;
    border-bottom: 1px solid var(--borda-suave);
}

.contestacoes-titulo-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 15px;
    background: linear-gradient( 135deg, var(--roxo), var(--roxo-vivo));
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 7px 18px rgba(155, 77, 255, .22);
}

.contestacoes-titulo h1 {
    margin: 0;
    color: #111111;
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.7px;
}

.contestacoes-titulo p {
    margin: 4px 0 0;
    color: var(--texto-suave);
    font-size: .87rem;
    line-height: 1.4;
}


/* =========================================================
   PUBLICAÇÃO ORIGINAL
   ========================================================= */

.publicacao-original {
    margin-top: 18px;
    padding: 18px;
    background: #fbfbfc;
    border: 1px solid var(--borda);
    border-radius: var(--raio-medio);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .025);
}

.publicacao-original-topo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}


/* =========================================================
   AVATAR DA PUBLICAÇÃO
   ========================================================= */

.publicacao-avatar,
.publicacao-avatar-sem-foto {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.publicacao-avatar-sem-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, var(--roxo), var(--roxo-vivo));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}


/* =========================================================
   AUTOR DA PUBLICAÇÃO
   ========================================================= */

.publicacao-autor {
    min-width: 0;
}

.publicacao-autor a {
    display: block;
    color: var(--preto);
    font-size: .94rem;
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.publicacao-autor a:hover {
    color: var(--roxo);
}

.publicacao-bairro {
    margin-top: 1px;
    color: #8a8a8a;
    font-size: .76rem;
}


/* =========================================================
   CONTEÚDO DA PUBLICAÇÃO ORIGINAL
   ========================================================= */

.publicacao-conteudo {
    margin-top: 13px;
    color: var(--texto);
    font-size: .98rem;
    line-height: 1.58;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.publicacao-imagem {
    display: block;
    width: 100%;
    max-height: 520px;
    margin-top: 14px;
    border-radius: 11px;
    object-fit: cover;
}


/* =========================================================
   LINKS DAS CONTESTAÇÕES
   ========================================================= */

.contestacao-link {
    color: var(--roxo);
    font-weight: 650;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contestacao-link:hover {
    color: var(--roxo-escuro);
    text-decoration: underline;
}


/* =========================================================
   ÁREA DAS CONTESTAÇÕES
   ========================================================= */

.contestacoes-area {
    margin-top: 22px;
}

.contestacoes-area-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--borda-suave);
}

.contestacoes-area-titulo h2 {
    margin: 0;
    color: #222222;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.2px;
}

.contestacoes-contador {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--roxo-claro);
    color: var(--roxo-escuro);
    font-size: .72rem;
    font-weight: 750;
    white-space: nowrap;
}


/* =========================================================
   LISTA DE CONTESTAÇÕES
   ========================================================= */

.lista-contestacoes {
    display: flex;
    flex-direction: column;
}

.contestacao-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 17px 2px;
    border-bottom: 1px solid var(--borda-suave);
}

.contestacao-item:last-child {
    border-bottom: none;
}


/* =========================================================
   AVATAR DA CONTESTAÇÃO
   ========================================================= */

.contestacao-avatar,
.contestacao-avatar-sem-foto {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.contestacao-avatar-sem-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, var(--roxo), var(--roxo-vivo));
    color: #ffffff;
    font-size: .84rem;
    font-weight: 800;
}


/* =========================================================
   CORPO DA CONTESTAÇÃO
   ========================================================= */

.contestacao-corpo {
    flex: 1;
    min-width: 0;
}

.contestacao-cabecalho {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-bottom: 4px;
}

.contestacao-nome {
    color: var(--preto);
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contestacao-nome:hover {
    color: var(--roxo);
}

.contestacao-data {
    color: #999999;
    font-size: .7rem;
    white-space: nowrap;
}

.contestacao-texto {
    color: var(--texto);
    font-size: .93rem;
    line-height: 1.52;
    word-break: break-word;
    overflow-wrap: anywhere;
}


/* =========================================================
   ESTADO SEM CONTESTAÇÕES
   ========================================================= */

.sem-contestacoes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 30px 20px;
    text-align: center;
    color: var(--texto-suave);
}

.sem-contestacoes-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--roxo-claro);
    color: var(--roxo);
    font-size: 1.4rem;
    box-shadow: 0 6px 18px rgba(155, 77, 255, .10);
}

.sem-contestacoes strong {
    color: #333333;
    font-size: .92rem;
    font-weight: 750;
}

.sem-contestacoes span {
    margin-top: 4px;
    color: #999999;
    font-size: .78rem;
}


/* =========================================================
   NOVA CONTESTAÇÃO
   ========================================================= */

.nova-contestacao {
    margin-top: 25px;
    padding: 18px;
    background: linear-gradient( 180deg, #fcfaff 0%, #ffffff 100%);
    border: 1px solid var(--roxo-borda);
    border-radius: var(--raio-medio);
    box-shadow: 0 5px 20px rgba(155, 77, 255, .055);
}

.nova-contestacao-cabecalho {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

.nova-contestacao-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--roxo-claro);
    color: var(--roxo);
    font-size: 1.1rem;
}

.nova-contestacao-cabecalho h3 {
    margin: 0;
    color: #222222;
    font-size: .98rem;
    font-weight: 800;
}

.nova-contestacao-cabecalho p {
    margin: 2px 0 0;
    color: #888888;
    font-size: .76rem;
}


/* =========================================================
   ERRO DA CONTESTAÇÃO
   ========================================================= */

.contestacao-erro {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    padding: 10px 12px;
    border: 1px solid #f0d0d0;
    border-radius: 9px;
    background: var(--vermelho-fundo);
    color: #8a2f2f;
    font-size: .82rem;
}

.contestacao-erro-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--vermelho);
    color: #ffffff;
    font-size: .7rem;
    font-weight: 800;
}


/* =========================================================
   FORMULÁRIO DE CONTESTAÇÃO
   ========================================================= */

.form-contestacao {
    width: 100%;
}

.form-contestacao textarea {
    display: block;
    width: 100%;
    min-height: 112px;
    padding: 13px 14px;
    border: 1px solid #d9d1df;
    border-radius: 11px;
    background: #ffffff;
    color: var(--texto);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-contestacao textarea::placeholder {
    color: #aaa0ae;
}

.form-contestacao textarea:hover {
    border-color: #c8b5d5;
}

.form-contestacao textarea:focus {
    border-color: var(--roxo);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(155, 77, 255, .11);
}


/* =========================================================
   RODAPÉ DO FORMULÁRIO
   ========================================================= */

.contestacao-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.contestacao-contador {
    color: #999999;
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   BOTÃO CONTESTAR
   ========================================================= */

.contestacao-botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient( 135deg, var(--roxo), var(--roxo-vivo));
    color: #ffffff;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(155, 77, 255, .22);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.contestacao-botao:hover {
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(155, 77, 255, .30);
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.contestacao-botao:active {
    transform: scale(.97);
}

.contestacao-botao-icone {
    font-size: .95rem;
    line-height: 1;
}


/* =========================================================
   FUTURO SISTEMA DE MENSAGENS
   ---------------------------------------------------------
   Estas classes já deixam a interface preparada para um
   futuro botão flutuante de mensagens e painel global.
   ========================================================= */


/* BOTÃO FLUTUANTE */

.btn-mensagem-flutuante {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: linear-gradient( 135deg, var(--roxo), var(--roxo-vivo));
    color: #ffffff;
    font-size: 1.35rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 9px 25px rgba(155, 77, 255, .32);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-mensagem-flutuante:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 13px 30px rgba(155, 77, 255, .40);
    filter: brightness(1.04);
}

.btn-mensagem-flutuante:active {
    transform: translateY(0) scale(.95);
}


/* INDICADOR DE NOVA MENSAGEM */

.btn-mensagem-flutuante .mensagem-notificacao {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--vermelho);
    color: #ffffff;
    font-size: .61rem;
    font-weight: 800;
    line-height: 1;
}


/* =========================================================
   FUTURO PAINEL DE MENSAGENS
   ========================================================= */

.mensagens-painel {
    position: fixed;
    right: 22px;
    bottom: 90px;
    z-index: 899;
    width: min(360px, calc(100vw - 28px));
    max-height: min(560px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--borda);
    border-radius: 17px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .15);
}


/* CABEÇALHO FUTURO */

.mensagens-painel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 57px;
    padding: 0 15px;
    border-bottom: 1px solid var(--borda-suave);
    background: #ffffff;
}

.mensagens-painel-header h2 {
    margin: 0;
    font-size: .98rem;
    font-weight: 800;
    color: #222222;
}


/* ÁREA DE MENSAGENS */

.mensagens-painel-conteudo {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f3;
}

::-webkit-scrollbar-thumb {
    background: #c5a7d6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--roxo);
}


/* =========================================================
   RESPONSIVIDADE — TABLET
   ========================================================= */

@media (max-width: 700px) {
    body {
        background: #ffffff;
    }
    .timeline-container,
    .contestacoes-container {
        max-width: 100%;
        border-left: none;
        border-right: none;
        box-shadow: none;
    }
    .timeline-header {
        padding: 0 16px;
    }
    .post-box {
        padding: 16px;
    }
    .post-card {
        padding: 16px;
    }
    .feed h2 {
        padding-left: 16px;
        padding-right: 16px;
    }
    .profile-box {
        padding: 20px 16px;
    }
    .post-interactions {
        margin-left: 0;
        gap: 8px;
    }
    /* CONTESTAÇÕES */
    .contestacoes-container {
        padding: 16px 16px 90px;
    }
    .contestacoes-titulo {
        padding-bottom: 18px;
    }
    .publicacao-original {
        padding: 16px;
    }
    .nova-contestacao {
        padding: 16px;
    }
}


/* =========================================================
   RESPONSIVIDADE — CELULAR
   ========================================================= */

@media (max-width: 480px) {
    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */
    .timeline-header {
        min-height: 58px;
        padding: 0 13px;
    }
    .timeline-header h1 {
        font-size: 1.4rem;
    }
    .user-menu {
        gap: 5px;
        font-size: .76rem;
    }
    .user-menu a {
        min-height: 40px;
        padding: 0 5px;
    }
    /* -----------------------------------------------------
       COMPOSITOR
       ----------------------------------------------------- */
    .post-box {
        padding: 14px;
    }
    .post-box textarea {
        min-height: 86px;
        padding: 13px;
        font-size: 16px;
    }
    .post-actions {
        gap: 8px;
    }
    .btn-submit {
        min-height: 44px;
        padding: 0 17px;
    }
    /* -----------------------------------------------------
       FEED
       ----------------------------------------------------- */
    .feed h2 {
        padding: 16px 14px 12px;
    }
    .post-card {
        padding: 15px 14px;
    }
    .post-header {
        gap: 8px;
    }
    .post-content p {
        font-size: .97rem;
        line-height: 1.56;
    }
    .post-info {
        font-size: .72rem;
    }
    /* -----------------------------------------------------
       INTERAÇÕES
       ----------------------------------------------------- */
    .post-interactions {
        margin-top: 12px;
        gap: 5px;
    }
    .post-interaction {
        min-height: 40px;
        padding: 5px 9px;
        border-radius: 9px;
        font-size: .73rem;
    }
    .post-interaction-icon {
        font-size: .95rem;
    }
    /* -----------------------------------------------------
       PERFIL
       ----------------------------------------------------- */
    .profile-box {
        gap: 13px;
        padding: 19px 14px;
    }
    .avatar-placeholder,
    .profile-box img {
        width: 68px;
        height: 68px;
    }
    .avatar-placeholder {
        font-size: 1.65rem;
    }
    .profile-info h2 {
        font-size: 1.15rem;
    }
    /* -----------------------------------------------------
       AUTENTICAÇÃO
       ----------------------------------------------------- */
    .container {
        width: calc(100% - 24px);
        margin: 25px auto;
        padding: 22px 18px;
        border-radius: 13px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 46px;
        font-size: 16px;
    }
    /* -----------------------------------------------------
       CONTESTAÇÕES
       ----------------------------------------------------- */
    .contestacoes-container {
        padding: 12px 12px 90px;
    }
    .contestacoes-voltar {
        min-height: 42px;
        margin-bottom: 12px;
        padding: 5px 7px;
        font-size: .81rem;
    }
    .contestacoes-titulo {
        align-items: flex-start;
        gap: 11px;
        padding: 3px 2px 17px;
    }
    .contestacoes-titulo-icone {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 1.15rem;
    }
    .contestacoes-titulo h1 {
        font-size: 1.3rem;
    }
    .contestacoes-titulo p {
        font-size: .78rem;
        line-height: 1.35;
    }
    /* -----------------------------------------------------
       PUBLICAÇÃO ORIGINAL
       ----------------------------------------------------- */
    .publicacao-original {
        margin-top: 14px;
        padding: 14px;
        border-radius: 11px;
    }
    .publicacao-avatar,
    .publicacao-avatar-sem-foto {
        width: 42px;
        height: 42px;
    }
    .publicacao-conteudo {
        margin-top: 12px;
        font-size: .94rem;
        line-height: 1.55;
    }
    .publicacao-imagem {
        margin-top: 12px;
        max-height: none;
        border-radius: 9px;
    }
    /* -----------------------------------------------------
       CABEÇALHO DAS CONTESTAÇÕES
       ----------------------------------------------------- */
    .contestacoes-area {
        margin-top: 19px;
    }
    .contestacoes-area-titulo {
        align-items: center;
        padding-bottom: 10px;
    }
    .contestacoes-area-titulo h2 {
        font-size: .94rem;
    }
    .contestacoes-contador {
        min-height: 25px;
        padding: 3px 8px;
        font-size: .68rem;
    }
    /* -----------------------------------------------------
       ITEM DE CONTESTAÇÃO
       ----------------------------------------------------- */
    .contestacao-item {
        gap: 9px;
        padding: 15px 1px;
    }
    .contestacao-avatar,
    .contestacao-avatar-sem-foto {
        width: 36px;
        height: 36px;
    }
    .contestacao-avatar-sem-foto {
        font-size: .78rem;
    }
    .contestacao-cabecalho {
        gap: 3px 7px;
    }
    .contestacao-nome {
        font-size: .82rem;
    }
    .contestacao-data {
        font-size: .66rem;
    }
    .contestacao-texto {
        font-size: .9rem;
        line-height: 1.5;
    }
    /* -----------------------------------------------------
       SEM CONTESTAÇÕES
       ----------------------------------------------------- */
    .sem-contestacoes {
        min-height: 170px;
        padding: 25px 15px;
    }
    .sem-contestacoes-icone {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    /* -----------------------------------------------------
       NOVA CONTESTAÇÃO
       ----------------------------------------------------- */
    .nova-contestacao {
        margin-top: 20px;
        padding: 14px;
        border-radius: 12px;
    }
    .nova-contestacao-cabecalho {
        gap: 9px;
        margin-bottom: 12px;
    }
    .nova-contestacao-icone {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .nova-contestacao-cabecalho h3 {
        font-size: .93rem;
    }
    .nova-contestacao-cabecalho p {
        font-size: .73rem;
    }
    /* -----------------------------------------------------
       TEXTAREA CONTESTAÇÃO
       ----------------------------------------------------- */
    .form-contestacao textarea {
        min-height: 120px;
        padding: 13px;
        font-size: 16px;
        border-radius: 10px;
    }
    /* -----------------------------------------------------
       RODAPÉ DO FORMULÁRIO
       ----------------------------------------------------- */
    .contestacao-form-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        margin-top: 9px;
    }
    .contestacao-contador {
        order: 1;
        text-align: right;
        font-size: .72rem;
    }
    /* -----------------------------------------------------
       BOTÃO CONTESTAR
       ----------------------------------------------------- */
    .contestacao-botao {
        order: 2;
        width: 100%;
        min-height: 48px;
        border-radius: 10px;
        font-size: .84rem;
    }
    /* -----------------------------------------------------
       BOTÃO FLUTUANTE DE MENSAGENS
       ----------------------------------------------------- */
    .btn-mensagem-flutuante {
        right: 15px;
        bottom: calc(15px + env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
        font-size: 1.25rem;
    }
    .mensagens-painel {
        right: 12px;
        bottom: 79px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 105px);
        border-radius: 15px;
    }
}


/* =========================================================
   CELULARES MUITO PEQUENOS
   ========================================================= */

@media (max-width: 360px) {
    .timeline-header h1 {
        font-size: 1.3rem;
    }
    .user-menu {
        font-size: .7rem;
    }
    .contestacoes-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .contestacoes-titulo h1 {
        font-size: 1.2rem;
    }
    .contestacoes-titulo p {
        font-size: .74rem;
    }
    .publicacao-original {
        padding: 12px;
    }
    .nova-contestacao {
        padding: 12px;
    }
}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(155, 77, 255, .30);
    outline-offset: 2px;
}


/* =========================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   SELEÇÃO DE TEXTO
   ========================================================= */

::selection {
    background: #d7b5ff;
    color: #111111;
}