/* NarratiaVerse: dashboard home and look fixes (switch "home_v2", Phase 4). */

/* --- Same wide layout on every page (matches the home page) ---------- */
body.nv-ux2 {
	--site-width: 1200px;
}

/* --- Compact header on phones (was about a quarter of the screen) ----- */
@media (max-width: 767px) {
	.nv-ux2 .top-header__content {
		padding: 12px 16px 4px;
	}
	.nv-ux2 .top-header__link {
		font-size: 26px;
	}
	.nv-ux2 .top-header__tagline {
		display: none;
	}
	.nv-ux2 .main-navigation {
		margin: 0;
	}
	.nv-ux2 .main__wrapper {
		padding-top: 16px;
	}
	.nv-ux2 .main__background {
		top: 0;
	}
}

/* --- One share button: ours has WhatsApp, X, Facebook and copy -------- */
.nv-ux2:has(.nv-share) [data-fictioneer-id-param="sharing-modal"] {
	display: none !important;
}

/* --- Generated covers instead of a big letter ------------------------- */
.nv-tile__placeholder._gen {
	--nv-h: 12;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 6px;
	padding: 14px 12px;
	text-align: left;
	font-size: 14px;
	font-weight: 400;
	color: #fbf8f3;
	background:
		radial-gradient(120% 70% at 100% 0%, hsl(var(--nv-h) 70% 45% / 0.45), transparent 60%),
		linear-gradient(165deg, hsl(var(--nv-h) 28% 22%), hsl(calc(var(--nv-h) + 30) 22% 9%));
}

.nv-gen__kind {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.75;
}

.nv-gen__title {
	font-family: var(--nv-serif, Georgia, serif);
	font-size: clamp(16px, 2.2vw, 21px);
	font-style: italic;
	line-height: 1.15;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nv-gen__by {
	font-size: 12px;
	opacity: 0.8;
}

.nv-tile._chapter .nv-tile__placeholder._gen .nv-gen__title {
	-webkit-line-clamp: 2;
}

/* --- Dashboard home ---------------------------------------------------- */
.nv-home2 {
	gap: 36px;
}

.nv-hero2 {
	display: grid;
	gap: 24px;
}

.nv-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
}

.nv-stats__item {
	display: flex;
	flex-direction: column;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(251, 248, 243, 0.08);
}

.nv-stats__num {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fbf8f3;
}

.nv-stats__label {
	font-size: 13px;
	color: #c6bfb2;
}

.nv-admin-note {
	margin: -20px 0 0;
	padding: 8px 12px;
	border: 1px dashed currentColor;
	border-radius: 8px;
	font-size: 13px;
	opacity: 0.75;
}

.nv-row._creators .nv-admin-note {
	margin-top: 10px;
}

/* Top creators */
.nv-creator-cards {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 40vw;
	gap: 12px;
	margin: 0;
	padding: 0 0 6px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.nv-creator-card {
	scroll-snap-align: start;
	min-width: 0;
}

.nv-creator-card a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 16px 10px 14px;
	border-radius: 12px;
	background: var(--nv-card, rgba(0, 0, 0, 0.04));
	border: 1px solid rgba(20, 19, 23, 0.08);
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.nv-creator-card a:hover,
.nv-creator-card a:focus-visible {
	border-color: #ec2a1c;
}

.nv-creator-card__rank {
	position: absolute;
	top: 8px;
	left: 10px;
	font-size: 13px;
	font-weight: 700;
	opacity: 0.6;
}

.nv-creator-card__img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.nv-creator-card__name {
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.nv-creator-card__detail {
	font-size: 13px;
	opacity: 0.75;
}

/* Become a creator */
.nv-cta {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px 20px;
	border-radius: 12px;
	background: linear-gradient(135deg, #ec2a1c, #b3170d);
	color: #fff;
}

.nv-cta__title {
	margin: 0 0 4px;
	font-size: 20px;
	color: #fff;
}

.nv-cta__text {
	margin: 0;
	opacity: 0.92;
}

.nv-cta .nv-cta__button {
	align-self: flex-start;
	min-height: 44px;
	padding: 0 20px;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: #fbf8f3;
	color: #141317;
	font-weight: 700;
}

/* Genre chips */
.nv-genre-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-genre-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid rgba(20, 19, 23, 0.16);
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

.nv-genre-chip:hover,
.nv-genre-chip:focus-visible {
	border-color: #ec2a1c;
	color: #ec2a1c;
}

:root[data-mode="dark"] .nv-creator-card a,
:root[data-mode="dark"] .nv-genre-chip {
	border-color: rgba(251, 248, 243, 0.16);
}

@media (min-width: 768px) {
	.nv-hero2:has(.nv-stats) {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: end;
	}
	.nv-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.nv-creator-cards {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow: visible;
	}
	.nv-cta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 28px 32px;
	}
	.nv-cta .nv-cta__button {
		align-self: center;
		flex: none;
	}
}

@media (min-width: 1024px) {
	.nv-creator-cards {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}
