/* Estilos Gerais */
.tlf-post {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #212121 !important; /* Cor cinza mais clara */
    border-radius: 20px !important; /* Bordas mais arredondadas */
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Cabeçalho do Post - Layout melhorado */
.tlf-post-header {
    display: flex;
    align-items: flex-start; /* Alinhamento superior */
    margin-bottom: 15px;
    gap: 8px; /* Espaço entre avatar e conteúdo */
}

.tlf-post-header img {
    border-radius: 50%;
    width: 45px; /* Tamanho aumentado */
    height: 45px;
    margin-right: 2px !important;
    object-fit: cover;
    border: 2px solid #FFA500;
    flex-shrink: 0; /* Impede que o avatar encolha */
}

/* Container do nome e tempo */
.tlf-post-header-content {
    display: flex;
    flex-direction: column;
    gap: 1px; /* Espaço entre nome e tempo */
}

.tlf-post-header a {
    color: #FFA500 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    display: inline; /* Mesma linha */
}

.post-time {
    color: #d3d3d3 !important; /* Cinza claro */
    font-size: 0.65em !important;
    font-weight: 400;
    display: inline; /* Mesma linha */
}

/* Restante do CSS mantido */
.tlf-post p,
.tlf-comment p {
    color: #ffffff !important;
    font-size: 0.80em !important;
    line-height: 19px;
    margin: 2px 0;
}

.tlf-post-image {
    margin: 15px 0;
    margin-top: 5px; /* Reduz a margem superior */
    border-radius: 15px !important;
    overflow: hidden;
}

.tlf-post-image img {
    width: 100%;
    height: auto;
    border-radius: 15px !important;
    border: none !important;
}

.tlf-post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tlf-like-button {
    font-size: 1.5em;
    cursor: pointer;
    color: #FFD700;
    transition: all 0.3s ease;
}

.tlf-like-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.tlf-like-button.liked {
    filter: grayscale(100%);
    opacity: 0.5;
    cursor: not-allowed;
}
.tlf-textarea {
    width: 100%;
    min-height: 35px;
    max-height: 300px;
    resize: none;
    overflow-y: hidden;
    padding: 12px;
    border-radius: 20px;
    background-color: #1e1e1e !important;
    color: #fff !important;
    outline: none;
    border: 0.6px solid #3e3e3e !important;
    transition: height 0.2s ease-out;
}

/* Comentários */
.tlf-comments {
    margin-top: 15px;
    padding-left: 20px;
}

.tlf-comment {
    margin-bottom: 5px;
    padding: 5px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 20px;
}

.tlf-comment-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px !important;
}

.tlf-comment-avatar img {
    border-radius: 50% !important;
    margin-right: 3px;
    margin-left: 3px;
    width: 30px;
    height: 30px;
}

.tlf-comment-header-content {
    display: flex;
    margin-right: 3px;
    align-items: center;
    line-height: 0.8px !important;
    gap: 0 !important;
}

.tlf-comment-author {
    font-weight: bold;
    font-size: 0.85em;
    color: #FFA500;
    text-decoration: none;
    margin-right: 8px;
}

.tlf-comment-author:hover {
    text-decoration: underline;
}

.tlf-comment-time {
    color: #657786;
    font-size: 0.65em;
}

.tlf-comment-content {
    margin: 0;
    padding-left: 40px; /* Alinha o conteúdo com o texto do comentário */
    margin-top: 1px;
    font-size: 0.75em;
    color: #14171a;
    line-height: 1;
}

/* Botões e outros elementos mantidos */
button, input[type="submit"] {
    background-color: #FFA500;
    color: #000000 !important;
    font-size: 0.7em !important;
    border: none;
    padding: 3px 3px;
    border-radius: 25px;
    font-weight: 500;
}

.custom-file-upload {
    margin: 15px 0;
    margin-top: 3px !important;
    margin-bottom: 3px !important;
    display: flex;
    align-items: center;
    font-size: 0.85em !important;
    color: #ffffff !important;
    gap: 10px;
}

/* Estilizando os campos de entrada dentro dos posts e comentários */
.tlf-post textarea, 
.tlf-post input[type="text"],
.tlf-comment textarea, 
.tlf-comment input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 0.6px solid #3e3e3e !important;
    border-radius: 20px;
    background-color: #1e1e1e !important;
    color: #fff !important;
    font-size: 0.75em !important;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 3px;
}

/* Efeito ao focar nos campos */
.tlf-post textarea:focus, 
.tlf-post input[type="text"]:focus, 
.tlf-comment textarea:focus, 
.tlf-comment input[type="text"]:focus {
    border-color: #3e3e3e !important; /* Cor neutra ao invés de laranja */
    box-shadow: none !important;
}

/* Ajuste para textarea */
.tlf-post textarea, 
.tlf-comment textarea {
    min-height: 35px; /* Altura reduzida para 1 linha */
    max-height: 35px; /* Evita que o campo cresça */
    resize: vertical; /* Impede redimensionamento */
    overflow: hidden; /* Esconde a barra de rolagem */
    line-height: 15px; /* Ajusta alinhamento */
}

/* Estilos para os posts na página de perfil */
.tlf-user-posts {
    margin-top: 20px;
    padding: 15px;
    border-radius: 20px !important;
    background-color: #212121 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tlf-user-posts .tlf-post {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #212121 !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tlf-user-posts .tlf-post-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 8px;
}

.tlf-user-posts .tlf-post-header img {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin-right: 2px  !important;
    object-fit: cover;
    border: 2px solid #FFA500;
    flex-shrink: 0;
}

.tlf-user-posts .tlf-post-header-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tlf-user-posts .tlf-post-header a {
    color: #FFA500 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    display: inline;
}

.tlf-user-posts .post-time {
    color: #d3d3d3 !important;
    font-size: 0.65em !important;
    font-weight: 400;
    display: inline;
}

.tlf-user-posts .tlf-post-image {
    margin: 15px 0;
    border-radius: 15px !important;
    overflow: hidden;
}

.tlf-user-posts .tlf-post-image img {
    width: 100%;
    height: auto;
    border-radius: 15px !important;
    border: none !important;
}

.tlf-user-posts .tlf-post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tlf-user-posts .tlf-comments {
    margin-top: 15px !important;
    padding-left: 20px !important;
}

.tlf-user-posts .tlf-comment {
    margin-bottom: 5px !important;
    padding: 5px !important;
    background-color: rgba(0,0,0,0.2) !important;
    border-radius: 20px !important;
}

.tlf-user-posts .tlf-comment-header {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 2px !important;
}

.tlf-user-posts .tlf-comment-header img {
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
}

.tlf-user-posts .tlf-comment-content {
    padding-left: 53px !important;
    margin-top: 1px !important;
    font-size: 0.75em !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

.tlf-post {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.tlf-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.tlf-post-header .avatar {
    margin-right: 10px;
    border-radius: 50%;
}

.tlf-post-header-content {
    flex: 1;
}

.tlf-post-header-content a {
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.tlf-post-header-content .post-time {
    font-size: 12px;
    color: #777;
}

.tlf-post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1px;
}

.tlf-post-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.tlf-like-button {
    cursor: pointer;
    font-size: 18px;
    margin-right: 2px;
    margin-bottom: 10px;
}

.tlf-like-button.liked {
    color: #ffcc00;
    margin-right: 2px;
    margin-bottom: 10px;
}

.tlf-like-count {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 10px;
}

.peepso-notification.tlf-like,
.peepso-notification.tlf-comment {
    background-color: #f5f8fa;
    border-left: 3px solid #1da1f2;
}

.peepso-notification.tlf-like:hover,
.peepso-notification.tlf-comment:hover {
    background-color: #e8f5fe;
}

.highlighted-post {
    animation: highlight 2s ease;
    border: 2px solid #1da1f2;
    box-shadow: 0 0 10px rgba(29, 161, 242, 0.5);
}

@keyframes highlight {
    0% { background-color: rgba(29, 161, 242, 0.1); }
    50% { background-color: rgba(29, 161, 242, 0.3); }
    100% { background-color: transparent; }
}

/* Responsividade */
@media (max-width: 480px) {
    .tlf-post-header img {
        width: 45px;
        height: 45px;
    }
    
    .tlf-post-header a {
        font-size: 1em;
    }
    
    .post-time {
        font-size: 0.65em;
    }
}