/* =====================================================
   Novels Dev by M.Salman — Upcoming Novel widget
   Structural / responsive rules only.
   Colors, typography, sizing are set live from Elementor.
   ===================================================== */

.nd-upcoming-novel {
	position: relative;
	overflow: hidden;
	background: linear-gradient(115deg, #5A2A74 0%, #BC5130 100%); /* Elementor overrides this */
}

.nd-upcoming-novel * {
	box-sizing: border-box;
}

/* decorative background wing */
.nd-wing-motif {
	position: absolute;
	top: 50%;
	right: -8%;
	width: min(60vw, 720px);
	height: auto;
	transform: translateY(-50%);
	opacity: 0.05;
	fill: #F4E8DB;
	pointer-events: none;
}

/* ---------------- Hero layout ---------------- */

.nd-hero {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(2rem, 5vw, 3rem);
	max-width: 720px;
	margin: 0 auto;
}

/* ---------------- Cover slot ---------------- */

.nd-cover-slot {
	width: 300px;
	max-width: 100%;
	margin: 0 auto;
}

.nd-cover-slot__frame {
	position: relative;
	aspect-ratio: 2 / 3;
	width: 100%;
	border: 1.5px dashed rgba(244, 232, 219, 0.35);
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	text-align: center;
	padding: 1.5rem;
	overflow: hidden;
	background: linear-gradient(160deg, rgba(90, 42, 116, 0.18), rgba(188, 81, 48, 0.10));
}

.nd-cover-slot__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nd-cover-slot__icon {
	width: 34px;
	height: 34px;
	color: rgba(244, 232, 219, 0.65);
}

.nd-cover-slot__label {
	margin: 0;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 500;
	font-size: 0.9rem;
	color: #F4E8DB;
}

/* ---------------- Hero copy ---------------- */

.nd-hero__kicker {
	margin: 0 0 0.75rem;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 500;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	color: #D9C4B3;
}

.nd-hero__title {
	margin: 0 auto 1rem;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 300;
	font-size: clamp(2.1rem, 4.6vw, 3rem);
	line-height: 1.12;
	color: #F4E8DB;
	max-width: 14ch;
}

.nd-hero__subhead {
	margin: 0 auto 2.25rem;
	max-width: 46ch;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.05rem;
	color: #D9C4B3;
}

.nd-hero__meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	width: 100%;
}

/* ---------------- Progress ring ---------------- */

.nd-progress-ring {
	position: relative;
}

.nd-progress-ring__track {
	--nd-progress: 42;
	--nd-ring-color: #BC5130;
	--nd-track-color: rgba(244, 232, 219, 0.12);
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: conic-gradient(
		var(--nd-ring-color) calc(var(--nd-progress) * 1%),
		var(--nd-track-color) 0
	);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
}

.nd-progress-ring__center {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #241033;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.nd-progress-ring__value {
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 600;
	font-size: clamp(1.6rem, 3vw, 2rem);
	color: #F4E8DB;
}

.nd-progress-ring__percent {
	font-size: 0.55em;
	font-weight: 500;
	margin-left: 2px;
}

.nd-progress-ring__caption {
	margin-top: 0.15rem;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.75rem;
	color: #D9C4B3;
}

/* ---------------- Blurb slot ---------------- */

.nd-blurb-slot {
	--nd-accent-a: #5A2A74;
	--nd-accent-b: #BC5130;
	border-top: 2px solid transparent;
	border-image: linear-gradient(90deg, var(--nd-accent-a), var(--nd-accent-b)) 1;
	padding-top: 1.5rem;
	width: 100%;
	max-width: 56ch;
	margin: 0 auto;
}

.nd-blurb-slot__label {
	margin: 0 0 0.5rem;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 500;
	font-size: 0.85rem;
	color: #D9C4B3;
}

.nd-blurb-slot__placeholder {
	margin: 0 auto;
	max-width: 56ch;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1rem;
	color: #F4E8DB;
}

/* ---------------- CTA strip ---------------- */

.nd-cta-strip {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: clamp(3rem, 7vw, 5rem) auto 0;
	padding-top: clamp(2rem, 4vw, 2.75rem);
	border-top: 1px solid rgba(244, 232, 219, 0.16);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.nd-cta-strip__text {
	margin: 0;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 500;
	font-size: 1.1rem;
	color: #F4E8DB;
}

.nd-cta-strip__button {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.75rem;
	border-radius: 999px;
	background: linear-gradient(115deg, #5A2A74 0%, #BC5130 100%);
	color: #F4E8DB;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nd-cta-strip__button:hover,
.nd-cta-strip__button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(188, 81, 48, 0.28);
}

.nd-cta-strip__button:focus-visible {
	outline: 2px solid #F4E8DB;
	outline-offset: 3px;
}

/* ---------------- Motion, respected ---------------- */

@media (prefers-reduced-motion: no-preference) {
	.nd-hero__copy {
		width: 100%;
		animation: nd-rise 0.6s ease both;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nd-hero__copy {
		width: 100%;
	}
}

@keyframes nd-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.nd-cta-strip__button { transition: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 760px) {
	.nd-cover-slot {
		max-width: 260px;
	}

	.nd-cta-strip {
		flex-direction: column;
		text-align: center;
	}
}
