/**
 * Language Version Link Styles
 *
 * @package novus-media-enhancements
 */

/**
 * Language Version Link Styles
 *
 * Simple text link that appears inline with share buttons in flex layout.
 */
.post-language-version {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

/* Make parent relative for absolute positioning */
/* Class added by PHP to avoid :has() pseudo-class browser compatibility issues */
.wp-block-group.is-nowrap.has-language-version {
	position: relative;
	width: 100%;
}

.language-version-link {
	display: inline-block;
	font-size: inherit;
	font-weight: 500;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	transition: opacity 0.2s ease;
	white-space: nowrap;
}

.language-version-link:hover,
.language-version-link:focus {
	text-decoration: underline;
	color: #d70025;
}

/* Responsive adjustments */

/* Tablet adjustments (iPad, etc.) */
@media (max-width: 1024px) and (min-width: 769px) {
	.post-language-version {
		right: 0;
	}
	
	.language-version-link {
		font-size: 0.9rem;
	}
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.post-language-version {
		position: static;
		transform: none;
		display: block;
		margin-top: 0.75rem;
		width: 100%;
	}
	
	.language-version-link {
		display: inline-block;
		width: auto;
	}
	
	/* Reset parent positioning on mobile */
	.wp-block-group.is-nowrap:has(.post-language-version) {
		position: static;
		flex-wrap: wrap;
	}
}