/**
 * Frontend styles for the AI View Link component.
 * Used by both the [ai_view_link] shortcode and the Elementor widget.
 */

/* ---- Base link ---- */
.aiview-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375em;
	text-decoration: none;
	cursor: pointer;
	transition:
		color 0.3s ease,
		background-color 0.3s ease,
		border-color 0.3s ease,
		box-shadow 0.3s ease;
	line-height: 1.4;
}

.aiview-link:hover,
.aiview-link:focus {
	text-decoration: none;
	outline-offset: 2px;
}

/* ---- Display variants ---- */
.aiview-link--block {
	display: flex;
}

.aiview-link--button {
	display: inline-flex;
	padding: 0.5em 1.1em;
	border-radius: 4px;
	font-weight: 500;
	border: 1px solid currentColor;
}

/* ---- Icon ---- */
.aiview-link .aiview-icon {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	flex-shrink: 0;
	line-height: 1;
}

.aiview-link .aiview-icon svg {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: middle;
}

/* FontAwesome / Elementor icon element */
.aiview-link .aiview-icon i,
.aiview-link .aiview-icon-el {
	font-size: 1em;
	line-height: 1;
	vertical-align: middle;
}

/* ---- Text span ---- */
.aiview-link .aiview-text {
	vertical-align: middle;
}

/* ---- Wrapper (used by Elementor widget for alignment) ---- */
.aiview-link-wrap {
	line-height: 1;
}
