/*
Theme Name: Hi ComicsGate
Theme URI: https://hicomicsgate.com
Author: Hi ComicsGate
Author URI: https://hicomicsgate.com
Description: Lightweight custom theme for Hi ComicsGate. Replaces Elementor for header, footer, and page chrome. Works with the HiComicsGate Shortcodes plugin for the comic card grid.
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hicomicsgate
*/

/* =========================================
   Base — default dark
   ========================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	overflow-x: hidden;
	margin: 0;
	padding: 0;
}

body {
	background-color: rgb(29, 31, 39);
	color: #f5f7ff;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.5;
	min-height: 100vh;
}

body.hcg-lite-mode {
	background-color: #f4f5f9;
	color: #161a2a;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: #FDC526;
}

a:hover {
	color: #1EB100;
}

/* Skip link */
a.skip-link.screen-reader-text {
	position: absolute;
	top: -9999px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999999;
	padding: 10px 20px;
	background: #000;
	color: #fff;
	font-size: 16px;
	text-decoration: none;
	border: 2px solid #fff;
	white-space: nowrap;
}

a.skip-link.screen-reader-text:focus,
a.skip-link.screen-reader-text:active {
	top: 10px;
	clip: auto;
	width: auto;
	height: auto;
	overflow: visible;
}

/* =========================================
   Network sites strip (top)
   ========================================= */
.hcg-sites-strip {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 8px 18px;
	width: 100%;
	padding: 10px 16px;
	background: rgb(29, 31, 39);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.hcg-sites-strip::-webkit-scrollbar {
	display: none;
}

.hcg-sites-strip a {
	flex: 0 0 auto;
	color: #c8cde0 !important;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.hcg-sites-strip a:hover,
.hcg-sites-strip a.is-current {
	color: #FDC526 !important;
}

body.hcg-lite-mode .hcg-sites-strip {
	background: #111;
	border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* =========================================
   Header hero
   ========================================= */
.site-header {
	width: 100%;
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(253, 197, 38, 0.08), transparent 55%),
		linear-gradient(180deg, rgb(34, 36, 45) 0%, rgb(29, 31, 39) 100%);
	color: #f5f7ff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.hcg-lite-mode .site-header {
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(253, 197, 38, 0.12), transparent 55%),
		linear-gradient(180deg, #ffffff 0%, #f4f5f9 100%);
	color: #161a2a;
	border-bottom-color: rgba(20, 24, 40, 0.08);
}

.hcg-header-inner {
	width: min(100%, 1400px);
	margin: 0 auto;
	padding: 20px 16px 8px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 16px 20px;
	align-items: center;
}

.hcg-header-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	justify-self: start;
}

.hcg-header-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.hcg-header-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	justify-self: end;
}

.site-logo {
	display: block;
	line-height: 0;
}

.site-logo img {
	display: block;
	width: auto;
	max-width: min(280px, 72vw);
	height: auto;
	transition: transform 0.2s ease, filter 0.3s ease, brightness 0.3s ease;
	filter: brightness(1);
}

.site-logo:hover img {
	filter: brightness(1.35) saturate(1.12) drop-shadow(0 0 14px rgba(253, 197, 38, 0.45));
	animation: hcg-logo-bounce 1.4s ease-in-out infinite;
}

@keyframes hcg-logo-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

.hcg-tagline {
	margin: 0;
	font-family: 'Oswald', sans-serif;
	font-size: clamp(0.95rem, 2vw, 1.15rem);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #b8bfd6;
}

body.hcg-lite-mode .hcg-tagline {
	color: #55607a;
}

/* Suggest toggle + panel */
.hcg-suggest-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: none;
	border-radius: 999px;
	font-weight: 800;
	font-size: 0.95rem;
	cursor: pointer;
	color: #111 !important;
	background: linear-gradient(135deg, #FDC526 0%, #1EB100 100%);
	box-shadow: 0 8px 22px rgba(30, 177, 0, 0.2);
	transition: filter 0.2s ease, transform 0.2s ease;
}

.hcg-suggest-toggle:hover,
.hcg-suggest-toggle[aria-expanded="true"] {
	filter: brightness(1.06);
	color: #fff !important;
}

.hcg-suggest-panel {
	display: none;
	width: min(100%, 560px);
	margin: 0 auto 8px;
	padding: 0 16px 12px;
}

.hcg-suggest-panel.is-open {
	display: block;
}

/* Social + mode toggle */
.hcg-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hcg-x-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	color: #FDC526 !important;
	border: 1px solid rgba(253, 197, 38, 0.45);
	background: rgba(253, 197, 38, 0.08);
	text-decoration: none;
	box-shadow: 0 0 12px rgba(253, 197, 38, 0.15);
	transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hcg-x-link:hover {
	color: #1EB100 !important;
	border-color: rgba(30, 177, 0, 0.55);
	background: rgba(30, 177, 0, 0.12);
	box-shadow: 0 0 16px rgba(30, 177, 0, 0.28);
	transform: translateY(-1px);
}

.hcg-x-link svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: currentColor;
}

.hcg-mode-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid rgba(253, 197, 38, 0.45);
	background: rgba(253, 197, 38, 0.1);
	color: #FDC526 !important;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 0 12px rgba(253, 197, 38, 0.15);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hcg-mode-toggle:hover {
	color: #1EB100 !important;
	border-color: rgba(30, 177, 0, 0.55);
	background: rgba(30, 177, 0, 0.12);
	box-shadow: 0 0 16px rgba(30, 177, 0, 0.28);
	transform: translateY(-1px);
}

body.hcg-lite-mode .hcg-mode-toggle {
	color: #FDC526 !important;
	border-color: rgba(253, 197, 38, 0.5);
	background: rgba(253, 197, 38, 0.12);
}

body.hcg-lite-mode .hcg-mode-toggle:hover {
	color: #1EB100 !important;
	border-color: rgba(30, 177, 0, 0.55);
	background: rgba(30, 177, 0, 0.12);
}

body.hcg-lite-mode .hcg-x-link {
	color: #FDC526 !important;
	border-color: rgba(253, 197, 38, 0.5);
	background: rgba(253, 197, 38, 0.1);
}

body.hcg-lite-mode .hcg-x-link:hover {
	color: #1EB100 !important;
	border-color: rgba(30, 177, 0, 0.55);
	background: rgba(30, 177, 0, 0.12);
}

/* Sonaar player slot */
.hcg-player-slot {
	width: min(100%, 1400px);
	margin: 0 auto;
	padding: 4px 16px 18px;
}

.hcg-player-slot .iron_widget_radio,
.hcg-player-slot .iron-audioplayer {
	max-width: 100%;
}

/* Main content */
.site-main,
#content {
	width: 100%;
	min-height: 40vh;
}

.hcg-page {
	width: min(100%, 900px);
	margin: 0 auto;
	padding: 32px 16px 48px;
}

.hcg-page h1 {
	font-family: 'Oswald', sans-serif;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin: 0 0 16px;
}

/* =========================================
   Mobile header
   ========================================= */
@media (max-width: 900px) {
	.hcg-header-inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		padding-top: 16px;
	}

	.hcg-header-left,
	.hcg-header-right {
		justify-self: center;
		align-items: center;
		justify-content: center;
	}

	.hcg-header-left {
		order: 2;
	}

	.hcg-header-center {
		order: 1;
	}

	.hcg-header-right {
		order: 3;
	}

	.hcg-sites-strip {
		justify-content: flex-start;
	}
}

/* =========================================
   Network Footer (matched to REFINECG 1.2.0)
   ========================================= */

.rcg-footer {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-top: 48px;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
	background:
		radial-gradient(circle at center top, rgba(255, 255, 255, 0.04), transparent 38%),
		linear-gradient(180deg, #1b1b1f 0%, #101113 100%);
	color: #d2d2d2;
	font-size: 16px;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 20px 40px rgba(255, 255, 255, 0.015);
	overflow: visible;
}

.rcg-footer-topbar {
	width: 100%;
	height: 55px;
	background: linear-gradient(90deg, #2f2f34 0%, #232327 50%, #2f2f34 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rcg-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	/* Equal content columns so LISTEN sits visually between SITES and COMMUNITY */
	grid-template-columns: 351px 1fr 1fr 1fr;
	gap: 32px;
	align-items: stretch;
	min-height: 340px;
}

.rcg-footer-brand {
	position: relative;
	width: 351px;
	min-height: 340px;
	height: auto;
	margin-top: -58px;
	margin-bottom: 0;
	padding-bottom: 0;
	z-index: 3;
	align-self: stretch;
}

/* Desktop/tablet: orange diagonal wedge above brand block */
.rcg-footer-brand::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 418px;
	height: 55px;
	background: linear-gradient(135deg, #d31717 0%, #f5612e 100%);
	clip-path: polygon(19% 0, 100% 0, 84% 100%, 0 100%);
	z-index: 3;
	display: block;
	line-height: 0;
}

.rcg-footer-brand-link {
	position: absolute;
	top: 54px;
	left: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 351px;
	height: auto;
	margin: 0;
	background: #f84103;
	text-decoration: none;
	box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.rcg-footer-brand-image {
	display: block;
	width: auto;
	height: auto;
	max-width: calc(100% - 28px);
	max-height: calc(100% - 36px);
	object-fit: contain;
	object-position: center;
	background: transparent;
	padding: 0;
	margin: 0 auto;
}

.rcg-footer-col {
	padding: 96px 0 28px;
	font-size: 15px;
}

.rcg-footer-sites,
.rcg-footer-listen,
.rcg-footer-community {
	margin-left: 0;
	min-width: 0;
}

/* Center LISTEN block within its column (between SITES and COMMUNITY) */
.rcg-footer-listen {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* SITES: 2 columns × 4 rows — no diamond bullets */
.rcg-footer-sites .rcg-footer-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
	row-gap: 14px;
	width: 100%;
	max-width: none;
	margin: 0;
	text-align: left;
	list-style: none;
	justify-content: center;
}

.rcg-footer-sites .rcg-footer-links li {
	margin: 0;
	padding-left: 0;
	white-space: nowrap;
}

.rcg-footer-sites .rcg-footer-links li::before {
	content: none;
	display: none;
}

.rcg-footer-title {
	margin: 18px 0 20px;
	color: #b8ff72;
	font-size: 22px;
	line-height: 1;
	font-weight: 700;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-align: center;
	text-shadow:
		0 0 6px rgba(184, 255, 114, 0.45),
		0 0 14px rgba(184, 255, 114, 0.2);
}

.rcg-footer-links,
.rcg-social-grid {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rcg-footer-links li,
.rcg-social-grid li {
	margin: 0 0 14px;
}

.rcg-footer-links li {
	position: relative;
}

.rcg-footer .rcg-footer-col a:link,
.rcg-footer .rcg-footer-col a:visited,
.rcg-footer .rcg-footer-bottom a:link,
.rcg-footer .rcg-footer-bottom a:visited {
	color: #ffffff !important;
	text-decoration: none;
}

.rcg-footer .rcg-footer-col a:hover,
.rcg-footer .rcg-footer-col a:focus,
.rcg-footer .rcg-footer-col a:active,
.rcg-footer .rcg-footer-col a:visited:hover,
.rcg-footer .rcg-footer-bottom a:hover,
.rcg-footer .rcg-footer-bottom a:focus,
.rcg-footer .rcg-footer-bottom a:active,
.rcg-footer .rcg-footer-bottom a:visited:hover {
	color: #f84103 !important;
	text-shadow: none;
}

.rcg-footer-media {
	max-width: 250px;
	width: 100%;
	margin: 0 auto;
}

.rcg-footer-audio {
	display: block;
	width: 100%;
	min-height: 54px;
	filter: contrast(1.08) brightness(0.9);
}

.rcg-social-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(110px, 1fr));
	column-gap: 34px;
	row-gap: 4px;
	width: fit-content;
	margin: 0 auto;
}

.rcg-footer-bottom {
	position: relative;
	z-index: 1;
	width: 100%;
	background: #060606;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Same column tracks as .rcg-footer-inner so Privacy lines up with COMMUNITY */
.rcg-footer-bottom-inner {
	max-width: 1200px;
	min-height: 35px;
	margin: 0 auto;
	padding: 8px 24px 10px;
	display: grid;
	grid-template-columns: 351px 1fr 1fr 1fr;
	align-items: center;
	gap: 32px;
	color: #ffffff;
	font-size: 12px;
	line-height: 1.35;
}

.rcg-footer-bottom-inner span {
	grid-column: 1;
	text-align: center;
}

.rcg-footer-bottom-inner a {
	grid-column: 4; /* COMMUNITY column */
	justify-self: center;
	text-align: center;
}

.rcg-footer-bottom a {
	color: #8c8c8c;
	text-decoration: none;
}

.rcg-footer-bottom a:hover {
	color: #ffffff;
}

@media (max-width: 1080px) and (min-width: 769px) {
	.rcg-footer-inner {
		grid-template-columns: 190px 1fr 1fr;
		gap: 32px;
	}

	.rcg-footer-community {
		grid-column: 2 / 4;
	}

	.rcg-footer-brand {
		width: 190px;
	}

	.rcg-footer-brand-link {
		width: 190px;
		max-width: 190px;
	}

	.rcg-footer-brand::before {
		width: calc(190px * 418 / 351);
	}

	.rcg-footer-bottom-inner {
		grid-template-columns: 190px 1fr 1fr;
		gap: 32px;
	}

	.rcg-footer-bottom-inner a {
		grid-column: 2 / 4;
		justify-self: center;
	}
}

@media (max-width: 768px) {
	.rcg-footer-topbar {
		height: 28px;
		position: relative;
		z-index: 1;
	}

	.rcg-footer-inner {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 0 0 20px;
		min-height: auto;
		justify-items: stretch;
		max-width: 320px;
		margin: 0 auto;
		box-sizing: border-box;
		position: relative;
		z-index: 2;
	}

	.rcg-footer-brand {
		position: relative;
		width: 100%;
		max-width: 100%;
		min-height: 280px;
		height: 280px;
		margin: -28px auto 0;
		margin-bottom: 0;
		padding: 0;
		overflow: visible;
		z-index: 3;
	}

	/*
	 * Mobile wedge — lock to the orange box (not 100vw).
	 * Same left edge + 418/351 width ratio as desktop so the diagonal meets the orange block.
	 */
	.rcg-footer-brand::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: calc(100% * 418 / 351);
		height: 28px;
		transform: none;
		background: linear-gradient(135deg, #d31717 0%, #f5612e 100%);
		clip-path: polygon(19% 0, 100% 0, 84% 100%, 0 100%);
		z-index: 4;
		display: block;
		line-height: 0;
	}

	.rcg-footer {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		overflow-x: hidden;
	}

	.rcg-footer-brand-link {
		position: absolute;
		top: 27px;
		left: 0;
		right: 0;
		width: 100%;
		bottom: 0;
		transform: none;
		margin: 0;
		max-width: 100% !important;
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 2;
	}

	.rcg-footer-brand-image {
		width: auto;
		height: auto;
		max-width: calc(100% - 28px);
		max-height: calc(100% - 28px);
		object-fit: contain;
		object-position: center;
		margin: 0 auto;
	}

	.rcg-footer-col,
	.rcg-footer-sites,
	.rcg-footer-listen,
	.rcg-footer-community {
		grid-column: auto;
		width: 100%;
		max-width: 320px;
		margin-left: auto;
		margin-right: auto;
		padding: 28px 20px 0;
		box-sizing: border-box;
		text-align: center;
	}

	.rcg-footer-title {
		margin: 0 0 18px;
		font-size: 18px;
		text-align: center;
	}

	.rcg-footer-sites .rcg-footer-links {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 16px;
		row-gap: 12px;
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
		text-align: left;
	}

	.rcg-footer-sites .rcg-footer-links li {
		padding-left: 0;
		white-space: nowrap;
	}

	.rcg-footer-sites .rcg-footer-links li::before {
		content: none;
		display: none;
	}

	.rcg-footer-media {
		max-width: 100%;
		width: 100%;
	}

	.rcg-footer-audio {
		width: 100%;
		max-width: 100%;
		min-height: 44px;
	}

	.rcg-footer-community {
		text-align: center;
	}

	.rcg-social-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(92px, 120px));
		justify-content: center;
		justify-items: center;
		column-gap: 24px;
		row-gap: 10px;
		width: fit-content;
		max-width: 100%;
		margin: 0 auto;
		text-align: center;
	}

	.rcg-social-grid li {
		width: 100%;
		text-align: center;
	}

	.rcg-social-grid li a {
		display: inline-block;
		text-align: center;
	}

	.rcg-footer-bottom-inner {
		max-width: 320px;
		width: 100%;
		min-height: auto;
		margin: 0 auto;
		padding: 12px 20px 16px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 8px;
		text-align: center;
		box-sizing: border-box;
	}

	.rcg-footer-bottom-inner span,
	.rcg-footer-bottom-inner a {
		width: 100%;
		text-align: center;
		justify-self: center;
	}
}

@media (max-width: 480px) {
	.rcg-social-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Lite mode footer readability */
body.hcg-lite-mode .rcg-footer {
	background:
		radial-gradient(circle at center top, rgba(0, 0, 0, 0.03), transparent 38%),
		linear-gradient(180deg, #1b1b1f 0%, #101113 100%);
	color: #d2d2d2;
}
