/* ==========================================================================
   ArcanePlayer — Single article (single.php)
   Long-form typography comes from assets/css/content.css (.sg-prose); card
   grid styling for the sidebar's related list comes from assets/css/cards.css.
   This file covers what's specific to the article template: the two-column
   layout, header, game info card, pros/cons, disclosure, and the sidebar.
   ========================================================================== */

.sg-single {
	background-color: var(--sg-color-bg, #0A0F0A);
	padding: 48px 6vw 80px;
}

/* ==========================================================================
   Two-column layout: content ~68%, sidebar ~32%. Falls back to a single
   centered reading column (the old layout) when there's no sidebar content
   at all (no game meta and no related posts) via the --no-sidebar modifier.
   ========================================================================== */

.sg-single-layout {
	display: grid;
	grid-template-columns: 68fr 32fr;
	gap: 48px;
	align-items: start;
	max-width: 1280px;
	margin: 0 auto;
}

.sg-single-layout--no-sidebar {
	grid-template-columns: 1fr;
	max-width: 760px;
}

.sg-article {
	min-width: 0; /* let long words/code blocks shrink instead of blowing out the grid track */
}

@media (max-width: 960px) {
	.sg-single-layout {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Header
   ========================================================================== */

.sg-article__category {
	display: inline-block;
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--sg-color-accent-start, #39FF14);
	text-decoration: none;
	margin-bottom: 14px;
}

.sg-article__category:hover,
.sg-article__category:focus-visible {
	text-decoration: underline;
}

.sg-article__title {
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 700;
	font-style: italic;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
	color: var(--sg-color-text-title, #FFFFFF);
	margin: 0 0 16px;
}

.sg-article__meta {
	font-family: var(--sg-font-body, 'Manrope', sans-serif);
	font-size: 14px;
	color: var(--sg-color-text-meta, #7C8A7C);
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--sg-color-border, #2A332A);
}

.sg-article__featured-image {
	margin: 28px 0;
}

.sg-article__featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   Game info card — clipped-corner card with genre/dev/publisher/release/
   platforms/price/rating fields + CTA button. Rendered twice: near the top
   and again near the end of the article.
   ========================================================================== */

.sg-game-card {
	margin: 32px 0;
}

.sg-game-card__clip {
	padding: 24px;
}

.sg-game-card__heading {
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 700;
	font-size: 20px;
	color: var(--sg-color-text-title, #FFFFFF);
	margin: 0 0 18px;
}

.sg-game-card__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px 24px;
	margin-bottom: 22px;
}

.sg-game-card__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sg-game-card__label {
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--sg-color-text-meta, #7C8A7C);
}

.sg-game-card__value {
	font-family: var(--sg-font-body, 'Manrope', sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: var(--sg-color-text-title, #FFFFFF);
}

.sg-game-card__rating {
	color: var(--sg-color-accent-start, #39FF14);
}

.sg-game-card__cta {
	display: inline-block;
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #05130a;
	background: linear-gradient(90deg, var(--sg-color-accent-start, #39FF14), var(--sg-color-accent-end, #00B140));
	padding: 14px 32px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 0 24px rgba(57, 255, 20, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sg-game-card__cta:hover,
.sg-game-card__cta:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 0 32px rgba(57, 255, 20, 0.35);
}

/* ==========================================================================
   Pros / Cons
   Editors author: <div class="sg-pros-cons"><div class="sg-pros">…</div>
   <div class="sg-cons">…</div></div> (see the comment in single.php).
   ========================================================================== */

.sg-prose .sg-pros-cons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 32px 0;
}

.sg-prose .sg-pros,
.sg-prose .sg-cons {
	background-color: var(--sg-color-card-bg, #121812);
	border: 1px solid var(--sg-color-border, #2A332A);
	padding: 20px 22px;
}

.sg-prose .sg-pros h3,
.sg-prose .sg-cons h3 {
	margin-top: 0;
	font-size: 16px;
}

.sg-prose .sg-pros h3 {
	color: var(--sg-color-accent-start, #39FF14);
}

.sg-prose .sg-cons h3 {
	color: #ff6b6b;
}

.sg-prose .sg-pros ul,
.sg-prose .sg-cons ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sg-prose .sg-pros li,
.sg-prose .sg-cons li {
	position: relative;
	padding-left: 26px;
	margin-bottom: 10px;
}

.sg-prose .sg-pros li::marker,
.sg-prose .sg-cons li::marker {
	content: none;
}

.sg-prose .sg-pros li::before,
.sg-prose .sg-cons li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 14px;
	height: 14px;
}

.sg-prose .sg-pros li::before {
	background-color: var(--sg-color-accent-start, #39FF14);
	clip-path: polygon(
		10% 45%, 25% 30%, 42% 60%, 75% 15%, 90% 30%, 42% 90%
	);
}

.sg-prose .sg-cons li::before {
	background-color: #ff6b6b;
	clip-path: polygon(
		15% 0%, 50% 35%, 85% 0%, 100% 15%, 65% 50%, 100% 85%, 85% 100%, 50% 65%, 15% 100%, 0% 85%, 35% 50%, 0% 15%
	);
}

@media (max-width: 640px) {
	.sg-prose .sg-pros-cons {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Affiliate disclosure
   ========================================================================== */

.sg-article__disclosure {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-family: var(--sg-font-body, 'Manrope', sans-serif);
	font-size: 13px;
	font-style: italic;
	line-height: 1.6;
	color: var(--sg-color-text-meta, #7C8A7C);
	margin: 0 0 40px;
}

.sg-article__disclosure-icon {
	flex-shrink: 0;
	margin-top: 3px;
	color: var(--sg-color-text-meta, #7C8A7C);
}

/* ==========================================================================
   Sidebar
   Only the compact CTA card is sticky — it's bounded by .sg-sidebar's own
   height (the related list sits below it in normal flow within the same
   column), so it naturally stops before running into the footer instead
   of needing a manually calculated height.
   ========================================================================== */

.sg-sidebar {
	min-width: 0;
}

.sg-sidebar-cta {
	position: sticky;
	top: 32px;
	margin-bottom: 32px;
}

.sg-sidebar-cta__clip {
	padding: 22px;
	text-align: center;
}

.sg-sidebar-cta__title {
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.3;
	color: var(--sg-color-text-title, #FFFFFF);
	margin: 0 0 8px;
}

.sg-sidebar-cta__rating {
	font-family: var(--sg-font-body, 'Manrope', sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: var(--sg-color-accent-start, #39FF14);
	margin: 0 0 18px;
}

.sg-sidebar-cta__button {
	display: block;
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #05130a;
	background: linear-gradient(90deg, var(--sg-color-accent-start, #39FF14), var(--sg-color-accent-end, #00B140));
	padding: 13px 20px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sg-sidebar-cta__button:hover,
.sg-sidebar-cta__button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 0 28px rgba(57, 255, 20, 0.35);
}

.sg-sidebar__related-heading {
	font-family: var(--sg-font-display, 'Rajdhani', sans-serif);
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--sg-color-text-title, #FFFFFF);
	padding-bottom: 14px;
	margin: 0 0 18px;
	border-bottom: 1px solid var(--sg-color-border, #2A332A);
}

.sg-sidebar__related-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sg-sidebar__related-list .sg-card {
	max-width: none;
}

@media (max-width: 960px) {
	.sg-sidebar-cta {
		position: static;
		top: auto;
	}
}
