/* Estilos para botões de curtir comentários e respostas */

.comment-like-btn {
    cursor: pointer;
    color: #65676b;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
}

.comment-like-btn:hover {
    background-color: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.comment-like-btn.liked {
    color: #1877f2;
    font-weight: 700;
}

.comment-like-btn.liked:hover {
    background-color: rgba(24, 119, 242, 0.15);
}

.comment-reply-btn {
    cursor: pointer;
    color: #65676b;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
}

.comment-reply-btn:hover {
    background-color: rgba(101, 103, 107, 0.1);
    color: #42454a;
}

.comment-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.comment-time {
    color: #65676b;
    font-size: 12px;
    font-weight: 400;
}

/* Estilos para sub-comentários */
.sub-comment {
  width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sub-comments-list {
    margin-top: 8px;
    width: 100%;

}

/* Estilos para container de resposta */
.reply-input-container {
    margin-top: 8px;
    animation: slideDown 0.2s ease-out;
    width: 100%;

}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-submit-btn, .reply-cancel-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.reply-submit-btn {
    background-color: #1877f2;
    color: white;
}

.reply-submit-btn:hover {
    background-color: #166fe5;
}

.reply-cancel-btn {
    background-color: #e4e6ea;
    color: #42454a;
}

.reply-cancel-btn:hover {
    background-color: #d8dadf;
}

.reply-input {
    flex: 1;
    border: 1px solid #ccd0d5;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease;
}

.reply-input:focus {
    border-color: #1877f2;
}

/* Melhorias visuais gerais */
.comment-item {
    margin-bottom: 12px;
    padding: 8px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-main-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-content-container {
    flex: 1;
    background-color: #f0f2f5;
    border-radius: 16px;
    padding: 8px 12px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: #050505;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 14px;
    color: #050505;
    line-height: 1.33;
    word-wrap: break-word;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .comment-actions {
        gap: 8px;
    }
    
    .comment-like-btn, .comment-reply-btn {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .sub-comment {
        margin-left: 20px;
    }
    
    .comment-avatar {
        width: 28px;
        height: 28px;
    }
}



/* Estilos para a barra de progresso */
.upload-progress-container {
    margin-top: 12px;
    padding: 12px;
    background-color: #f0f2f5;
    border-radius: 8px;
    border: 1px solid #e4e6ea;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

#progressText {
    color: #42454a;
    font-weight: 500;
}

#progressPercentage {
    color: #1877f2;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e4e6ea;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1877f2, #42a5f5);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

/* Estados da barra de progresso */
.progress-fill.uploading {
    background: linear-gradient(90deg, #ff9800, #ffc107);
}

.progress-fill.saving {
    background: linear-gradient(90deg, #2196f3, #03a9f4);
}

.progress-fill.complete {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
}

.progress-fill.error {
    background: linear-gradient(90deg, #f44336, #e57373);
}

/* Responsividade para a barra de progresso */
@media (max-width: 768px) {
    .upload-progress-container {
        margin-top: 8px;
        padding: 10px;
    }
    
    .progress-info {
        font-size: 13px;
    }
    
    .progress-bar {
        height: 6px;
    }
}



/* Estilos da barra de progresso da foto de perfil (replicados para o feed social) */
.upload-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.upload-progress h3 {
    margin-top: 0;
    color: white;
    font-size: 1.2em;
}

.upload-progress-bar {
    width: 200px;
    height: 15px;
    background-color: #555;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px auto;
}

.upload-progress-fill {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    border-radius: 8px;
    transition: width 0.3s ease-in-out;
}

.upload-progress p {
    margin-bottom: 0;
    font-size: 1.1em;
}




/* Loading Spinner Styles */
.loading-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #555;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Upload Progress Styles */
.upload-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    width: 80%;
    max-width: 400px;
}

.upload-progress h3 {
    margin-top: 0;
    color: white;
}

.upload-progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.upload-progress-fill {
    height: 20px;
    background-color: #4CAF50;
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

.upload-progress p {
    margin: 0;
    font-size: 1.2em;
}




/* Estilos para links nos comentários */
.comment-link {
    color: #1877f2;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    word-break: break-all;
}

.comment-link:hover {
    color: #166fe5;
    border-bottom-color: #166fe5;
    text-decoration: none;
}

.comment-link:visited {
    color: #8a2be2;
}

.comment-link:visited:hover {
    color: #7b27d8;
    border-bottom-color: #7b27d8;
}

/* Garantir que links não quebrem o layout */
.comment-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.reply-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}



/* Estilos para o botão "Comentar publicação" */
.comment-post-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e4e6ea;
    display: flex;
    justify-content: center;
}

.comment-post-btn {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.2);
    min-width: 160px;
    justify-content: center;
}

.comment-post-btn:hover {
    background: linear-gradient(135deg, #166fe5, #1e88e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

.comment-post-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.2);
}

.comment-post-btn .icon {
    font-size: 16px;
}

/* Responsividade para o botão */
@media (max-width: 768px) {
    .comment-post-btn {
        font-size: 13px;
        padding: 7px 14px;
        min-width: 140px;
    }
    
    .comment-post-btn .icon {
        font-size: 14px;
    }
}


/* Estilos para lazy loading */
.loading-more-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #666;
}

.loading-more-posts .loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1877f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.no-more-posts {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.no-more-posts p {
    margin: 0;
    font-size: 16px;
}

.no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.error-posts {
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
}

/* Garantir que o social-feed-container tenha scroll */
.social-feed-container {
    max-height: 100vh;
    overflow-y: auto;
padding: 15px;
}




/* Estilizar a scrollbar */
.social-feed-container::-webkit-scrollbar {
    width: 8px;
}

.social-feed-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.social-feed-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.social-feed-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
