/* ============================================================
   TrivalRO Features Showcase
   Dedicated game-style presentation for pages/content?path=features
   ============================================================ */

.trival-features-section {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	padding: 38px 0 82px;
	overflow: hidden;
	border-top: 1px solid rgba(130, 187, 221, .25);
	border-bottom: 1px solid rgba(130, 187, 221, .28);
}

.trival-features-section::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(180deg, rgba(255,255,255,.91) 0%, rgba(246,251,254,.68) 28%, rgba(239,248,253,.62) 72%, rgba(255,255,255,.92) 100%),
		url('../../assets/background-3.jpg') center top / cover no-repeat;
	pointer-events: none;
}

.trival-features-inner {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto;
}

.trival-features-heading {
	width: fit-content;
	margin: 0 auto 9px;
	padding: 13px 32px 11px;
	border-radius: 999px;
	background: linear-gradient(180deg, #70c5ff 0%, #5bb5f1 56%, #4b9fdf 100%);
	box-shadow:
		inset 0 2px 1px rgba(255,255,255,.56),
		inset 0 -5px 0 rgba(22,102,164,.62),
		0 8px 16px rgba(48,104,151,.22);
	color: #fff !important;
	font-family: 'Grobold', 'Arial Black', sans-serif !important;
	font-size: 23px !important;
	font-weight: 400 !important;
	letter-spacing: 2.7px !important;
	line-height: 1.08 !important;
	text-align: center;
	text-shadow: 2px 2px 3px rgba(28,75,112,.55);
}

.trival-features-lead {
	max-width: 760px;
	margin: 0 auto 25px;
	color: #5f788b;
	font-family: 'Informb', sans-serif;
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: .35px;
	text-align: center;
}

.features-bento {
	display: grid;
	grid-template-columns: minmax(0, 2.05fr) minmax(285px, .88fr);
	gap: 14px;
	align-items: start;
	margin-bottom: 18px;
}

.features-main-column,
.features-side-stack {
	display: grid;
	gap: 14px;
	align-content: start;
	min-width: 0;
}

.feature-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(103,171,214,.36);
	border-bottom: 4px solid rgba(61,143,199,.62);
	border-radius: 17px;
	background: rgba(255,255,255,.94);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,.98),
		0 10px 24px rgba(50,105,145,.10);
}

.feature-card--wasd {
	display: grid;
	grid-template-rows: 330px auto;
	align-self: start;
}

.feature-card--camera,
.feature-card--joystick,
.feature-card--voice,
.feature-card--player {
	display: grid;
	grid-template-rows: 145px auto;
}

.feature-preview {
	position: relative;
	min-height: 0;
	overflow: hidden;
	background-position: center;
	background-size: cover;
}

.feature-preview::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14,55,82,.06), rgba(10,44,68,.31));
}

.feature-preview::after {
	content: '';
	position: absolute;
	inset: 9px;
	border: 1px solid rgba(255,255,255,.58);
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px rgba(38,124,180,.13);
	pointer-events: none;
}

.feature-preview--wasd {
	background-image: url('../../assets/wasd-movement-bg.png');
	background-position: center;
}

.feature-preview--camera {
	background-image: url('../../assets/3d-style-camera.png');
	background-position: center;
}

.feature-preview--joystick {
	background-image: url('../../assets/joystick-mobile.png');
	background-position: center;
}

.feature-preview--voice {
	background-image: url('../../assets/voice-chat-support.png');
	background-position: center;
}

.feature-preview--player {
	background-image: url('../../assets/player-support-desk-bg.png');
	background-position: center;
}

.feature-preview-label {
	position: absolute;
	left: 18px;
	top: 18px;
	z-index: 3;
	padding: 6px 10px 5px;
	border: 1px solid rgba(255,255,255,.48);
	border-radius: 999px;
	background: rgba(26,101,151,.78);
	box-shadow: 0 4px 10px rgba(18,72,108,.18);
	color: #fff;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 8px;
	letter-spacing: .55px;
	text-shadow: 0 1px 2px rgba(0,45,80,.58);
	text-transform: uppercase;
}

.wasd-keys {
	position: absolute;
	left: 24px;
	bottom: 24px;
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(3, 42px);
	grid-template-rows: repeat(2, 42px);
	gap: 6px;
}

.wasd-key {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255,255,255,.66);
	border-bottom: 4px solid rgba(39,100,143,.72);
	border-radius: 9px;
	background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(219,241,252,.93));
	box-shadow: 0 5px 12px rgba(13,60,91,.20), inset 0 1px 0 #fff;
	color: #2f719b;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 13px;
	text-shadow: 0 1px 0 #fff;
}

.wasd-key--w { grid-column: 2; grid-row: 1; }
.wasd-key--a { grid-column: 1; grid-row: 2; }
.wasd-key--s { grid-column: 2; grid-row: 2; }
.wasd-key--d { grid-column: 3; grid-row: 2; }

.camera-orbit {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 3;
	width: 74px;
	height: 74px;
	border: 2px solid rgba(255,255,255,.72);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(30,126,185,.18), inset 0 0 18px rgba(24,104,156,.18);
}

.camera-orbit::before {
	content: '360°';
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 11px;
	text-shadow: 0 2px 4px rgba(0,40,70,.65);
}

.joystick-visual {
	position: absolute;
	right: 18px;
	bottom: 16px;
	z-index: 3;
	width: 76px;
	height: 76px;
	border: 2px solid rgba(255,255,255,.64);
	border-radius: 50%;
	background: rgba(29,111,162,.25);
	box-shadow: 0 0 0 6px rgba(28,119,177,.13), inset 0 0 18px rgba(9,63,98,.20);
}

.joystick-visual::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(180deg, #eefaff, #8dd4f6);
	box-shadow: 0 4px 9px rgba(15,75,112,.25), inset 0 1px 0 #fff;
	transform: translate(-36%, -62%);
}

.voice-chat-visual {
	position: absolute;
	right: 20px;
	bottom: 18px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 11px 13px;
	border-radius: 14px;
	background: rgba(25, 104, 155, .58);
	box-shadow: 0 6px 16px rgba(17, 71, 108, .22);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.voice-chat-mic {
	position: relative;
	display: block;
	width: 18px;
	height: 26px;
	border: 2px solid rgba(255,255,255,.92);
	border-radius: 10px;
}

.voice-chat-mic::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -8px;
	width: 12px;
	height: 8px;
	border-bottom: 2px solid rgba(255,255,255,.92);
	border-left: 2px solid rgba(255,255,255,.92);
	border-right: 2px solid rgba(255,255,255,.92);
	border-radius: 0 0 8px 8px;
	transform: translateX(-50%);
}

.voice-chat-mic::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -13px;
	width: 2px;
	height: 6px;
	background: rgba(255,255,255,.92);
	transform: translateX(-50%);
}

.voice-chat-wave {
	display: block;
	width: 4px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 55, 91, .22);
}

.voice-chat-wave--1 { height: 13px; }
.voice-chat-wave--2 { height: 25px; }
.voice-chat-wave--3 { height: 18px; }

.feature-copy {
	padding: 17px 18px 18px;
}

.feature-card--wasd .feature-copy {
	padding: 20px 22px 21px;
}

.feature-kicker {
	display: inline-block;
	margin-bottom: 5px;
	color: #3b91c6;
	font-family: 'Informb', sans-serif;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 1.05px;
	text-transform: uppercase;
}

.feature-copy h3 {
	margin: 0 0 7px;
	border: 0 !important;
	color: #355f78 !important;
	font-family: 'Grobold', 'Arial Black', sans-serif !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.16 !important;
	letter-spacing: .45px;
}

.feature-card--wasd .feature-copy h3 {
	font-size: 19px !important;
}

.feature-copy p {
	margin: 0;
	max-width: 66ch;
	color: #61798b;
	font-family: 'Informb', sans-serif;
	font-size: 11px;
	line-height: 1.55;
}

.feature-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 11px;
}

.feature-tag {
	padding: 5px 8px 4px;
	border: 1px solid rgba(111,175,215,.38);
	border-radius: 999px;
	background: #eef8fd;
	color: #4d7e9d;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 7px;
	letter-spacing: .4px;
}

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

.feature-support-card {
	display: grid;
	grid-template-columns: 96px minmax(0,1fr);
	align-items: stretch;
	min-height: 118px;
	overflow: hidden;
	border: 1px solid rgba(108,171,212,.32);
	border-bottom: 3px solid rgba(68,145,193,.52);
	border-radius: 14px;
	background: rgba(255,255,255,.92);
	box-shadow: 0 7px 18px rgba(53,109,148,.08);
}

.feature-support-image {
	min-height: 100%;
	background-position: center;
	background-size: cover;
}

.feature-support-card:nth-child(1) .feature-support-image { background-image: url('../../assets/classic-progression-bg.png'); }
.feature-support-card:nth-child(2) .feature-support-image { background-image: url('../../assets/active-economy-vendor-bg.png'); }
.feature-support-card:nth-child(3) .feature-support-image { background-image: url('../../assets/guild-competition-bg.png'); }

.feature-support-copy {
	padding: 15px 16px;
}

.feature-support-copy h3 {
	margin: 0 0 5px;
	border: 0 !important;
	color: #39718f !important;
	font-family: 'Grobold', 'Arial Black', sans-serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
}

.feature-support-copy p {
	margin: 0;
	color: #687f90;
	font-family: 'Informb', sans-serif;
	font-size: 10px;
	line-height: 1.5;
}

@media (max-width: 940px) {
	.features-bento {
		grid-template-columns: 1fr;
	}

	.features-side-stack {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}

	.feature-card--camera,
	.feature-card--joystick,
	.feature-card--voice,
	.feature-card--player {
		grid-template-rows: 165px auto;
	}
}

@media (max-width: 680px) {
	.trival-features-section { padding: 28px 0 58px; }
	.trival-features-inner { width: min(100% - 24px, 1180px); }
	.trival-features-heading { font-size: 17px !important; letter-spacing: 2px !important; padding: 11px 20px 9px; }
	.features-side-stack,
	.features-support-grid { grid-template-columns: 1fr; }
	.feature-card--wasd { grid-template-rows: 240px auto; }
	.feature-card--camera,
	.feature-card--joystick,
	.feature-card--voice,
	.feature-card--player { grid-template-rows: 180px auto; }
	.features-support-grid { gap: 10px; }
	.feature-support-card { grid-template-columns: 82px minmax(0,1fr); }
	.wasd-keys { transform: scale(.88); transform-origin: left bottom; }
}

/* ── Closing prose block ──────────────────────────────────────────────────
   Sentence-level copy under the bento grid. The grid is short labels and card
   text; this is where the page states its subject in full sentences and links
   out to the other feature pages. */

.trival-features-prose {
	margin-top: 20px;
	padding: 24px 26px 22px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .92);
	border: 1px solid rgba(130, 187, 221, .5);
	box-shadow: 0 8px 18px rgba(48, 104, 151, .12);
}

.trival-features-prose h2 {
	margin: 0 0 14px;
	color: #16597f;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 19px;
	font-weight: 400;
	letter-spacing: .9px;
	line-height: 1.25;
	text-align: center;
}

.trival-features-prose p {
	max-width: 880px;
	margin: 0 auto 12px;
	color: #5f788b;
	font-family: 'Informb', sans-serif;
	font-size: 12.5px;
	line-height: 1.75;
	letter-spacing: .25px;
}

.trival-features-prose p strong {
	color: #1a6fa8;
}

.trival-features-prose a {
	color: #1a7fc0;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(26, 127, 192, .35);
}

.trival-features-prose a:hover {
	color: #0f5f93;
	border-bottom-color: rgba(15, 95, 147, .7);
}

.trival-features-prose-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.trival-features-prose-links a {
	padding: 8px 14px;
	border-radius: 999px;
	background: linear-gradient(180deg, #ffffff 0%, #e9f5ff 100%);
	border: 1px solid rgba(91, 181, 241, .55);
	color: #1a6fa8;
	font-size: 11.5px;
	letter-spacing: .4px;
	transition: background .15s ease, color .15s ease;
}

.trival-features-prose-links a:hover {
	background: linear-gradient(180deg, #5bb5f1 0%, #4b9fdf 100%);
	border-bottom-color: transparent;
	color: #fff;
}

@media (max-width: 680px) {
	.trival-features-prose { padding: 18px 16px 16px; }
	.trival-features-prose h2 { font-size: 16px; }
	.trival-features-prose p { font-size: 12px; }
}
