@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* ── Container ───────────────────────────────────────────────────────────── */
.eye-yon-pdf-viewer {
	direction: ltr;
	font-family: 'Poppins', sans-serif;
	width: 100%;
}

/* ── Language switcher: 5-column grid so buttons are always equal width ──── */
.eye-yon-lang-switcher {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}

/* ─ Pill button ─ */
.eye-yon-lang-btn {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
	min-width: 0;           /* allow shrink inside grid cell */
	padding: 11px 14px;
	border-radius: 50px;
	border: 2px solid #dde1e7;
	background: #ffffff;
	cursor: pointer;
	user-select: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
	transition: border-color 0.17s ease, background 0.17s ease,
	            color 0.17s ease, box-shadow 0.17s ease, transform 0.12s ease;
	overflow: hidden;       /* clip anything that exceeds the cell */
	font-family: 'Poppins', sans-serif;
}

/* Hide the actual radio input */
.eye-yon-lang-btn input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* ─ Hover ─ */
.eye-yon-lang-btn:hover {
	border-color: #00A1B1;
	background: #f0fbfc;
	box-shadow: 0 3px 10px rgba(0, 161, 177, 0.18);
	transform: translateY(-1px);
}

/* ─ Active / selected ─ */
.eye-yon-lang-btn.active {
	border-color: #00A1B1;
	background: #00A1B1;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 161, 177, 0.35);
	transform: translateY(-1px);
}

/* ─ Circular flag ─ */
.eye-yon-flag-img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.10);
}

.eye-yon-lang-btn.active .eye-yon-flag-img {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ─ Button text block: code on top, full name below ─ */
.eye-yon-btn-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.2;
	gap: 1px;
	min-width: 0;           /* allow text block to shrink with the cell */
	overflow: hidden;
}

.eye-yon-lang-code {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: inherit;
	white-space: nowrap;
}

.eye-yon-lang-label {
	font-size: 11px;
	font-weight: 400;
	opacity: 0.70;
	color: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;            /* fill remaining width so ellipsis triggers */
}

/* Active: make both lines fully opaque */
.eye-yon-lang-btn.active .eye-yon-lang-label {
	opacity: 0.88;
}

/* ── PDF embed area ──────────────────────────────────────────────────────── */
.eye-yon-embed-wrap {
	position: relative;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #dde1e7;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.eye-yon-embed {
	display: block;
	width: 100%;
	height: 780px;
	border: none;
}

/* Fallback text (shown when embed has no PDF support) */
.eye-yon-fallback {
	display: none;
	text-align: center;
	padding: 48px 24px;
	background: #f8f9fa;
	font-size: 15px;
}

.eye-yon-dl-btn {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 22px;
	background: #00A1B1;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
	transition: background 0.2s;
}
.eye-yon-dl-btn:hover {
	background: #007e8c;
	color: #fff;
}

/* ── Mobile bar ──────────────────────────────────────────────────────────── */
.eye-yon-mobile-bar {
	margin-top: 12px;
	padding: 10px 14px;
	background: #fff8e1;
	border: 1px solid #ffe082;
	border-radius: 6px;
	font-size: 14px;
	font-family: 'Poppins', sans-serif;
}
.eye-yon-mobile-bar a {
	font-weight: 500;
}

/* ── Initially hidden: before any language is selected ───────────────────── */
.eye-yon-viewer--no-selection .eye-yon-embed-wrap,
.eye-yon-viewer--no-selection .eye-yon-mobile-bar {
	display: none;
}

/* ── Notice (admin only) ─────────────────────────────────────────────────── */
.eye-yon-notice {
	padding: 12px 16px;
	background: #fff3cd;
	border-right: 4px solid #ffc107;
	border-radius: 4px;
}

/* ── Tablet: 3 columns ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.eye-yon-lang-switcher {
		grid-template-columns: repeat(3, 1fr);
	}
	.eye-yon-lang-btn {
		padding: 9px 12px;
		gap: 9px;
	}
	.eye-yon-flag-img {
		width: 28px;
		height: 28px;
	}
	.eye-yon-lang-code {
		font-size: 13px;
	}
	.eye-yon-lang-label {
		font-size: 10px;
	}
	.eye-yon-embed {
		display: none;
	}
	.eye-yon-fallback {
		display: block;
	}
}

/* ── Mobile: 2 columns ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.eye-yon-lang-switcher {
		grid-template-columns: repeat(2, 1fr);
	}
}