
























#menu-comentario-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 99999;
}

#menu-comentario {
    background: #fff;
    border-radius: 12px;
    width: 130px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

.menu-item {
    padding: 14px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item.excluir {
    color: #ed4956;
    font-weight: bold;
}












#infoCurtidas {
    margin-top: 15px; /* aumenta aqui se quiser mais espaço */
}
@media (max-width: 600px) {
	#infoCurtidas {
    margin-top: -2px;
 }
}


.btn-lixeira {
    cursor: pointer;
    margin-left: 8px;
	margin-right: 20px; /* 👈 adiciona isso */
    color: #888;
    transition: 0.2s;
}

.btn-lixeira:hover {
    color: #e74c3c;
}



.modal-post {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; 
	top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-box {
    width: 340px; /* 420 → 340 */
    background: #fff;
    margin: 50px auto;
    border-radius: 14px; /* 16 → 14 */
    padding: 12px; /* 15 → 12 */
    position: relative;
    animation: aparecer 0.2s ease;
    box-sizing: border-box;
    overflow-x: hidden;
}

@keyframes aparecer {
    from {transform: scale(0.9); opacity:0;}
    to {transform: scale(1); opacity:1;}
}

.img-post {
    width: 100%;
    border-radius: 10px; /* 12 → 10 */
}

/* FECHAR */
.fechar {
    position: absolute;
    top: 8px;
    right: 8px;

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

    width: 32px; /* 36 → 32 */
    height: 32px;
    border-radius: 50%;

    background: rgba(0,0,0,0.5);
    color: #fff;

    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.fechar:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.08);
}

.fechar:active {
    transform: scale(0.95);
}

/* RIPPLE */
.fechar::after {
    content: "";
    position: absolute;
    width: 8px; /* 10 → 8 */
    height: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
}

.fechar:active::after {
    animation: ripple 0.3s ease;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(5); /* 8 → 5 */
        opacity: 0;
    }
}

/* AÇÕES */
.acoes {
    display: flex;
    gap: 12px; /* 15 → 12 */
    margin-top: 8px;
    font-size: 18px; /* 22 → 18 */
}

.icone {
    cursor: pointer;
    transition: 0.2s;
}

.icone:hover {
    transform: scale(1.15);
}

.curtido {
    color: red;
}

/* COMENTÁRIO */
.comentario-box {
    display: flex;
    margin-top: 8px;
    box-sizing: border-box;
    width: 100%;
    gap: 6px;
}

.comentario-box input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 16px; /* 20 → 16 */
    padding: 6px 10px; /* menor */
    font-size: 13px;
    box-sizing: border-box;
    min-width: 0;
}

.comentario-box button {
    border: none;
    background: #6B5DF5;
    color: #fff;
    border-radius: 16px;
    padding: 6px 10px;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
    cursor: pointer;
}

/* LISTA */
#listaComentarios {
    margin-top: 10px;
    max-height: 160px;
    overflow-y: auto;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

#listaComentarios::-webkit-scrollbar {
    width: 0;
}

.comentario-item {
    font-size: 13px; /* 14 → 13 */
    margin-bottom: 5px;
}

/* 🔥 FIX: Ensure form and textareas don't overflow */
#form-resposta-item,
[id^="form-resposta-"] {
    box-sizing: border-box;
    width: 100%;
}

textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
    box-sizing: border-box;
}

/* LIKE */
#likeAnim {
    position: absolute;
    top: 30%; /* corrigido */
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 70px; /* 90 → 70 */
    opacity: 0;
    pointer-events: none;
}

#likeAnim.ativo {
    animation: likeAnim 0.6s ease;
}

@keyframes likeAnim {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* ZOOM */
.img-post.animando {
    animation: zoomLike 0.25s ease;
}

@keyframes zoomLike {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}






@media (max-width: 600px) {

    #likeAnim {
        font-size: 60px; /* menor no celular */
		position: absolute;
		top: 150px;
		left: 50%;
		transform: translate(-50%, -50%) scale(0.5);

    opacity: 0;
		pointer-events: none;
    }

    .img-post.animando {
        animation: zoomLike 0.25s ease;
    }
}














@media (max-width: 600px) {

    /* FUNDO */
    .modal-post {
		background: rgba(0,0,0,0.6);
        padding: 10px;
        align-items: center;
        justify-content: center;
    }

    /* MODAL PEQUENO */
    .modal-box {
        width: 85%;
        max-width: 300px;
        padding: 10px;
        border-radius: 12px;

        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    /* IMAGEM */
    .img-post {
        width: 100%;
        max-height: 40vh;
        object-fit: cover;
        border-radius: 10px;
    }













    /* FECHAR */
.fechar {
        position: absolute;
        top: 6px;
        right: 6px;

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

        width: 25px; /* 🔥 menor ainda */
        height: 25px;
        border-radius: 50%;

        background: rgba(0,0,0,0.5);
        color: #fff;

        cursor: pointer;
        overflow: hidden;
        transition: transform 0.1s ease;
    }

    .fechar:active {
        transform: scale(0.95);
    }

    /* RIPPLE SUPER SUTIL */
    .fechar::after {
        content: "";
        position: absolute;
        width: 6px;
        height: 6px;
        background: rgba(255,255,255,0.4);
        border-radius: 50%;
        transform: scale(0);
        opacity: 0;
    }

    .fechar:active::after {
        animation: rippleMobile 0.25s ease;
    }

    @keyframes rippleMobile {
        0% {
            transform: scale(0);
            opacity: 0.4;
        }
        100% {
            transform: scale(3); /* 🔥 bem pequeno agora */
            opacity: 0;
        }
    }

















    /* AÇÕES */
    .acoes {
        font-size: 18px;
        gap: 10px;
        margin-top: 8px;
    }

    /* INPUT + BOTÃO */
    .comentario-box {
        display: flex;
        gap: 6px;
        margin-top: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .comentario-box input {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        padding: 6px 8px;
        box-sizing: border-box;
    }

    .comentario-box button {
        flex-shrink: 0;
        font-size: 12px;
        padding: 6px 8px;
    }

    /* LISTA */
    #listaComentarios {
        max-height: 20vh;
        overflow-y: auto;
        margin-top: 8px;
        box-sizing: border-box;
        width: 100%;
    }

    .comentario-item {
        font-size: 12px;
        word-break: break-word;
        box-sizing: border-box;
        width: 100%;
    }
}














