/* showcase.css: Compendium showcase pages (Arms and Armor). */

:root {
	--sc-ink: #2b211c;
	--sc-ink-soft: #5b4a40;
	--sc-rust: #6f4e37;
	--sc-gold: #febb26;
	--sc-bone: #f4ede3;
	--sc-night: #1c1512;
	--sc-line: #e2d8cb;
}

/* ---------- Hero with 3D figure ---------- */

/* general.css pads every <p> by 15px; showcase blocks align their own text. */
.sc-hero p,
.sc-section p,
.sc-card p,
.sc-cta p {
	padding: 0;
}

.sc-hero {
	position: relative;
	color: #fff;
	background:
		linear-gradient(90deg, rgba(20, 13, 10, 0.92) 0%, rgba(20, 13, 10, 0.8) 45%, rgba(20, 13, 10, 0.7) 100%),
		url('/assets/img/Black_Cave._Krasnodar_region._Russia._03_1.jpg') center / cover no-repeat;
	overflow: hidden;
}

.sc-hero-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: 24px;
	padding: 32px 24px 24px;
	min-height: 560px;
}

.sc-eyebrow {
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sc-gold);
	margin: 0 0 8px;
}

.sc-hero h1 {
	font-family: 'Kaushan Script', cursive;
	font-weight: 400;
	font-size: clamp(2.8rem, 6vw, 4.6rem);
	line-height: 1.05;
	color: #fff;
	text-align: left;
	margin: 0 0 12px;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.sc-tagline {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 14px;
	color: var(--sc-bone);
}

.sc-intro {
	font-size: 1rem;
	line-height: 1.6;
	max-width: 34em;
	color: #e9dfd3;
	margin: 0 0 22px;
}

/* Weapon + binding pickers */
.sc-picker-label {
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #cbb9a6;
	margin: 0 0 6px;
}

.sc-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

.sc-picker button {
	width: auto;
	margin: 0;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--sc-bone);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(254, 187, 38, 0.35);
	border-radius: 3px;
	padding: 8px 14px;
	min-height: 40px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sc-picker button:hover {
	background: rgba(254, 187, 38, 0.14);
	border-color: var(--sc-gold);
}

.sc-picker button[aria-pressed="true"] {
	background: var(--sc-gold);
	border-color: var(--sc-gold);
	color: var(--sc-night);
}

.sc-picker button:focus-visible {
	outline: 2px solid var(--sc-gold);
	outline-offset: 2px;
}

.sc-binding-note {
	font-style: italic;
	color: #e9dfd3;
	min-height: 1.5em;
	margin: -4px 0 0;
}

/* Armor: the binding note sits above the armor pickers, so give it room below */
.sc-binding-note + .sc-picker-label {
	margin-top: 14px;
}

/* Armor piece toggles: eight of them, so a little smaller than the weapon buttons */
.sc-picker--pieces button {
	font-size: 0.85rem;
	padding: 6px 10px;
	min-height: 34px;
}

/* 3D stage */
.sc-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 7 / 8;
	max-height: 640px;
	justify-self: center;
}

.sc-stage canvas,
.sc-stage .sc-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.sc-stage .sc-poster {
	object-fit: contain;
	transition: opacity 0.5s ease;
}

.sc-stage.is-live .sc-poster {
	opacity: 0;
	pointer-events: none;
}

.sc-stage canvas {
	cursor: grab;
	touch-action: pan-y;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.sc-stage.is-live canvas {
	opacity: 1;
}

.sc-stage canvas:active {
	cursor: grabbing;
}

.sc-stage-hint {
	position: absolute;
	left: 50%;
	bottom: 6px;
	transform: translateX(-50%);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	color: rgba(244, 237, 227, 0.7);
	white-space: nowrap;
	pointer-events: none;
}

.sc-held-name {
	position: absolute;
	left: 50%;
	top: 8px;
	transform: translateX(-50%);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--sc-bone);
	background: rgba(20, 13, 10, 0.6);
	border: 1px solid rgba(254, 187, 38, 0.35);
	padding: 4px 10px;
	white-space: nowrap;
	pointer-events: none;
}

/* ---------- Item cards ---------- */

.sc-section {
	padding: 8px 24px 32px;
}

.sc-section h2 {
	text-align: left;
	margin: 18px 0 4px;
}

.sc-section-lede {
	color: var(--sc-ink-soft);
	margin: 0 0 22px;
	max-width: 46em;
}

.sc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.sc-card {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 16px;
	background: #fff;
	border: 1px solid var(--sc-line);
	border-top: 3px solid var(--sc-rust);
	padding: 18px;
	color: var(--sc-ink);
}

.sc-card-art {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.sc-card-icon {
	width: 132px;
	height: 132px;
	background: radial-gradient(circle at 50% 45%, #fbf6ef 0%, #efe4d5 70%);
	border: 1px solid var(--sc-line);
	display: grid;
	place-items: center;
}

.sc-card-icon img {
	width: 116px;
	height: 116px;
	object-fit: contain;
}

.sc-swatches {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	width: 132px;
}

#content .sc-swatches button {
	width: 100% !important;
	aspect-ratio: 1;
	padding: 2px;
	margin: 0;
	border: 1px solid var(--sc-line);
	border-radius: 0;
	background: #fbf6ef;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

#content .sc-swatches button:hover {
	background: #fbf6ef;
	border-color: var(--sc-rust);
}

#content .sc-swatches button[aria-pressed="true"] {
	border: 2px solid var(--sc-rust);
	background: #fff;
}

.sc-swatches img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.sc-card h3 {
	text-align: left;
	margin: 0 0 2px;
	color: var(--sc-ink);
	font-size: 1.2rem;
}

.sc-card-variant {
	font-size: 0.8rem;
	color: var(--sc-ink-soft);
	margin: 0 0 8px;
	min-height: 1.2em;
}

.sc-card-lore {
	margin: 0 0 12px;
	line-height: 1.55;
}

.sc-stats {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 4px 10px;
	align-items: center;
	font-size: 0.82rem;
	margin: 0 0 10px;
}

.sc-stat-label {
	color: var(--sc-ink-soft);
}

.sc-stat-bar {
	height: 6px;
	background: #efe4d5;
	position: relative;
}

.sc-stat-bar span {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--sc-rust);
}

.sc-stat-value {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.sc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.sc-tags li {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--sc-ink);
	background: #f6ecdc;
	border: 1px solid #ead9bd;
	padding: 2px 8px;
}

#content .sc-hold {
	width: auto !important;
	font-size: 0.85rem;
	font-weight: 700;
	background: var(--sc-ink);
	color: var(--sc-bone);
	border: none;
	border-radius: 0;
	padding: 8px 12px;
	cursor: pointer;
	margin: 0;
}

#content .sc-hold:hover {
	background: var(--sc-rust);
}

/* ---------- Bindings ---------- */

.sc-bindings {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-bindings li {
	background: var(--sc-bone);
	border-left: 3px solid var(--sc-gold);
	padding: 12px 14px;
}

.sc-bindings strong {
	display: block;
	color: var(--sc-ink);
	margin-bottom: 4px;
}

.sc-bindings span {
	color: var(--sc-ink-soft);
	font-size: 0.92rem;
	line-height: 1.5;
}

/* ---------- Closing call to action ---------- */

.sc-cta {
	margin: 12px 24px 32px;
	padding: 22px 24px;
	background: var(--sc-night);
	color: var(--sc-bone);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sc-cta p {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
}

.sc-cta a {
	color: var(--sc-night);
	background: var(--sc-gold);
	font-weight: 700;
	text-decoration: none;
	padding: 10px 16px;
}

.sc-cta a:hover {
	background: #ffd060;
}

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

@media (max-width: 900px) {
	.sc-hero-inner {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 20px 16px 16px;
	}

	.sc-stage {
		order: -1;
		max-width: 440px;
		max-height: 460px;
	}

	.sc-hero h1 {
		text-align: center;
	}

	.sc-tagline,
	.sc-intro,
	.sc-picker-label,
	.sc-binding-note,
	.sc-eyebrow {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}

	.sc-picker {
		justify-content: center;
	}

	.sc-grid {
		grid-template-columns: 1fr;
	}

	.sc-bindings {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.sc-section {
		padding: 4px 16px 24px;
	}

	.sc-card {
		grid-template-columns: 1fr;
	}

	.sc-card-art {
		flex-direction: row;
		align-items: flex-start;
	}

	.sc-card-icon {
		width: 104px;
		height: 104px;
		flex-shrink: 0;
	}

	.sc-card-icon img {
		width: 92px;
		height: 92px;
	}

	.sc-swatches {
		grid-template-columns: repeat(2, 1fr);
		width: 88px;
	}

	.sc-bindings {
		grid-template-columns: 1fr;
	}

	.sc-cta {
		margin: 8px 16px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-stage .sc-poster,
	.sc-stage canvas {
		transition: none;
	}
}
