/**
 * AI Related Posts — Frontend Widget (Dark Theme)
 *
 * @package AI_Related_Posts
 */

/* ---------------------------------------------------------------
 * Widget container
 * ------------------------------------------------------------- */
.airp-widget {
	background: #111113;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	color: #e4e4e7;
}

/* ---------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */
.airp-widget__header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.airp-widget__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: rgba(99, 102, 241, 0.15);
	border-radius: 8px;
	color: #818cf8;
	flex-shrink: 0;
}

.airp-widget__title {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	color: #fafafa;
	letter-spacing: -0.01em;
	line-height: 1.3;
	border: none;
	background: none;
}

/* ---------------------------------------------------------------
 * List
 * ------------------------------------------------------------- */
.airp-widget__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* ---------------------------------------------------------------
 * Item
 * ------------------------------------------------------------- */
.airp-widget__item {
	animation: airp-fade-in 0.3s ease both;
	margin: 0;
	padding: 0;
}

@keyframes airp-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------------------------------------------------------------
 * Link
 * ------------------------------------------------------------- */
.airp-widget__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: background 0.2s ease;
}

.airp-widget__link:hover,
.airp-widget__link:focus {
	background: rgba(255, 255, 255, 0.04);
	text-decoration: none;
	color: inherit;
	outline: none;
}

/* ---------------------------------------------------------------
 * Thumbnail
 * ------------------------------------------------------------- */
.airp-widget__thumb {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.04);
}

.airp-widget__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.airp-widget__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #52525b;
}

/* ---------------------------------------------------------------
 * Content (title + date)
 * ------------------------------------------------------------- */
.airp-widget__content {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1;
}

.airp-widget__post-title {
	font-size: 13px;
	font-weight: 500;
	color: #e4e4e7;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.airp-widget__link:hover .airp-widget__post-title {
	color: #a5b4fc;
}

.airp-widget__date {
	font-size: 11px;
	color: #71717a;
	letter-spacing: 0.02em;
}
