/**
 * PHANTASO SEO — Kaynaklar (external references) block styling.
 * Loaded on frontend + Gutenberg editor.
 */

/* ── Container ── */
.yz-seo-sources,
.phantaso-seo-sources,
.wp-block-group.yz-seo-sources,
.wp-block-group.phantaso-seo-sources {
	margin: 2.25rem 0 0;
	padding: 1.15rem 1.25rem 1.05rem;
	border-radius: 0.85rem;
	border: 1px solid color-mix(in srgb, #16806b 22%, rgba(15, 40, 32, 0.08));
	background:
		linear-gradient(135deg, color-mix(in srgb, #16806b 8%, #fff) 0%, #fff 58%),
		linear-gradient(180deg, #fff 0%, color-mix(in srgb, #e8f5f1 40%, #fff) 100%);
	box-shadow: 0 1px 3px rgba(15, 40, 32, 0.06);
}

.yz-seo-sources > .wp-block-group__inner-container,
.phantaso-seo-sources > .wp-block-group__inner-container {
	display: block;
}

.yz-seo-sources__kicker,
.yz-seo-sources .yz-seo-sources__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #16806b;
}

.yz-seo-sources__title,
.yz-seo-sources .yz-seo-sources__title,
.yz-seo-sources .wp-block-heading.yz-seo-sources__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.15rem, 1.6vw, 1.35rem);
	font-weight: 700;
	line-height: 1.25;
	color: #0f2018;
}

.yz-seo-sources__deck,
.yz-seo-sources .yz-seo-sources__deck {
	margin: 0 0 0.85rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #64748b;
}

/* ── List reset (Gutenberg wp-block-list bullets) ── */
.yz-seo-sources ul,
.yz-seo-sources .wp-block-list,
.yz-seo-sources__list,
.phantaso-seo-sources-list,
.yz-seo-sources .phantaso-seo-sources-list {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	padding-left: 0 !important;
	padding-inline-start: 0 !important;
	display: grid;
	gap: 0.55rem;
}

.yz-seo-sources li,
.yz-seo-sources .wp-block-list-item,
.yz-seo-sources__item,
.yz-seo-sources li.yz-seo-sources__item {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.yz-seo-sources li::marker,
.yz-seo-sources .wp-block-list-item::marker {
	content: none !important;
	font-size: 0 !important;
}

/* ── Link row card ── */
.yz-seo-sources__link,
.yz-seo-sources a.yz-seo-sources__link,
.yz-seo-sources .wp-block-list-item > a,
.yz-seo-sources li > a.yz-link-external {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	box-sizing: border-box;
	padding: 0.72rem 0.9rem;
	border-radius: 0.65rem;
	border: 1px solid rgba(15, 40, 32, 0.08);
	background: #fff;
	color: #0f2018;
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.yz-seo-sources__link:hover,
.yz-seo-sources a.yz-seo-sources__link:hover,
.yz-seo-sources .wp-block-list-item > a:hover {
	border-color: color-mix(in srgb, #16806b 45%, rgba(15, 40, 32, 0.08));
	box-shadow: 0 8px 24px rgba(15, 40, 32, 0.08);
	transform: translateY(-1px);
	color: #16806b;
}

.yz-seo-sources__link-title {
	font-weight: 650;
	font-size: 0.95rem;
	line-height: 1.35;
}

.yz-seo-sources__badge {
	flex: 0 0 auto;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	background: color-mix(in srgb, #16806b 12%, #fff);
	color: #16806b;
	border: 1px solid color-mix(in srgb, #16806b 24%, transparent);
	white-space: nowrap;
}

/* No duplicate external-link arrow from prose styles */
.yz-seo-sources a.yz-link-external::after,
.phantaso-seo-sources a.yz-link-external::after {
	content: none !important;
	display: none !important;
}

/* ── Gutenberg editor iframe ── */
.editor-styles-wrapper .yz-seo-sources,
.editor-styles-wrapper .phantaso-seo-sources {
	max-width: 100%;
}

.editor-styles-wrapper .yz-seo-sources .wp-block-list,
.editor-styles-wrapper .yz-seo-sources ul {
	margin-left: 0 !important;
}

.block-editor-block-list__block .yz-seo-sources .wp-block-list-item {
	padding-left: 0 !important;
	margin-left: 0 !important;
}
