/* NSSD Smartlinks — public styles.
 * 1. Shared buttons (pages + shortcode)
 * 2. Standalone pages: base
 * 3. Release page
 * 4. About the artist
 * 5. Artist link page
 * 6. Shortcode embed
 */

/* 1. Shared buttons ------------------------------------------------- */

.nssd-sl-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nssd-sl-list li {
	margin: 0;
	padding: 0;
}

.nssd-sl-row {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 54px;
	padding: 10px 18px;
	box-sizing: border-box;
	border: 1px solid var(--nssd-sl-line-strong);
	border-radius: var(--nssd-sl-radius, 4px);
	background: var(--nssd-sl-button-bg, transparent);
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nssd-sl-row:hover,
.nssd-sl-row:focus-visible {
	background: var(--nssd-sl-ink);
	border-color: var(--nssd-sl-ink);
	color: var(--nssd-sl-ink-inverse);
	outline: none;
}

.nssd-sl-row-icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--nssd-sl-brand, currentColor);
}

.nssd-sl-row-icon .nssd-sl-icon {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.nssd-sl-row-name {
	flex: 1 1 auto;
	font-size: 0.875rem;
	font-weight: var(--nssd-sl-heading-weight, 700);
	letter-spacing: 0.02em;
	text-transform: var(--nssd-sl-cta-case, none);
}

.nssd-sl-row-cta {
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: var(--nssd-sl-heading-weight, 700);
	letter-spacing: 0.06em;
	text-transform: var(--nssd-sl-cta-case, none);
	color: var(--nssd-sl-text, inherit);
}

.nssd-sl-row:hover .nssd-sl-row-cta,
.nssd-sl-row:focus-visible .nssd-sl-row-cta {
	color: inherit;
}

/* 2. Standalone pages: base ----------------------------------------- */

.nssd-sl-page {
	--nssd-sl-bg: #1c1c24;
	--nssd-sl-ink: #ffffff;
	--nssd-sl-text: #d3d1c7;
	--nssd-sl-font: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
	--nssd-sl-radius: 999px;
	--nssd-sl-cta-case: none;
	--nssd-sl-heading-weight: 800;

	--nssd-sl-ink-inverse: var(--nssd-sl-bg);
	--nssd-sl-line: color-mix(in srgb, var(--nssd-sl-ink) 14%, transparent);
	--nssd-sl-line-strong: color-mix(in srgb, var(--nssd-sl-ink) 85%, transparent);
	--nssd-sl-button-bg: color-mix(in srgb, var(--nssd-sl-bg) 55%, transparent);

	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	background: var(--nssd-sl-bg);
	color: var(--nssd-sl-ink);
	font-family: var(--nssd-sl-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.nssd-sl-solid {
	--nssd-sl-button-bg: transparent;
}

.nssd-sl-backdrop {
	position: fixed;
	inset: -10%;
	width: 120%;
	height: 120%;
	object-fit: cover;
	filter: blur(48px) saturate(1.3);
	z-index: 0;
	pointer-events: none;
}

/* Dark veil over the blurred cover, so text stays readable. */
.nssd-sl-veil {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.75);
	pointer-events: none;
}

.nssd-sl-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	padding: 28px 20px 48px;
	box-sizing: border-box;
}

.nssd-sl-logo {
	display: inline-block;
	margin: 0 0 28px;
}

.nssd-sl-logo img {
	display: block;
	height: 36px;
	width: auto;
	max-width: 220px;
}

.nssd-sl-section {
	margin-top: 32px;
}

.nssd-sl-section-title {
	margin: 0 0 14px;
	font-size: 0.8125rem;
	font-weight: var(--nssd-sl-heading-weight);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nssd-sl-text);
}

.nssd-sl-arrow {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.nssd-sl-artist-cta {
	display: block;
	margin-top: 6px;
	font-size: 0.75rem;
	font-weight: var(--nssd-sl-heading-weight);
	letter-spacing: 0.06em;
	text-transform: var(--nssd-sl-cta-case);
	color: var(--nssd-sl-text);
}

.nssd-sl-soon {
	margin: 32px 0 0;
	padding: 18px;
	border: 1px solid var(--nssd-sl-line);
	border-radius: var(--nssd-sl-radius);
	color: var(--nssd-sl-text);
}

.nssd-sl-foot {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--nssd-sl-line);
	font-size: 0.8125rem;
}

.nssd-sl-foot a {
	color: var(--nssd-sl-text);
	text-decoration: none;
}

.nssd-sl-foot a:hover,
.nssd-sl-foot a:focus-visible {
	color: var(--nssd-sl-ink);
	text-decoration: underline;
}

@media (min-width: 640px) {
	.nssd-sl-card {
		padding-top: 48px;
		padding-bottom: 64px;
	}
}

/* 3. Release page --------------------------------------------------- */

.nssd-sl-cover {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: min(var(--nssd-sl-radius), 8px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.nssd-sl-solid .nssd-sl-cover {
	box-shadow: none;
}

.nssd-sl-cover-empty {
	background: color-mix(in srgb, var(--nssd-sl-ink) 10%, var(--nssd-sl-bg));
}

.nssd-sl-head {
	margin: 26px 0 0;
}

.nssd-sl-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.nssd-sl-title {
	margin: 0;
	min-width: 0;
	font-size: clamp(1.9rem, 8vw, 2.6rem);
	line-height: 1.02;
	font-weight: var(--nssd-sl-heading-weight);
	letter-spacing: -0.025em;
	overflow-wrap: anywhere;
}

.nssd-sl-type {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	color: var(--nssd-sl-text);
}

.nssd-sl-type-icon {
	width: 18px;
	height: 18px;
}

.nssd-sl-artist {
	margin: 8px 0 0;
	font-size: 1.0625rem;
	color: var(--nssd-sl-text);
}

@media (prefers-reduced-motion: no-preference) {
	.nssd-sl-cover,
	.nssd-sl-profile-img {
		animation: nssd-sl-in 0.5s ease-out both;
	}

	@keyframes nssd-sl-in {
		from {
			opacity: 0;
			transform: scale(0.97);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}

/* 4. About the artist ----------------------------------------------- */

.nssd-sl-artist-bio {
	color: var(--nssd-sl-text);
	font-size: 0.9375rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.nssd-sl-artist-bio p {
	margin: 0 0 0.6em;
}

.nssd-sl-artist-bio > :last-child {
	margin-bottom: 0;
}

.nssd-sl-artist-bio a {
	color: var(--nssd-sl-ink);
}

.nssd-sl-artist-card,
.nssd-sl-latest {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 18px;
	padding: 12px 18px 12px 12px;
	border: 1px solid var(--nssd-sl-line-strong);
	border-radius: var(--nssd-sl-radius);
	background: var(--nssd-sl-button-bg);
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nssd-sl-artist-card:hover,
.nssd-sl-artist-card:focus-visible,
.nssd-sl-latest:hover,
.nssd-sl-latest:focus-visible {
	background: var(--nssd-sl-ink);
	color: var(--nssd-sl-ink-inverse);
	outline: none;
}

.nssd-sl-artist-card:hover .nssd-sl-artist-cta,
.nssd-sl-artist-card:hover .nssd-sl-artist-alt,
.nssd-sl-latest:hover .nssd-sl-artist-cta,
.nssd-sl-latest:hover .nssd-sl-type {
	color: inherit;
}

.nssd-sl-artist-img {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: min(var(--nssd-sl-radius), 32px);
}

.nssd-sl-artist-card-text,
.nssd-sl-latest-text {
	flex: 1 1 auto;
	min-width: 0;
}

.nssd-sl-artist-name,
.nssd-sl-latest-title {
	display: block;
	font-size: 1.0625rem;
	font-weight: var(--nssd-sl-heading-weight);
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.nssd-sl-artist-alt {
	display: block;
	margin-top: 2px;
	font-size: 0.875rem;
	color: var(--nssd-sl-text);
}

/* 5. Artist link page ----------------------------------------------- */

.nssd-sl-profile {
	text-align: center;
}

.nssd-sl-profile-img {
	display: block;
	width: 168px;
	height: 168px;
	margin: 0 auto 18px;
	object-fit: cover;
	border-radius: min(var(--nssd-sl-radius), 60px);
}

.nssd-sl-latest-cover {
	flex: 0 0 auto;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: min(var(--nssd-sl-radius), 6px);
}

.nssd-sl-latest .nssd-sl-type {
	margin-top: 4px;
}

/* 6. Shortcode embed ------------------------------------------------ */

.nssd-sl-embed {
	--nssd-sl-ink: currentColor;
	--nssd-sl-ink-inverse: #ffffff;
	--nssd-sl-line: rgba(127, 127, 127, 0.22);
	--nssd-sl-line-strong: rgba(127, 127, 127, 0.6);

	max-width: 480px;
}

.nssd-sl-embed .nssd-sl-row:hover,
.nssd-sl-embed .nssd-sl-row:focus-visible {
	background: rgba(127, 127, 127, 0.12);
	border-color: var(--nssd-sl-line-strong);
	color: inherit;
}

.nssd-sl-embed-short {
	margin: 10px 0 0;
	font-size: 0.875rem;
	opacity: 0.75;
}

/* Divider between the links and "About the artist". */
.nssd-sl-page .nssd-sl-about {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--nssd-sl-line);
}

/* Physical formats (Label Manager). */
.nssd-sl-format .nssd-sl-row-cta {
	margin-left: auto;
}

.nssd-sl-format-price {
	font-weight: 700;
	font-size: 0.85em;
}
