/* ==========================================================================
   Nina Care Video — Gutenberg block (media + text with a YouTube video)
   Self-contained so it renders correctly both on the front end and inside
   the block editor preview. Scoped under .ninacare-video--post so it never
   collides with the page-builder ninacare_video block.
   ========================================================================== */

.ninacare-video--post {
	font-family: "Manrope", sans-serif;
	padding: 2rem 0;
}

.ninacare-video--post .ninacare-video__card {
	background-color: #f9f7ff;
	border-radius: 1rem;
	padding: 2.5rem;
}

.ninacare-video--post .ninacare-video__title {
	font-size: 2rem;
	font-weight: 700;
	color: #10062f;
	margin-bottom: 1.5rem;
}

.ninacare-video--post .ninacare-video__body {
	display: flex;
	align-items: center;
	gap: 3rem;
}

.ninacare-video--post .ninacare-video__text {
	flex: 1 1 50%;
}

.ninacare-video--post .ninacare-video__description {
	font-size: 16px;
	color: #10062f;
	line-height: 1.6;
}

.ninacare-video--post .ninacare-video__description p {
	margin-bottom: 1rem;
}

.ninacare-video--post .ninacare-video__description p:last-child {
	margin-bottom: 0;
}

.ninacare-video--post .ninacare-video__media {
	flex: 1 1 50%;
	display: flex;
	justify-content: center;
}

.ninacare-video--post .ninacare-video__video {
	width: 100%;
	display: block;
	border: none;
	border-radius: 0.8rem;
}

/* Orientation (set per-block in the editor) */
.ninacare-video--post.ninacare-video--horizontal .ninacare-video__video {
	aspect-ratio: 16 / 9;
	max-width: 40rem;
}

.ninacare-video--post.ninacare-video--vertical .ninacare-video__video {
	aspect-ratio: 9 / 16;
	max-width: 20rem;
}

.ninacare-video--post.ninacare-video--vertical .ninacare-video__media {
	flex: 1 1 40%;
}

/* Editor-only placeholder shown before a URL is entered */
.ninacare-video--post .ninacare-video__placeholder {
	width: 100%;
	max-width: 20rem;
	aspect-ratio: 9 / 16;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1rem;
	color: #5747ff;
	background: #efeafe;
	border: 2px dashed #b9acff;
	border-radius: 0.8rem;
}

@media (max-width: 768px) {
	.ninacare-video--post .ninacare-video__card {
		padding: 1.5rem;
	}

	.ninacare-video--post .ninacare-video__body {
		flex-direction: column;
		gap: 2rem;
	}

	.ninacare-video--post.ninacare-video--vertical .ninacare-video__video {
		max-width: 16rem;
	}

	.ninacare-video--post.ninacare-video--horizontal .ninacare-video__video {
		max-width: 100%;
	}
}
