/* TubePussy — Mural da Comunidade (2026-06-12). Classes tp-wall-*. Tema escuro. */

.tp-wall { max-width: 720px; margin: 0 auto; padding: 8px 0 40px; }

/* ===== Cabeçalho (hero) ===== */
.tp-wall-header {
    position: relative; margin-bottom: 18px; padding: 28px 26px 24px; overflow: hidden;
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.08);
    background: radial-gradient(135% 150% at 0% 0%, rgba(229,57,53,0.22), transparent 55%), #15171c;
}
.tp-wall-title { font-size: 30px; font-weight: 800; letter-spacing: -.5px; color: #fff; margin: 0 0 5px; }
.tp-wall-subtitle { font-size: 14.5px; color: #aeb2ba; margin: 0; }

/* Ícone (line icon) nas abas */
.tp-wall-tab { display: inline-flex; align-items: center; gap: 7px; }
.tp-wall-tab-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Botão apagar (próprio post) */
.tp-wall-del-btn {
    display: inline-flex; align-items: center; justify-content: center; background: none; border: none;
    cursor: pointer; color: #8b8f96; padding: 6px; border-radius: 50%; margin-left: auto;
}
.tp-wall-del-btn svg { width: 16px; height: 16px; fill: currentColor; }
.tp-wall-del-btn:hover { background: rgba(229,57,53,0.15); color: #e53935; }

/* ações ocupam largura total pra empurrar o kebab pra direita */
.tp-wall-actions { width: 100%; }

/* ===== Composer ===== */
.tp-wall-composer {
    display: flex; gap: 12px; padding: 14px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px; margin-bottom: 16px;
}
.tp-wall-composer-avatar { width: 42px; height: 42px; min-width: 42px; border-radius: 50%; overflow: hidden; background: #1c1f26; }
.tp-wall-composer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tp-wall-composer-main { flex: 1; min-width: 0; }
.tp-wall-input {
    width: 100%; min-height: 44px; max-height: 200px; resize: none; border: none;
    background: transparent; color: #fff; font-size: 15px; line-height: 1.4; font-family: inherit;
    padding: 8px 0; outline: none;
}
.tp-wall-composer-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.tp-wall-composer-tools { display: flex; align-items: center; gap: 10px; }
.tp-wall-charcount { font-size: 12px; color: #8b8f96; }

/* Emoji picker */
.tp-wall-emoji { position: relative; display: inline-flex; }
.tp-wall-emoji-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    background: none; border: none; cursor: pointer; color: #8b8f96; border-radius: 50%;
}
.tp-wall-emoji-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tp-wall-emoji-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tp-wall-emoji-pop {
    position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 6px; width: 296px; max-width: 90vw; max-height: 220px;
    overflow-y: auto; overflow-x: hidden; padding: 8px; display: none;
    grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px;
    background: #1e2128; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent;
}
.tp-wall-emoji-pop.open { display: grid; }
.tp-wall-emoji-pop::-webkit-scrollbar { width: 8px; }
.tp-wall-emoji-pop::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.tp-wall-emoji-pop::-webkit-scrollbar-track { background: transparent; }
.tp-wall-emoji-item {
    box-sizing: border-box; width: 100%; min-width: 0; background: none; border: none; cursor: pointer;
    font-size: 20px; line-height: 1; padding: 5px 0; border-radius: 8px; aspect-ratio: 1;
}
.tp-wall-emoji-item:hover { background: rgba(255,255,255,0.1); }

/* ===== Embed RedGifs (lazy: o player só carrega no clique) ===== */
.tp-wall-rg { position: relative; margin-top: 10px; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.tp-wall-rg-play {
    position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    background: linear-gradient(135deg, #20242c, #0e0f12); border: 1px solid rgba(255,255,255,0.08);
}
.tp-wall-rg-play:hover { background: linear-gradient(135deg, #262b34, #121317); }
.tp-wall-rg-play svg { width: 52px; height: 52px; fill: #fff; opacity: .92; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.tp-wall-rg-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #ff5a5f; text-transform: uppercase; }
.tp-wall-rg iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tp-wall-post-btn {
    padding: 8px 22px; border: none; border-radius: 20px; cursor: pointer;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%); color: #fff; font-weight: 700; font-size: 14px;
    transition: opacity .15s ease;
}
.tp-wall-post-btn:hover { opacity: .9; }
.tp-wall-post-btn:disabled { opacity: .5; cursor: default; }

/* CTA login */
.tp-wall-login-cta {
    text-align: center; padding: 24px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; margin-bottom: 16px; color: #d6d8de;
}
.tp-wall-login-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.tp-wall-btn { padding: 9px 22px; border-radius: 20px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.tp-wall-btn.login { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.tp-wall-btn.signup { background: linear-gradient(135deg, #e53935 0%, #c62828 100%); color: #fff; }

/* ===== Abas ===== */
.tp-wall-tabs { display: flex; gap: 6px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.tp-wall-tab {
    background: none; border: none; color: #8b8f96; font-size: 14px; font-weight: 700; cursor: pointer;
    padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tp-wall-tab.active { color: #fff; border-bottom-color: #e53935; }
.tp-wall-tab:hover { color: #fff; }

/* ===== Feed / posts ===== */
.tp-wall-feed { display: flex; flex-direction: column; gap: 12px; }
.tp-wall-loading, .tp-wall-empty { text-align: center; color: #8b8f96; padding: 28px; font-size: 14px; }

/* ===== Skeleton de carregamento (shimmer) — só enquanto o JS busca os posts ===== */
.tp-wall-skel { display: flex; gap: 13px; padding: 16px; background: #16181d; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; }
.tp-wall-skel-av { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; }
.tp-wall-skel-body { flex: 1; min-width: 0; }
.tp-wall-skel-line { height: 12px; border-radius: 6px; margin-bottom: 9px; }
.tp-wall-skel-line.sk-name { width: 32%; height: 13px; margin-bottom: 13px; }
.tp-wall-skel-line.sk-w90 { width: 92%; }
.tp-wall-skel-line.sk-w70 { width: 66%; }
.tp-wall-skel-actions { display: flex; gap: 18px; margin-top: 15px; }
.tp-wall-skel-pill { width: 62px; height: 20px; border-radius: 16px; }
.tp-wall-skel-av, .tp-wall-skel-line, .tp-wall-skel-pill {
    background: linear-gradient(90deg, #1c1f26 25%, #2a2f39 37%, #1c1f26 63%);
    background-size: 400% 100%; animation: tp-wall-shimmer 1.4s ease infinite;
}
@keyframes tp-wall-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) {
    .tp-wall-skel-av, .tp-wall-skel-line, .tp-wall-skel-pill { animation: none; }
}
.tp-wall-post {
    display: flex; gap: 13px; padding: 16px;
    background: #16181d; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px;
    transition: border-color .15s ease, background .15s ease;
}
.tp-wall-post:hover { border-color: rgba(255,255,255,0.14); background: #181b21; }
.tp-wall-avatar { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; overflow: hidden; background: #1c1f26; display: block; }
.tp-wall-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tp-wall-noavatar {
    display: block; width: 100%; height: 100%; background: #2a2e37;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-5 0-9 2.6-9 6v2h18v-2c0-3.4-4-6-9-6z'/></svg>") center/64% no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-5 0-9 2.6-9 6v2h18v-2c0-3.4-4-6-9-6z'/></svg>") center/64% no-repeat;
}
.tp-wall-noavatar { background-color: #7a8088; }
.tp-wall-body-wrap { flex: 1; min-width: 0; }
.tp-wall-head { display: flex; align-items: baseline; gap: 8px; }
.tp-wall-author { font-weight: 600; font-size: 14px; color: #fff; text-decoration: none; }
.tp-wall-author:hover { text-decoration: underline; }
.tp-wall-time { font-size: 12px; color: #8b8f96; }
.tp-wall-text { font-size: 15px; line-height: 1.5; color: #e8e8ea; margin-top: 3px; word-wrap: break-word; }
.tp-wall-mention { color: #6ea8fe; font-weight: 600; }

/* Card de vídeo do site */
.tp-wall-videocard {
    display: flex; gap: 12px; margin-top: 10px; padding: 8px; border-radius: 10px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
    text-decoration: none; transition: background .15s ease;
}
.tp-wall-videocard:hover { background: rgba(255,255,255,0.07); }
.tp-wall-videocard-thumb { position: relative; width: 120px; min-width: 120px; height: 68px; border-radius: 6px; overflow: hidden; background: #000; }
.tp-wall-videocard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tp-wall-videocard-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.tp-wall-videocard-play svg { width: 30px; height: 30px; fill: #fff; opacity: .9; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.tp-wall-videocard-title {
    flex: 1; color: #fff; font-size: 14px; line-height: 1.35; display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; align-self: center;
}

/* Ações: curtir + responder + compartilhar */
.tp-wall-actions { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
/* divisória entre conteúdo e ações (só no post de topo, não nas respostas) */
.tp-wall-post:not(.tp-wall-reply) > .tp-wall-body-wrap > .tp-wall-actions {
    border-top: 1px solid rgba(255,255,255,0.06); padding-top: 10px; margin-top: 12px;
}
.tp-wall-like, .tp-wall-reply-btn {
    display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer;
    color: #b9bcc4; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 16px;
    transition: background .15s ease, color .15s ease;
}
.tp-wall-like:hover, .tp-wall-reply-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tp-wall-like svg, .tp-wall-reply-btn svg {
    width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.tp-wall-like.liked { color: #e53935; }
.tp-wall-like.liked svg { fill: #e53935; stroke: #e53935; }

/* Toggle respostas */
.tp-wall-replies-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer;
    color: #6ea8fe; font-size: 13px; font-weight: 700; padding: 6px 0; margin-top: 4px;
}
.tp-wall-replies-toggle:hover { color: #9cc3ff; }
.tp-wall-caret { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.tp-wall-open > .tp-wall-body-wrap > .tp-wall-replies-toggle .tp-wall-caret { transform: rotate(180deg); }

/* Lista de respostas — cards aninhados (mais leves que o post de topo) */
.tp-wall-replies-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.tp-wall-reply {
    display: flex; gap: 10px; padding: 11px 13px; border: none; border-radius: 11px;
    background: rgba(255,255,255,0.035);
}
.tp-wall-reply:hover { background: rgba(255,255,255,0.05); }
.tp-wall-reply .tp-wall-avatar { width: 34px; height: 34px; min-width: 34px; }
.tp-wall-reply .tp-wall-actions { margin-top: 6px; }
/* o display:flex acima vence o atributo [hidden] do HTML — isto faz o "Ocultar" funcionar */
.tp-wall-replies-list[hidden] { display: none; }

/* Form de resposta */
.tp-wall-replyform { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.tp-wall-replyform-input {
    width: 100%; min-height: 38px; resize: vertical; padding: 9px 12px; font-family: inherit; font-size: 14px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; color: #fff;
}
.tp-wall-replyform-input:focus { outline: none; border-color: #6ea8fe; }
.tp-wall-replyform-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tp-wall-replyform-actions .tp-wall-emoji { margin-right: auto; } /* emoji à esquerda, botões à direita */
.tp-wall-replyform-cancel, .tp-wall-replyform-send {
    padding: 7px 16px; border-radius: 18px; font-size: 13px; font-weight: 700; cursor: pointer; border: none;
}
.tp-wall-replyform-cancel { background: rgba(255,255,255,0.08); color: #d6d8de; }
.tp-wall-replyform-send { background: linear-gradient(135deg, #e53935 0%, #c62828 100%); color: #fff; }

/* Carregar mais */
.tp-wall-loadmore {
    display: block; margin: 16px auto 0; padding: 9px 24px; border-radius: 20px; cursor: pointer;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-weight: 600; font-size: 14px;
}
.tp-wall-loadmore:hover { background: rgba(255,255,255,0.10); }
.tp-wall-loadmore[hidden] { display: none; } /* display:block acima senão venceria o [hidden] */

@media (max-width: 600px) {
    .tp-wall-videocard-thumb { width: 96px; min-width: 96px; height: 54px; }
    /* Ações compactas no celular: reply/share só com ícone, pra o kebab (3 pontos)
       não ser empurrado pra fora da tela pelos textos. */
    .tp-wall-actions { gap: 2px; }
    .tp-wall-like, .tp-wall-reply-btn, .tp-wall-share-btn { padding: 7px 9px; }
    .tp-wall-reply-btn span, .tp-wall-share-btn span { display: none; }
}

/* ===== Tempo clicável ===== */
.tp-wall-time { text-decoration: none; }
.tp-wall-time:hover { text-decoration: underline; color: #b9bcc4; }

/* ===== Compartilhar (visível) ===== */
.tp-wall-share-btn {
    display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
    color: #b9bcc4; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 16px;
}
.tp-wall-share-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tp-wall-share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Menu kebab (3 pontos) ===== */
.tp-wall-kebab { position: relative; margin-left: auto; }
.tp-wall-kebab-btn {
    display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer;
    color: #8b8f96; padding: 6px; border-radius: 50%; width: 30px; height: 30px;
}
.tp-wall-kebab-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tp-wall-kebab-btn svg { width: 18px; height: 18px; fill: currentColor; }
.tp-wall-menu {
    position: absolute; right: 0; top: 100%; z-index: 20; min-width: 150px; margin-top: 4px;
    background: #1e2128; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45); padding: 4px;
}
.tp-wall-menu-item {
    display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    color: #e8e8ea; font-size: 14px; padding: 9px 12px; border-radius: 6px;
}
.tp-wall-menu-item:hover { background: rgba(255,255,255,0.08); }
.tp-wall-menu-item.danger { color: #ef5350; }
.tp-wall-menu-title { font-size: 12px; color: #8b8f96; padding: 6px 12px 4px; font-weight: 600; }

/* ===== Avatares de quem curtiu ===== */
.tp-wall-likers { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.tp-wall-likers-avs { display: inline-flex; }
.tp-wall-likers-avs img, .tp-wall-liker-noav {
    width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
    border: 2px solid #0d0d0f; margin-left: -7px; background: #2a2e37;
}
.tp-wall-likers-avs img:first-child, .tp-wall-liker-noav:first-child { margin-left: 0; }
.tp-wall-likers-more { font-size: 12px; color: #8b8f96; }

/* ===== Editar inline ===== */
.tp-wall-editform { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.tp-wall-editform-input {
    width: 100%; resize: vertical; padding: 9px 12px; font-family: inherit; font-size: 14px; line-height: 1.4;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; color: #fff;
}
.tp-wall-editform-input:focus { outline: none; border-color: #6ea8fe; }
.tp-wall-editform-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tp-wall-editform-cancel, .tp-wall-editform-save {
    padding: 7px 16px; border-radius: 18px; font-size: 13px; font-weight: 700; cursor: pointer; border: none;
}
.tp-wall-editform-cancel { background: rgba(255,255,255,0.08); color: #d6d8de; }
.tp-wall-editform-save { background: linear-gradient(135deg, #e53935 0%, #c62828 100%); color: #fff; }

/* ===== Post destacado (aberto via link/notificação) — só realça o card ===== */
.tp-wall-highlight {
    background: rgba(110,168,254,0.07);
    border-color: rgba(110,168,254,0.45);
    box-shadow: 0 0 0 1px rgba(110,168,254,0.25);
}

/* ===== Pulso ao chegar pela notificação (mostra qual post/resposta é) ===== */
@keyframes tp-wall-pulse {
    0%   { background-color: rgba(110,168,254,0.22); }
    100% { background-color: rgba(110,168,254,0); }
}
.tp-wall-pulse {
    border-radius: 10px;
    animation: tp-wall-pulse 1.1s ease-out 2;
}

/* ===== Modal de confirmação (substitui o confirm() do navegador) ===== */
.tp-wall-modal-overlay {
    position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6); opacity: 0; transition: opacity .18s ease; padding: 20px;
}
.tp-wall-modal-overlay.show { opacity: 1; }
.tp-wall-modal {
    background: #1e2128; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
    padding: 22px; max-width: 360px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(8px) scale(.98); transition: transform .18s ease;
}
.tp-wall-modal-overlay.show .tp-wall-modal { transform: none; }
.tp-wall-modal-msg { color: #fff; font-size: 16px; line-height: 1.45; margin: 0 0 18px; }
.tp-wall-modal-input {
    width: 100%; box-sizing: border-box; margin: 0 0 18px; padding: 11px 13px;
    background: #14161b; border: 1px solid rgba(255,255,255,0.14); border-radius: 10px;
    color: #fff; font-size: 15px; outline: none;
}
.tp-wall-modal-input:focus { border-color: rgba(110,168,254,0.6); }
.tp-wall-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.tp-wall-modal-cancel, .tp-wall-modal-ok {
    padding: 9px 20px; border-radius: 20px; font-size: 14px; font-weight: 700; cursor: pointer; border: none;
}
.tp-wall-modal-cancel { background: rgba(255,255,255,0.08); color: #d6d8de; }
.tp-wall-modal-cancel:hover { background: rgba(255,255,255,0.14); }
.tp-wall-modal-ok { background: linear-gradient(135deg, #e53935 0%, #c62828 100%); color: #fff; }
.tp-wall-modal-ok:hover { opacity: .9; }

/* ===== Toast (substitui o alert() do navegador) ===== */
.tp-wall-toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 9999;
    transform: translateX(-50%) translateY(20px);
    background: #2a2e37; color: #fff; font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.45); opacity: 0;
    transition: opacity .25s ease, transform .25s ease; max-width: 90vw; text-align: center;
}
.tp-wall-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }