/* =========================================================
   RedPortal — main stylesheet
   Mobile-first UI for an entertainment portal.
   ========================================================= */

:root {
	--rp-bg: #a51218;
	--rp-red: #b8171d;
	--rp-strip: #e8003d;
	--rp-pill: #446084;
	--rp-footer: #c52023;
	--rp-dark: #170d0f;
	--rp-text: #f1f1f1;
	--rp-white: #fff;
	--rp-gold: #f7c948;
	--rp-line: rgba(255, 255, 255, 0.25);
	--rp-font: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--rp-max: 1170px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body.rp-body {
	margin: 0;
	font-family: var(--rp-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--rp-text);
	background-color: var(--rp-bg);
	background-image:
		radial-gradient(120px 120px at 18% 12%, rgba(255, 255, 255, 0.05), transparent 62%),
		radial-gradient(80px 80px at 82% 24%, rgba(255, 255, 255, 0.04), transparent 62%),
		radial-gradient(190px 190px at 62% 46%, rgba(255, 255, 255, 0.035), transparent 63%),
		radial-gradient(90px 90px at 28% 70%, rgba(255, 255, 255, 0.045), transparent 62%),
		radial-gradient(150px 150px at 88% 84%, rgba(255, 255, 255, 0.03), transparent 62%),
		linear-gradient(180deg, #b3161c 0%, #9c1117 45%, #ae151a 100%);
	background-attachment: fixed;
}

body.no-scroll {
	overflow: hidden;
}

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

a {
	color: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.container {
	width: 100%;
	max-width: var(--rp-max);
	margin: 0 auto;
	padding: 0 15px;
}

.container--flush {
	padding: 0;
}

/* -----------------------------------------
   Header
   ----------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 80;
}

body.admin-bar .site-header {
	top: 32px;
}

.header-main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 70px;
	padding: 0 15px;
	background: linear-gradient(180deg, #b8171d 0%, #ad151a 100%);
}

.menu-toggle {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	padding: 9px;
	background: none;
	border: 0;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	z-index: 2;
}

.menu-toggle span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: #fff;
}

.site-brand {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.site-brand img,
.custom-logo-link img {
	display: block;
	max-height: 62px;
	width: auto;
}

.brand-badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	transform: skew(-3deg);
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.brand-suits {
	font-size: 11px;
	letter-spacing: 3px;
	color: #ffd970;
	margin-bottom: 2px;
}

.brand-name {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #ffd24a;
	-webkit-text-stroke: 1px rgba(92, 58, 0, 0.85);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.header-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	background: var(--rp-strip);
	padding: 0 15px;
}

.header-nav {
	display: none;
}

.nav-list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list a {
	display: block;
	padding: 8px 10px;
	color: #fff;
	text-decoration: none;
	font-size: 12.8px;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	white-space: nowrap;
}

.header-cta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.header-cta--desktop {
	display: none;
}

.cta-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 16px;
	border-radius: 99px;
	background: var(--rp-pill);
	color: #fff;
	font-size: 13.2px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* -----------------------------------------
   Mobile drawer
   ----------------------------------------- */

.drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 90;
}

.drawer-overlay.open {
	opacity: 1;
	visibility: visible;
}

.mobile-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(84vw, 340px);
	padding: 18px 18px 30px;
	background: linear-gradient(180deg, #9c1015 0%, #7d0d11 100%);
	transform: translateX(-102%);
	transition: transform 0.25s ease;
	overflow-y: auto;
	box-shadow: 2px 0 18px rgba(0, 0, 0, 0.4);
	z-index: 95;
}

.mobile-drawer.open {
	transform: none;
}

.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rp-line);
}

.drawer-head .brand-name {
	font-size: 24px;
}

.drawer-close {
	background: none;
	border: 0;
	color: #fff;
	font-size: 30px;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
}

.drawer-cta {
	display: flex;
	gap: 10px;
	margin: 14px 0;
}

.drawer-menu {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.drawer-menu li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.drawer-menu a {
	display: block;
	padding: 12px 0;
	color: #fff;
	text-decoration: none;
	font-size: 14.4px;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* -----------------------------------------
   Main / hero / categories
   ----------------------------------------- */

.site-main {
	background: rgba(12, 12, 12, 0.36);
	padding-bottom: 30px;
}

.hero-wrap {
	margin: 0;
}

.hero-link {
	display: block;
}

.hero-link img {
	display: block;
	width: 100%;
	height: auto;
}

.game-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	padding: 10px 0 6px;
}

.game-card {
	position: relative;
	display: block;
	padding: 15px;
	text-decoration: none;
}

.game-card img {
	display: block;
	width: 100%;
	aspect-ratio: 160 / 250;
	object-fit: cover;
	border-radius: 2px;
}

.game-card span {
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 24px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

/* -----------------------------------------
   Article / typography
   ----------------------------------------- */

.article-container {
	max-width: 900px;
}

.entry-title {
	margin: 18px 0 16px;
	padding: 8px 0;
	border-top: 1px solid var(--rp-line);
	border-bottom: 1px solid var(--rp-line);
	color: #fff;
	font-size: 22.4px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.entry-content {
	font-size: 13.6px;
	line-height: 1.6;
	color: var(--rp-text);
}

.entry-content p {
	margin: 0 0 16px;
}

.entry-content h2 {
	margin: 26px 0 10px;
	font-size: 19.2px;
	line-height: 1.3;
	color: #fff;
}

.entry-content h3 {
	margin: 20px 0 8px;
	font-size: 16px;
	line-height: 1.35;
	color: #fff;
}

.entry-content img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

.entry-content figure {
	margin: 0 0 16px;
}

.entry-content figcaption {
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 12.5px;
	font-style: italic;
	line-height: 1.4;
	text-align: center;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 16px;
	padding-left: 20px;
}

.entry-content li {
	margin: 0 0 6px;
}

.entry-content strong {
	color: #fff;
}

.entry-content a {
	color: #ffd970;
	text-decoration: underline;
}

.entry-content blockquote {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-left: 3px solid var(--rp-gold);
	background: rgba(0, 0, 0, 0.18);
	font-size: 13.6px;
}

.single-meta {
	margin: -8px 0 18px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 12.5px;
	text-align: center;
}

/* -----------------------------------------
   FAQ accordion
   ----------------------------------------- */

.faq {
	margin: 26px 0 8px;
}

.faq-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 0 6px;
	font-size: 19.2px;
	line-height: 1.3;
	color: #fff;
	text-align: center;
}

.faq-title::before,
.faq-title::after {
	content: "";
	flex: 0 1 46px;
	height: 1px;
	background: var(--rp-line);
}

.faq-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.faq-q {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 15px 0;
	background: none;
	border: 0;
	color: #fff;
	font-family: var(--rp-font);
	font-size: 14.4px;
	font-weight: 700;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
}

.chev {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	margin-top: -4px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.faq-q[aria-expanded="true"] .chev {
	margin-top: 2px;
	transform: rotate(-135deg);
}

.faq-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-a p {
	margin: 0;
	padding: 0 22px 14px;
	color: #efefef;
	font-size: 13.6px;
	line-height: 1.6;
}

.faq-item.open .faq-a {
	max-height: 500px;
}

/* -----------------------------------------
   Post cards
   ----------------------------------------- */

.posts-section {
	padding: 10px 0;
}

.posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
	max-width: var(--rp-max);
	margin: 0 auto;
	padding: 0 15px;
}

.post-card {
	position: relative;
	display: block;
	overflow: hidden;
	background: #6d0d11;
	text-decoration: none;
}

.post-card img {
	display: block;
	width: 100%;
	aspect-ratio: 300 / 150;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.post-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.72) 100%);
}

.post-card .pc-title {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 12px;
	z-index: 1;
	color: var(--rp-gold);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.2px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.post-card:hover img {
	transform: scale(1.03);
}

.posts-grid--archive {
	padding: 0 0 10px;
}

/* -----------------------------------------
   Pagination
   ----------------------------------------- */

.pagination {
	margin: 10px 0 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 13px;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--rp-strip);
}

.pagination .dots {
	background: none;
}

/* -----------------------------------------
   Footer
   ----------------------------------------- */

.site-footer {
	padding-top: 8px;
	background: var(--rp-footer);
}

.footer-widgets {
	max-width: var(--rp-max);
	margin: 0 auto;
	padding: 0 15px 8px;
}

.footer-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 26px 0 8px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.footer-heading::before,
.footer-heading::after {
	content: "";
	flex: 0 1 40px;
	height: 1px;
	background: rgba(255, 255, 255, 0.5);
}

.footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-list li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-list a {
	display: block;
	padding: 12px 0;
	color: #fff;
	font-size: 14.4px;
	line-height: 1.4;
	text-decoration: none;
}

.footer-contact p {
	margin: 0 0 10px;
	color: #fff;
	font-size: 14px;
	line-height: 1.55;
}

.footer-contact strong {
	font-weight: 700;
}

.footer-hashtags {
	font-weight: 700;
}

.copyright {
	padding: 0 15px;
	background: var(--rp-dark);
	color: rgba(255, 255, 255, 0.5);
	font-size: 14.4px;
	line-height: 48px;
	text-align: center;
}

.to-top {
	position: fixed;
	right: 14px;
	bottom: 18px;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 70;
}

.to-top::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: 0 auto;
	border-left: 2px solid #fff;
	border-top: 2px solid #fff;
	transform: rotate(45deg) translate(1px, 1px);
}

.to-top.show {
	opacity: 1;
	visibility: visible;
}

/* -----------------------------------------
   Desktop
   ----------------------------------------- */

@media (min-width: 900px) {
	.header-main {
		justify-content: flex-start;
		padding: 0 15px;
	}

	.menu-toggle {
		display: none;
	}

	.header-nav {
		display: flex;
		justify-content: center;
		flex: 1;
	}

	.header-cta--mobile {
		display: none;
	}

	.header-cta--desktop {
		position: absolute;
		top: 50%;
		right: 15px;
		transform: translateY(-50%);
		display: flex;
	}

	.header-strip {
		padding: 0 15px;
	}

	.brand-name {
		font-size: 34px;
	}

	.hero-link img {
		max-height: 480px;
		object-fit: cover;
	}

	.game-grid {
		grid-template-columns: repeat(6, 1fr);
	}

	.game-card span {
		font-size: 15px;
	}

	.article-container {
		max-width: 860px;
	}

	.entry-title {
		font-size: 30px;
	}

	.entry-content {
		font-size: 14.4px;
	}

	.entry-content h2 {
		font-size: 21.5px;
	}

	.entry-content h3 {
		font-size: 17.5px;
	}

	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-widgets {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 30px;
	}

	.footer-heading {
		margin-top: 30px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}

/* -----------------------------------------
   Astra parent integration
   ----------------------------------------- */

body.rp-body #page {
	background: transparent;
}

body.rp-body #masthead.site-header {
	position: sticky;
	top: 0;
	z-index: 80;
	border: 0;
	box-shadow: none;
	background: none;
}

body.rp-body.admin-bar #masthead.site-header {
	top: 32px;
}

body.rp-body #content.site-content {
	background: rgba(12, 12, 12, 0.36);
	padding: 0 0 30px;
}

body.rp-body .ast-container {
	max-width: var(--rp-max);
	padding: 0 15px;
}

body.rp-body.page .ast-container,
body.rp-body.single .ast-container {
	max-width: 900px;
}

body.rp-body .ast-separate-container .ast-article-single,
body.rp-body .ast-separate-container .ast-article-post,
body.rp-body .ast-separate-container .comment-respond {
	padding: 0;
	background: transparent;
}

body.rp-body .ast-separate-container .ast-article-post {
	margin: 0 0 20px;
}

body.rp-body .site-content .entry-title {
	border-top: 1px solid var(--rp-line);
	border-bottom: 1px solid var(--rp-line);
}

body.rp-body .ast-article-post .entry-title,
body.rp-body .ast-article-post .entry-title a {
	color: #fff;
	font-size: 17px;
	line-height: 1.35;
	text-transform: none;
}

body.rp-body .ast-article-post .entry-meta {
	color: rgba(255, 255, 255, 0.65);
	font-size: 12px;
}

body.rp-body .ast-article-post .entry-content,
body.rp-body .ast-article-post .entry-content p {
	color: var(--rp-text);
	font-size: 13.6px;
}

body.rp-body .post-thumb img {
	width: 100%;
	display: block;
}

body.rp-body .entry-content a:hover {
	color: #fff;
}

body.rp-body .ast-separate-container .ast-article-post .post-thumb {
	margin-bottom: 12px;
}

body.rp-body .pagination {
	margin: 10px 0 20px;
}

@media (max-width: 782px) {
	body.rp-body.admin-bar #masthead.site-header {
		top: 46px;
	}
}

/* Hide Astra's built-in scroll-top; the theme renders its own. */
body.rp-body #ast-scroll-top {
	display: none !important;
}

/* Archive cards on dark background */
body.rp-body .ast-article-post {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 4px;
	overflow: hidden;
}

body.rp-body .ast-article-post .ast-article-inner {
	padding: 12px 14px;
}

body.rp-body .ast-article-post .entry-title,
body.rp-body .ast-article-post .entry-title a {
	color: #fff !important;
}

body.rp-body .ast-article-post .entry-meta,
body.rp-body .ast-article-post .entry-meta *,
body.rp-body .ast-article-post .entry-content,
body.rp-body .ast-article-post .entry-content * {
	color: rgba(255, 255, 255, 0.78) !important;
}

body.rp-body .ast-article-post .cat-links a,
body.rp-body .ast-article-post .entry-meta a {
	color: var(--rp-gold) !important;
}

body.rp-body .ast-article-post .post-thumb img {
	border-radius: 0;
}

/* Single post meta */
body.rp-body.single .entry-meta,
body.rp-body.single .entry-meta * {
	color: rgba(255, 255, 255, 0.7);
	font-size: 12.5px;
}

/* 404 */
body.rp-body.error404 .site-content {
	background: rgba(12, 12, 12, 0.36);
}

body.rp-body.error404 .site-main {
	min-height: 55vh;
	padding: 40px 15px;
}

body.rp-body.error404 h1 {
	color: #fff;
	font-size: 64px;
	line-height: 1;
}

body.rp-body.error404 p {
	color: var(--rp-text);
	font-size: 14px;
}

body.rp-body.error404 .ast-404-search input[type="search"] {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--rp-line);
	color: #fff;
}

body.rp-body .ast-article-post .ast-article-inner {
	background: transparent !important;
}

body.rp-body .ast-article-post .ast-excerpt-container,
body.rp-body .ast-article-post .ast-excerpt-container p {
	color: rgba(255, 255, 255, 0.78) !important;
}

/* Astra narrow container (single posts): remove white boxes */
body.rp-body.ast-narrow-container article,
body.rp-body .ast-narrow-container article,
body.rp-body #comments.comments-area,
body.rp-body .comments-area,
body.rp-body .comment-respond {
	background: transparent !important;
}

body.rp-body #comments .comments-title,
body.rp-body #comments .comment-reply-title,
body.rp-body #comments label,
body.rp-body #comments .logged-in-as,
body.rp-body #comments .logged-in-as a {
	color: rgba(255, 255, 255, 0.85);
}

body.rp-body #comments .comment-metadata,
body.rp-body #comments .comment-metadata a,
body.rp-body #comments .comment-content,
body.rp-body #comments .comment-content p {
	color: rgba(255, 255, 255, 0.8);
}

body.rp-body #comments textarea,
body.rp-body #comments input[type="text"],
body.rp-body #comments input[type="email"],
body.rp-body #comments input[type="url"] {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--rp-line);
	color: #fff;
}

body.rp-body #comments .form-submit input[type="submit"] {
	background: var(--rp-strip);
	border: 0;
	color: #fff;
	border-radius: 4px;
	padding: 10px 22px;
	font-weight: 700;
	text-transform: uppercase;
}

body.rp-body .post-navigation a,
body.rp-body .ast-single-post-navigation a,
body.rp-body .navigation a {
	color: #fff;
}

body.rp-body .post-navigation .nav-subtitle,
body.rp-body .ast-single-post-navigation .nav-subtitle {
	color: rgba(255, 255, 255, 0.6);
}

body.admin-bar .mobile-drawer {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .mobile-drawer {
		top: 46px;
	}
}
