/* ============================================================
   GameObserver — Single-post extras
   ------------------------------------------------------------
   CSS for widgets that ONLY appear on single posts:
     - Featured image wrapper
     - Sticky support button
     - Social share bar
     - Author box
     - Related posts ("Explore related articles")
     - Review breakdown box
   Loaded conditionally on is_single() — saves these bytes on
   homepage / categories / archives / search.
   Extracted from style.css.
   ============================================================ */
.author_grid {
	padding: 1.5rem;
	text-align: center;
	height: 100%;
	background:
		radial-gradient(ellipse at 100% 0%,
			rgba(120, 120, 216, 0.2) 0%,
			rgba(88, 88, 200, 0) 50%),
		radial-gradient(ellipse at 0% 100%,
			rgba(56, 72, 104, 0.4) 0%,
			rgba(28, 25, 44, 0) 60%),
		linear-gradient(135deg, #1c192c 0%, #232040 40%, #384868 100%);
	border: 1px solid rgba(120, 120, 216, 0.2);
	border-radius: 16px;
	box-shadow: 0 8px 24px -8px rgba(28, 25, 44, 0.6);
	position: relative;
	overflow: hidden;
}
.author_grid::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.5px 1.5px at 88% 12%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
		radial-gradient(1px 1px at 10% 75%, rgba(184, 184, 255, 0.5) 50%, transparent 51%),
		radial-gradient(1px 1px at 60% 88%, rgba(184, 184, 255, 0.4) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 35% 20%, rgba(255, 255, 255, 0.3) 50%, transparent 51%);
	pointer-events: none;
	z-index: 0;
}
.author_grid > * {
	position: relative;
	z-index: 1;
}
.author_grid .avatar-link {
	display: block;
	width: 100px;
	height: 100px;
	margin: 0 auto 1rem;
}
.author_grid .avatar-link img,
.author_grid .avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 0 auto;
	border: 2px solid rgba(184, 184, 255, 0.35);
	box-shadow:
		0 6px 18px -4px rgba(28, 25, 44, 0.6),
		inset 0 2px 6px rgba(255, 255, 255, 0.1);
}
.author_grid .author-content h5 {
	text-align: center;
	margin: 0 0 4px 0;
	font-family: "Roboto", sans-serif;
	font-size: 1rem;
	font-weight: 700;
}
.author_grid .author-content h5 a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}
.author_grid .author-content h5 a:hover {
	color: #b8b8ff;
}
.author_grid .author-content h4 {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
	color: rgba(184, 184, 255, 0.8);
	margin: 0 0 10px 0;
}
.author_grid .author-content span.highlight {
	display: inline-block;
	background: rgba(88, 88, 200, 0.35);
	color: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(120, 120, 216, 0.3);
	padding: 4px 10px;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	border-radius: 20px;
	margin-right: 6px;
	margin-bottom: 10px;
}
.author_grid .author-content p {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.65);
	font-weight: 400;
	line-height: 1.5;
	margin: 0 0 0.75rem 0;
}
.author_grid .author-content a[href] {
	color: #b8b8ff;
	margin-right: 8px;
	font-size: 0.9rem;
	transition: color 0.15s ease;
}
.author_grid .author-content a[href]:hover {
	color: #fff;
}
.author_list h3 {
	padding-left: 10px;
	color: #1c192c;
}
.relatedposts h3 { text-align: center; margin-bottom: 20px; }
.relatedtitle { text-align: center; }
.relatedset a {
	text-decoration: none;
	color: inherit;
	display: block;
}
.relatedset .relatedtitle {
	font-size: 13px;
	font-weight: 700;
	font-family: "Roboto", sans-serif;
	color: #1c192c;
	padding: 8px 4px 0;
	line-height: 1.3;
	text-align: center;
}
.relatedset a:hover .relatedtitle {
	color: #b8b8ff;
}
.related-scroll-wrapper { position: relative; }
.relatedset { flex-shrink: 0; width: 45%; }
.relatedset { flex-shrink: 0; width: 80%; }
.relatedset { width: 50%; padding: 10px; }
.relatedimage { text-align: center; }
.relatedimage img {
	object-fit: cover;
	height: 150px;
	width: 100%;
	border-radius: 8px;
}
.related-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	background: white;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	padding: 0 0 2px 0;
	z-index: 10;
	transition: opacity 0.2s;
	color: #1c192c;
}
.related-arrow { display: flex; }
.related-arrow-right { right: 4px; }
.related-arrow-left { left: 4px; }
.related-arrow.hidden { opacity: 0; pointer-events: none; }
.relatedposts { margin-top: 30px; }
.author_info,
.author_grid {
	color: var(--go-text);
}
.go-social-bar { display:flex; align-items:center; gap:8px; padding:10px 12px; background:rgba(28,25,44,0.95); border:1px solid rgba(184,184,255,0.14); border-radius:8px; margin-bottom:20px; flex-wrap:wrap; }
.go-social-btn { display:flex; align-items:center; gap:6px; padding:7px 14px; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer; border:1px solid rgba(184,184,255,0.14); background:transparent; color:rgba(255,255,255,0.92); text-decoration:none; transition:background .15s,border-color .15s; white-space:nowrap; }
.go-social-btn:hover { background:rgba(184,184,255,0.08); border-color:rgba(184,184,255,0.3); color:#fff; }
.go-social-btn svg { flex-shrink:0; }
.go-comment-count { background:rgba(56,72,104,0.9); color:#fff; font-size:11px; font-weight:700; padding:1px 6px; border-radius:10px; min-width:20px; text-align:center; }
.go-google-follow { display:flex; align-items:center; gap:8px; padding:7px 14px; border-radius:6px; font-size:13px; font-weight:600; cursor:pointer; border:1px solid rgba(184,184,255,0.14); background:transparent; color:rgba(255,255,255,0.92); text-decoration:none; transition:background .15s,border-color .15s; white-space:nowrap; margin-left:auto; }
.go-google-follow:hover { background:rgba(184,184,255,0.08); border-color:rgba(184,184,255,0.3); color:#fff; }
.go-google-follow .g-logo { width:18px; height:18px; flex-shrink:0; }
.go-social-bar{gap:6px;padding:8px 10px;}
.go-social-btn,.go-google-follow{padding:6px 10px;font-size:12px;}

/* Narrow phones (≤480px): when the bar can't fit in one row, the Google
   "Support us" button wraps to a second row. Without justify-content the
   wrapped second row would be left-aligned (or right-aligned because of
   .go-google-follow's margin-left:auto). Center the items so any wrap
   reads as a clean stacked group. */
@media (max-width: 480px) {
	.go-social-bar { justify-content: center; }
	.go-google-follow { margin-left: 0; }
}
/* ── Sticky "Support us" Google G — base (mobile/tablet) state ──
   Circular 52px pill anchored bottom-right. Tap/click to expand to
   a 230px label-pill (JS adds .is-expanded for 3s).
   Desktop overrides below (≥1400px) flip it to an always-expanded
   pill anchored beside the article column. The 1400 breakpoint is
   the minimum viewport width where `left: calc(50% + 390px + 64px)`
   plus the pill's ~230px width still fits without horizontal overflow.
   Wider gap (64px vs 16px before) keeps the pill clear of the author
   bio box, which extends past the article body's 780px column. */
#go-sticky-support {
	position: fixed; bottom: 28px; right: 20px; top: auto; left: auto;
	z-index: 9998;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	background: rgba(20,18,35,0.96);
	border: 1px solid rgba(184,184,255,0.25);
	border-radius: 50px;
	box-shadow: 0 4px 24px rgba(0,0,0,.5);
	cursor: pointer; text-decoration: none;
	color: rgba(255,255,255,0.92);
	width: 52px; height: 52px; min-width: 52px; max-width: 52px;
	gap: 0; padding: 0;
	transition:
		width .38s cubic-bezier(.34,1.4,.64,1),
		max-width .38s cubic-bezier(.34,1.4,.64,1),
		padding .28s, gap .28s,
		border-color .2s, box-shadow .25s,
		opacity .3s, transform .3s;
	opacity: 0; pointer-events: none;
	transform: translateY(14px) scale(.9);
}
#go-sticky-support.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
#go-sticky-support.is-expanded {
	width: 230px; max-width: 230px;
	padding: 0 18px 0 12px; gap: 10px;
	justify-content: flex-start;
	border-color: rgba(184,184,255,.5);
	box-shadow: 0 6px 32px rgba(88,88,200,.3), 0 0 0 3px rgba(88,88,200,.12);
}
#go-sticky-support .sticky-g { width: 24px; height: 24px; min-width: 24px; max-width: 24px; flex-shrink: 0; }
#go-sticky-support .sticky-label {
	font-size: 13px; font-weight: 700;
	white-space: nowrap; letter-spacing: .01em;
	opacity: 0; max-width: 0; transform: translateX(-4px);
	overflow: hidden;
	transition: opacity .22s .12s, max-width .3s .05s, transform .22s .12s;
}
#go-sticky-support.is-expanded .sticky-label { opacity: 1; max-width: 200px; transform: translateX(0); }
#go-sticky-support.pulse { animation: go-pulse-ring .75s ease-out; }
#go-sticky-support:hover { border-color: rgba(184,184,255,.55); box-shadow: 0 6px 32px rgba(88,88,200,.35), 0 0 0 3px rgba(88,88,200,.15); }

/* ── Desktop (≥1400px): always-expanded pill beside the article column.
   Matches the JS isDesktop check so the no-tap-to-expand flow is correct.
   Pill is offset 64px past the article column's right edge so it clears
   the wider author bio box (which extends past the body's 780px column). */
@media (min-width: 1400px) {
	#go-sticky-support {
		top: 50vh; bottom: auto; right: auto;
		left: calc(50% + 390px + 64px);
		transform: translateY(-50%) scale(.9);
		width: auto; max-width: none;
		height: 52px;
		padding: 0 20px 0 14px;
		gap: 12px;
		justify-content: flex-start;
	}
	#go-sticky-support.is-visible { transform: translateY(-50%) scale(1); }
	#go-sticky-support .sticky-g { width: 30px; height: 30px; min-width: 30px; max-width: 30px; }
	#go-sticky-support .sticky-label {
		opacity: 1; max-width: 200px; transform: translateX(0);
		font-size: 14px; transition: none;
	}
}
/* ── "Support human-only games writing" callout ──
   Appended after every single post body via the_content filter.
   Cosmic dark surface + subtle indigo nebula glow that matches
   the site's body::before. Two-column on desktop (text left,
   white CTA pill right), stacks on mobile. */
.go-support-callout {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 32px 0 0;
	padding: 22px 26px;
	background: linear-gradient(135deg, rgba(28,25,44,0.96) 0%, rgba(20,18,35,0.96) 100%);
	border: 1px solid rgba(184,184,255,0.18);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.go-support-callout::before {
	content: "";
	position: absolute; inset: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 0% 0%,   rgba(88,88,200,0.18) 0%, rgba(88,88,200,0) 55%),
		radial-gradient(ellipse at 100% 100%, rgba(120,120,216,0.14) 0%, rgba(120,120,216,0) 55%);
}
.go-support-callout > * { position: relative; z-index: 1; }

.go-support-callout .go-support-callout__text { flex: 1 1 auto; min-width: 0; }
/* Compound selectors here (.go-support-callout .go-support-callout__X) are
   needed to beat .entry-content h3 (specificity 0,1,1), since the cosmic
   theme uses .entry-content h2/h3/h4 { color:#fff !important }. */
.go-support-callout .go-support-callout__title {
	margin: 0 0 6px !important;
	font-family: "Space Grotesk", "Roboto", sans-serif !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	letter-spacing: -0.2px !important;
	line-height: 1.3 !important;
}
.go-support-callout .go-support-callout__body {
	margin: 0 !important;
	font-size: 0.92rem !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: rgba(255,255,255,0.78) !important;
}

.go-support-callout__cta,
.go-support-callout__cta:link,
.go-support-callout__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	padding: 12px 20px;
	background: #ffffff !important;
	color: #1c192c !important;
	font-family: "Space Grotesk", "Roboto", sans-serif;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	text-decoration: none !important;
	border: 1px solid rgba(0,0,0,0.12);
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.go-support-callout__cta span { color: #1c192c !important; }
.go-support-callout__cta:hover,
.go-support-callout__cta:focus-visible {
	transform: translateY(-1px);
	background: #fafafc !important;
	color: #1c192c !important;
	border-color: rgba(0,0,0,0.25);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.go-support-callout__g { width: 26px; height: 26px; flex-shrink: 0; }

@media (max-width: 600px) {
	.go-support-callout {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 20px;
	}
	.go-support-callout__cta {
		justify-content: center;
		text-align: center;
	}
}

/* Light-mode override: surface lifts to white (instead of cosmic dark) and
   the title/body switch to dark text. CTA stays white with black text. */
html[data-theme="light"] .go-support-callout {
	background: linear-gradient(135deg, #ffffff 0%, #f7f8fb 100%) !important;
	border-color: rgba(0,0,0,0.08) !important;
	box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .go-support-callout::before {
	background:
		radial-gradient(ellipse at 0% 0%,   rgba(59,186,156,0.08) 0%, rgba(59,186,156,0) 55%),
		radial-gradient(ellipse at 100% 100%, rgba(96,64,140,0.06) 0%, rgba(96,64,140,0) 55%);
}
html[data-theme="light"] .go-support-callout .go-support-callout__title { color: #1c192c !important; }
html[data-theme="light"] .go-support-callout .go-support-callout__body  { color: #4a4a55 !important; }

html[data-theme="light"] .relatedset .relatedtitle      { color: #1c192c !important; }
html[data-theme="light"] .relatedset a:hover .relatedtitle { color: #3bba9c !important; }
html[data-theme="light"] .go-social-bar {
	background: #ffffff !important;
	border-color: rgba(0,0,0,0.1) !important;
}
html[data-theme="light"] .go-social-btn {
	color: #1c192c !important;
	border-color: rgba(0,0,0,0.1) !important;
	background: transparent !important;
}
html[data-theme="light"] .go-social-btn:hover {
	background: rgba(0,0,0,0.05) !important;
}
html[data-theme="light"] .go-comment-count { background: #394361 !important; color: #fff !important; }
html[data-theme="light"] .go-google-follow {
	color: #1c192c !important;
	border-color: rgba(0,0,0,0.1) !important;
	background: transparent !important;
}
html[data-theme="light"] .go-google-follow:hover { background: rgba(0,0,0,0.05) !important; }
html[data-theme="light"] #go-sticky-support .sticky-label { color: #1c192c !important; }
html[data-theme="light"] #go-sticky-support {
  background: rgba(255,255,255,0.97) !important;
  border-color: rgba(120,120,200,0.25) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.12) !important;
  color: #1c192c !important;
}
html[data-theme="light"] #go-sticky-support:hover {
  border-color: rgba(120,120,200,0.5) !important;
  box-shadow: 0 6px 28px rgba(120,120,200,.2) !important;
}
.post-single-inside-article .single_page_cust > .featured-image {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
.post-single-inside-article .single_page_cust > .featured-image img {
        width: 100%;
        height: auto;
        display: block;
    }

/* ============================================================
   wpDiscuz a11y patches (minimal-scope — not cosmic theming)
   ------------------------------------------------------------
   wpDiscuz only renders on single posts, so these live here
   (post-extras.css is enqueued conditionally on is_single() and
   on the About Us page template).
   Fixes Lighthouse failures without touching visual design:
     - color-contrast x3 — bump muted greys to AA-passing colors
     - label / link-name / crawlable-anchors x4 — all inside the
       Quill rich-editor link tooltip we don't expose to commenters
       (library bugs we can't fix without forking wpDiscuz/Quill).
   ============================================================ */
#wpdcom .wpd-sbs-title,
#wpdcom .wpd-thread-info,
#wpdcom .wpd-thread-info * {
	color: #ffffff !important;
}
#wpdcom .wpd-login a,
#wpdcom .wpd-auth a {
	color: #b8b8ff !important;
}
#wpdcom .ql-tooltip,
#wpd-editor-source-code-wrapper-bg,
#wpd-editor-source-code-wrapper {
	display: none !important;
}
