/* Sistema de Comentários Nativo - Legendas.net */

.comment-form-login {
	text-align: center;
	padding: 40px;
	background: #f5f5f5;
	border-radius: 8px;
	margin-bottom: 20px;
}

.comment-form-login a {
	color: #3273dc;
	font-weight: bold;
}

.comment-form-container {
	margin-bottom: 30px;
}

.comment-form {
	background: #fff;
	border: 1px solid #dbdbdb;
	border-radius: 8px;
	padding: 20px;
}

.comment-form-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
}

.comment-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #dbdbdb;
}

.comment-textarea {
	width: 100%;
	min-height: 100px;
	padding: 12px;
	border: 1px solid #dbdbdb;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	resize: vertical;
	margin-bottom: 15px;
}

.comment-textarea:focus {
	outline: none;
	border-color: #3273dc;
}

.comment-form-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
}

.comments-list {
	margin-top: 30px;
}

.comment {
	background: #fff;
	border: 1px solid #dbdbdb;
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 15px;
}

.comment-reply {
	margin-left: 10px;
	margin-top: 15px;
	border-left: 3px solid #3273dc;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.comment-header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.comment-meta {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.comment-user-info {
	display: flex;
	align-items: center;
	gap: 8px;
}

.comment-user-name {
	font-weight: 600;
	text-decoration: none;
	color: #363636;
	transition: color 0.2s;
}

.comment-user-name:hover {
	color: #3273dc;
	text-decoration: underline;
}



.comment-date {
	font-size: 12px;
	color: #7a7a7a;
}

.comment-meta-bottom {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.comment-vote-count {
	font-size: 12px;
	font-weight: 600;
	color: #4a4a4a;
}

.comment-vote-count.positive {
	color: #48c774;
}

.comment-vote-count.negative {
	color: #f14668;
}

.comment-date-separator {
	font-size: 12px;
	color: #b5b5b5;
	user-select: none;
}

.comment-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.comment-body {
	margin-bottom: 12px;
}

.comment-text {
	color: #4a4a4a;
	line-height: 1.6;
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}


.vote-btn {
	background: none;
	border: 1px solid #dbdbdb;
	border-radius: 4px;
	width: 24px;
	height: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #7a7a7a;
	font-size: 12px;
	transition: all 0.2s;
}

.vote-btn:hover:not(:disabled) {
	background: #f5f5f5;
	border-color: #3273dc;
	color: #3273dc;
}

.vote-btn.upvote.active {
	background: #48c774;
	border-color: #48c774;
	color: #fff;
}

.vote-btn.downvote.active {
	background: #f14668;
	border-color: #f14668;
	color: #fff;
}

.vote-btn:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}


.btn-link {
	background: none;
	border: none;
	color: #3273dc;
	cursor: pointer;
	font-size: 13px;
	padding: 4px 8px;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s;
}

.btn-link:hover {
	background: #f5f5f5;
	text-decoration: none;
}

.btn-link.text-danger {
	color: #f14668;
}


.comment-reply-form {
	margin-top: 15px;
}

.reply-form {
	background: #fafafa;
}

.reply-form .comment-avatar {
	width: 32px;
	height: 32px;
}

.reply-form .comment-textarea {
	min-height: 80px;
}

.btn {
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.2s;
}

.btn-primary {
	background: #3273dc;
	color: #fff;
}

.btn-primary:hover {
	background: #2366d1;
}

.btn-secondary {
	background: #f5f5f5;
	color: #363636;
	border: 1px solid #dbdbdb;
}

.btn-secondary:hover {
	background: #e8e8e8;
}

.btn-sm {
	padding: 9px 12px;
	font-size: 13px;
}

/* Compact submit button */
.btn-compact {
	padding: 12px 12px;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.text-center {
	text-align: center;
}

/* Sort buttons */
.comment-sort-buttons {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 20px;
}

.sort-btn {
	background: transparent;
	border: none;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 400;
	color: #7a7a7a;
	cursor: pointer;
	transition: all 0.2s;
}

.sort-btn:hover {
	color: #3273dc;
	background: #f5f5f5;
}

.sort-btn.active {
	color: #3273dc;
	font-weight: 500;
	background: #f0f5ff;
}

.sort-btn.active:hover {
	background: #e6f0ff;
}

/* Responsividade */
@media (max-width: 768px) {
	#comments-container {
		padding: 10px;
	}

	.comment-reply {
		margin-left: 12px;
	}

	.comment-header {
		flex-wrap: wrap;
	}

	.comment-header-actions {
		margin-left: 52px;
		width: 100%;
		margin-top: 8px;
		gap: 12px;
	}

	.vote-btn {
		width: 28px;
		height: 28px;
		font-size: 14px;
	}

	.btn-link {
		padding: 6px 10px;
		font-size: 14px;
	}

	.comment-form-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.btn-compact {
		width: 100%; /* Full width on mobile for easier tapping */
		padding: 10px 12px;
	}

	.comment-sort-buttons {
		justify-content: center;
		gap: 6px;
	}

	.sort-btn {
		font-size: 12px;
		padding: 6px 10px;
	}
}
