@use "~admin-stylesheets/colors";

.nelio-content-social-message-ok-preview {
	background: #fff;
	border: 1px solid;
	border-color: #e5e6e9 #dfe0e4 #d0d1d5;
	border-radius: 8px;
	color: #212121;
	cursor: default;
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans",
		Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji",
		"Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
	margin: 1em 1.5em;
	padding: 0;
	user-select: none;
	overflow: hidden;

	&__profile-and-date {
		padding: 15px;
		padding-bottom: 0;
	}

	.nelio-content-social-profile-icon {
		float: left;
		font-size: 36px;
		height: 36px;
		margin-right: 10px;
		width: 36px;
	}

	&__name-and-date {
		margin-top: 3px;
	}

	&__display-name {
		color: #222;
		font-weight: 700;
		line-height: 1.25;
	}

	&__date {
		color: #666;
	}

	&__container-item {
		position: relative;
	}

	&__actual-image {
		height: 100%;
		object-fit: cover;
		width: 100%;
	}

	&__image {
		border-radius: 2px;
		height: 220px;
		margin: 1em 0 0;
		object-fit: cover;
		width: 100%;
	}

	&__previous-image-action {
		position: absolute;
		top: 50%;
		left: 0;
		cursor: pointer;
		padding: 16px 8px;
		border: none;
		outline: none;
		transform: translateY(-50%);

		background: #fff;
		border-radius: 50%;
		margin: 0 1em;
		min-width: 40px !important;
		width: 40px;
		height: 40px;
		box-shadow: 0 2px 8px rgba(46, 47, 51, 0.12);

		&.components-button:focus:not(:disabled) {
			box-shadow: none;
		}
	}

	&__next-image-action {
		position: absolute;
		top: 50%;
		right: 0;
		cursor: pointer;
		padding: 16px 8px;
		border: none;
		outline: none;
		transform: translateY(-50%);

		background: #fff;
		border-radius: 50%;
		margin: 0 1em;
		min-width: 40px !important;
		width: 40px;
		height: 40px;
		box-shadow: 0 2px 8px rgba(46, 47, 51, 0.12);

		&.components-button:focus:not(:disabled) {
			box-shadow: none;
		}
	}

	&__container {
		height: 220px;
		min-width: 450px;
		margin-top: 1em;
		position: relative;

		&:hover {

			.nelio-content-social-message-ok-preview__previous-image-action,
			.nelio-content-social-message-ok-preview__next-image-action {
				display: flex;
			}
		}
	}
}

/* MESSAGE */

.nelio-content-social-message-ok-preview .nelio-content-computed-text-preview {
	color: #222;
	cursor: auto;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	margin: 0;
	padding: 1.5em 15px 1em;
	user-select: auto;
	word-break: break-word;
	overflow-wrap: break-word;

	&--empty {
		opacity: 0.6;
	}

	&__mention {
		color: #222;
	}

	&__link,
	&__hash {
		color: #f70;
		font-weight: 400;
	}
}

/* SHARED POST */

.nelio-content-ok-shared-link {
	border: 1px solid #e1e8ed;
	border-radius: 16px;
	margin: 0 1em 1em 1em;
	overflow: hidden;

	&__image {
		height: 220px;
		object-fit: cover;
		overflow: hidden;
		position: relative;
		width: 100%;
	}

	&__content {
		background: #fff;
		margin-top: -5px;
		padding: 10px;
	}

	&__title {
		color: #111;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		line-clamp: 2;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	&__excerpt {
		margin-top: 4px;
		color: #2e2f33a3;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		line-clamp: 2;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	&__signature {
		margin-top: 4px;
		color: #2e2f33a3;
		font-weight: 400;
		font-size: 12px;
		text-decoration: underline;
	}
}
