/* ============================================================
   Widget Logit — Frontend Styles
   ============================================================ */

/* ── Link Widget ───────────────────────────────────────────── */

.wl-link-widget {
	font-size: .95rem;
}

.wl-link-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wl-link-item {
	margin: 0;
	padding: 0;
}

.wl-link-item a {
	text-decoration: none;
	transition: color .15s, opacity .15s;
}

.wl-link-item a:hover {
	opacity: .8;
}

.wl-link-desc {
	display: block;
	font-size: .82em;
	color: #6b7280;
	margin-top: 2px;
}

/* Style: list */
.wl-style-list .wl-link-item {
	border-bottom: 1px solid #f0f0f0;
}

.wl-style-list .wl-link-item:last-child {
	border-bottom: none;
}

.wl-style-list .wl-link-item a {
	display: block;
	padding: 8px 2px;
	color: inherit;
}

/* Style: minimal */
.wl-style-minimal .wl-link-item {
	margin-bottom: 6px;
}

.wl-style-minimal .wl-link-item a {
	color: inherit;
	font-size: .9rem;
}

.wl-link-icon {
	display: inline-block;
	transition: transform .15s;
	color: currentColor;
}

.wl-style-minimal .wl-link-item a:hover .wl-link-icon {
	transform: translateX(4px);
}

/* Style: cards */
.wl-style-cards .wl-link-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wl-style-cards .wl-link-item a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: inherit;
	font-weight: 500;
	transition: background .15s, border-color .15s, transform .15s;
}

.wl-style-cards .wl-link-item a:hover {
	background: #f0f4ff;
	border-color: #a5b4fc;
	transform: translateX(2px);
	opacity: 1;
}

/* Style: buttons */
.wl-style-buttons .wl-link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wl-style-buttons .wl-link-item a {
	display: inline-block;
	padding: 8px 18px;
	background: #1a56db;
	color: #fff !important;
	border-radius: 6px;
	font-weight: 600;
	font-size: .88rem;
	letter-spacing: .02em;
	transition: background .15s, transform .12s;
}

.wl-style-buttons .wl-link-item a:hover {
	background: #1143b8;
	transform: translateY(-1px);
	opacity: 1;
}

/* ── Image Widget ──────────────────────────────────────────── */

.wl-image-widget {
	width: 100%;
}

/* Stack layout */
.wl-image-layout-stack .wl-image-item {
	display: block;
	margin-bottom: 12px;
}

.wl-image-layout-stack .wl-image-item:last-child {
	margin-bottom: 0;
}

/* Grid 2 layout */
.wl-image-layout-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* Slider layout (CSS-only, basic) */
.wl-image-layout-slider {
	overflow: hidden;
	position: relative;
}

.wl-image-layout-slider .wl-image-item {
	display: none;
}

.wl-image-layout-slider .wl-image-item:first-child {
	display: block;
}

/* Common figure styles */
.wl-image-item {
	margin: 0;
	padding: 0;
}

.wl-image-item a {
	display: block;
	overflow: hidden;
	border-radius: 6px;
	transition: opacity .15s, transform .15s;
}

.wl-image-item a:hover {
	opacity: .9;
	transform: scale(1.01);
}

.wl-image-item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.wl-image-caption {
	display: block;
	text-align: center;
	font-size: .82rem;
	color: #6b7280;
	margin-top: 4px;
}
