/*
Theme Name: RiskySkins
Theme URI: https://riskyskins.com
Author: RiskySkins
Author URI: https://riskyskins.com
Description: WordPress theme for RiskySkins with backend-editable sections, casino listings, and CS2 guides.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riskyskins
*/

/*
Theme-specific overrides
The main compiled CSS is enqueued from functions.php.
*/

#rs-mobile-menu {
	display: none;
}

#rs-mobile-menu.rs-open {
	display: flex;
}

.custom-logo-link,
.custom-logo {
	display: inline-block;
	height: auto;
	max-height: 3rem;
	width: auto;
}

header .custom-logo {
	max-height: 3.25rem;
	width: auto;
}

header .custom-logo-link {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

@media (min-width: 768px) {
	header .custom-logo {
		max-height: 3.75rem;
	}
}

.menu,
.sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Keep emphasis text white site-wide */

b,
strong,
.font-bold,
.font-semibold,
.font-extrabold,
.font-black {
	color: #fff;
}

/* Clean breadcrumbs */
.rs-breadcrumb-wrap {
	border-top: 1px solid hsl(var(--border));
	background: hsl(var(--background) / 0.7);
}

.rs-breadcrumbs {
	padding: 0.65rem 0;
}

.rs-breadcrumbs__list {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.82rem;
	line-height: 1.2;
	white-space: nowrap;
	overflow-x: auto;
	scrollbar-width: thin;
}

.rs-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.rs-breadcrumbs__link {
	color: hsl(var(--foreground) / 0.75);
	text-decoration: none;
	transition: color 0.2s;
}

.rs-breadcrumbs__link:hover {
	color: hsl(var(--primary));
}

.rs-breadcrumbs__sep {
	color: hsl(var(--foreground) / 0.35);
}

.rs-breadcrumbs__current {
	color: hsl(var(--foreground));
	font-weight: 600;
}

/* Table of contents block */
.rs-toc {
	margin: 1.6rem 0;
}

.rs-toc__title {
	margin: 0 0 0.8rem;
	font-family: Rajdhani, sans-serif;
	font-size: clamp(1.45rem, 2.1vw, 1.9rem);
	font-weight: 800;
	line-height: 1.12;
	color: hsl(var(--foreground));
}

.rs-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.rs-toc__item {
	margin: 0;
	padding: 0;
	line-height: 1.35;
}

.rs-toc__item--sub {
	padding-left: 0.85rem;
	font-size: 0.95rem;
	opacity: 0.92;
}

.rs-toc__link {
	text-decoration: none;
	color: hsl(var(--foreground) / 0.86);
	transition: color 0.2s;
}

.rs-toc__link:hover {
	color: hsl(var(--primary));
}

h2[id],
h3[id] {
	scroll-margin-top: 7rem;
}

.prose p {
	margin-bottom: 1rem;
}

.prose h2,
.prose h3,
.prose h4 {
	margin: 1.25rem 0 0.75rem;
	font-weight: 700;
}

.single .prose h2,
.single-post .prose h2,
.single-casino .prose h2,
.single-cs2_guide .prose h2 {
	margin-top: 2.8rem !important;
	margin-bottom: 1rem !important;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid hsl(var(--border));
	font-family: Rajdhani, sans-serif;
	font-size: clamp(1.7rem, 2.8vw, 2.7rem) !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
	letter-spacing: 0.005em;
	color: hsl(var(--foreground)) !important;
	text-wrap: balance;
}

.single .prose h3,
.single-post .prose h3,
.single-casino .prose h3,
.single-cs2_guide .prose h3 {
	margin-top: 2.1rem !important;
	margin-bottom: 0.85rem !important;
	font-family: Rajdhani, sans-serif;
	font-size: clamp(1.35rem, 2.2vw, 2rem) !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	color: hsl(var(--foreground)) !important;
	text-wrap: balance;
}

.prose a {
	color: hsl(var(--primary));
	text-decoration: underline;
}

/* Final high-specificity override for single post/CPT content headings */
.single article.prose h2,
.single article.prose .wp-block-heading h2,
.single .prose h2.wp-block-heading,
.single-casino .prose h2,
.single-cs2_guide .prose h2,
.single-post .prose h2 {
	font-family: Rajdhani, sans-serif !important;
	font-size: clamp(1.65rem, 2.5vw, 2.25rem) !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
	letter-spacing: 0.01em !important;
	margin: 2.5rem 0 1rem !important;
	padding-bottom: 0.45rem !important;
	border-bottom: 1px solid hsl(var(--border)) !important;
	color: hsl(var(--foreground)) !important;
}

.single article.prose h3,
.single article.prose .wp-block-heading h3,
.single .prose h3.wp-block-heading,
.single-casino .prose h3,
.single-cs2_guide .prose h3,
.single-post .prose h3 {
	font-family: Rajdhani, sans-serif !important;
	font-size: clamp(1.3rem, 1.9vw, 1.7rem) !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	margin: 1.8rem 0 0.75rem !important;
	color: hsl(var(--foreground)) !important;
}

/* Single casino stats row layout */
.rs-casino-stats-grid {
	align-items: stretch;
}

.rs-casino-visit-card {
	background: transparent;
}

.rs-casino-visit-btn {
	text-decoration: none !important;
	color: #fff !important;
	box-shadow: 0 10px 24px hsl(0 0% 0% / 0.2);
}

.rs-casino-visit-btn:hover,
.rs-casino-visit-btn:focus,
.rs-casino-visit-btn:visited,
.rs-casino-visit-btn:active {
	text-decoration: none !important;
	color: #fff !important;
}

/* Dynamic casino cards for blog posts (shortcodes) */
.rs-casino-blocks-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	margin: 1.25rem 0;
}

@media (min-width: 768px) {
	.rs-casino-blocks-grid.rs-casino-blocks-grid--cols-1 {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.rs-casino-blocks-grid.rs-casino-blocks-grid--cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rs-casino-blocks-grid.rs-casino-blocks-grid--cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rs-casino-block {
	overflow: hidden;
	border: 1px solid hsl(var(--border));
	border-radius: 0.9rem;
	background: hsl(var(--card));
	margin: 1.25rem 0;
	--rs-card-accent-red: #ff2f45;
	--rs-card-accent-green: #1fbf74;
}

.rs-casino-block__badge {
	background: #111;
	color: var(--rs-card-accent-red);
	font-family: Rajdhani, sans-serif;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.1;
	padding: 0.7rem 1rem;
	text-align: center;
}

.rs-casino-block__body {
	padding: 1.1rem;
}

.rs-casino-block__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 78px;
	margin-bottom: 0.9rem;
}

.rs-casino-block__title {
	margin: 0 0 0.35rem;
	text-align: center;
	font-family: Rajdhani, sans-serif;
	font-size: 1.9rem;
	line-height: 1.15;
	font-weight: 700;
}

.rs-casino-block__title a {
	color: hsl(var(--foreground));
	text-decoration: none;
}

.rs-casino-block__title a:hover {
	color: hsl(var(--primary));
}

.rs-casino-block__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 0.95rem;
	font-weight: 700;
	color: hsl(var(--foreground));
}

.rs-casino-block .fill-warning,
.rs-casino-block .text-warning {
	fill: var(--rs-card-accent-red);
	color: var(--rs-card-accent-red);
}

.rs-casino-block__points {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
}

.rs-casino-block__points li {
	position: relative;
	padding-left: 1.15rem;
	color: hsl(var(--foreground));
}

.rs-casino-block__points li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--rs-card-accent-green);
	font-weight: 700;
}

.rs-casino-block__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border-radius: 0.45rem;
	background: linear-gradient(90deg, var(--rs-card-accent-red) 0%, var(--rs-card-accent-green) 100%);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 0.75rem 1rem;
	line-height: 1.15;
	border: 1px solid transparent;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	transition: filter 0.2s ease, transform 0.2s ease;
}

.rs-casino-block__cta:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.rs-casino-block__cta:focus,
.rs-casino-block__cta:active,
.rs-casino-block__cta:visited {
	color: #fff !important;
	text-decoration: none !important;
}

.rs-casino-block__bonus {
	margin-top: 0.75rem;
	font-size: 0.95rem;
	line-height: 1.35;
	text-align: center;
	color: hsl(var(--muted-foreground));
	border-top: 1px solid hsl(var(--border));
	padding-top: 0.65rem;
}

/* ═══════════════════════════════════════════════════════════════
   Blog Overview Page  (Template Name: Blog Overview)
   ═══════════════════════════════════════════════════════════════ */

/* ── Category tag label ──────────────────────────────────────── */
.rs-blog-cat-tag {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	color: hsl(var(--primary));
	text-decoration: none;
	margin-bottom: 0.5rem;
	transition: opacity 0.15s, color 0.15s;
	text-transform: uppercase;
}
.rs-blog-cat-tag:hover { opacity: 0.9; color: hsl(var(--foreground)); }
.rs-blog-cat-tag--sm   { font-size: 0.65rem; margin-bottom: 0.3rem; }

.rs-blog-page .container {
	max-width: 1180px;
}

/* ── Featured hero ───────────────────────────────────────────── */
.rs-blog-hero {
	display: grid;
	gap: 1.75rem;
	align-items: center;
	padding: 0.2rem 0 0.9rem;
}
@media (min-width: 768px) {
	.rs-blog-hero { grid-template-columns: 1.15fr 1fr; }
}
.rs-blog-hero__thumb {
	display: block;
	border-radius: 0.9rem;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border: 1px solid hsl(var(--border));
}
.rs-blog-hero__img,
.rs-blog-hero__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease, filter 0.35s ease;
}
.rs-blog-hero__placeholder {
	background: hsl(var(--muted));
	min-height: 220px;
}
.rs-blog-hero__thumb:hover .rs-blog-hero__img { transform: scale(1.03); filter: saturate(1.04); }

.rs-blog-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.rs-blog-hero__title {
	font-family: Rajdhani, sans-serif;
	font-size: clamp(1.55rem, 2.4vw, 2.3rem);
	font-weight: 800;
	line-height: 1.12;
	margin-bottom: 0.85rem;
}
.rs-blog-hero__title a {
	color: hsl(var(--foreground));
	text-decoration: none;
}
.rs-blog-hero__title a:hover { color: hsl(var(--primary)); }
.rs-blog-hero__excerpt {
	color: hsl(var(--muted-foreground));
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: 1.25rem;
	max-width: 52ch;
}
.rs-blog-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: hsl(var(--primary));
	text-decoration: none;
}
.rs-blog-hero__cta:hover { text-decoration: underline; }

/* ── Highlighted row (4 small) ───────────────────────────────── */
.rs-blog-highlights {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
	padding: 0.9rem 0;
	border-top: 1px solid hsl(var(--border));
	border-bottom: 1px solid hsl(var(--border));
}
@media (min-width: 480px) {
	.rs-blog-highlights { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.rs-blog-highlights { grid-template-columns: repeat(4, 1fr); }
}
.rs-blog-highlight {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	padding: 0.25rem 0.15rem;
	border-radius: 0.4rem;
	background: transparent;
	border: 0;
	transition: opacity 0.2s;
}
.rs-blog-highlight:hover { opacity: 0.9; }
.rs-blog-highlight__thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 0.4rem;
	overflow: hidden;
	display: block;
	border: 1px solid hsl(var(--border));
}
.rs-blog-highlight__img,
.rs-blog-highlight__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.rs-blog-highlight__placeholder { background: hsl(var(--muted)); }
.rs-blog-highlight__body  { flex: 1; min-width: 0; }
.rs-blog-highlight__title {
	font-family: Rajdhani, sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
}
.rs-blog-highlight__title a {
	color: hsl(var(--foreground));
	text-decoration: none;
}
.rs-blog-highlight__title a:hover { color: hsl(var(--primary)); }

/* ── Section divider ─────────────────────────────────────────── */
.rs-blog-divider {
	border: none;
	border-top: 1px solid hsl(var(--border));
	display: none;
}

/* ── Latest posts cards ──────────────────────────────────────── */
.rs-blog-card {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 0.8rem;
	box-shadow: 0 10px 22px hsl(0 0% 0% / 0.14);
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.rs-blog-card:hover {
	border-color: hsl(var(--primary) / 0.45);
	transform: translateY(-2px);
	box-shadow: 0 16px 30px hsl(0 0% 0% / 0.2);
}
.rs-blog-card__img {
	transition: transform 0.35s ease, filter 0.35s ease;
}
.rs-blog-card:hover .rs-blog-card__img {
	transform: scale(1.03);
	filter: saturate(1.05);
}
.rs-blog-card__body {
	border-top: 1px solid hsl(var(--border));
}
.rs-blog-card__title {
	font-size: 1.18rem;
	line-height: 1.28;
}
.rs-blog-card__date {
	font-size: 0.78rem;
}

/* ── See All button ──────────────────────────────────────────── */
.rs-blog-see-all {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.72rem 1.65rem;
	border-radius: 0.5rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.rs-blog-see-all:hover {
	border-color: hsl(var(--primary));
	color: hsl(var(--primary));
	background: hsl(var(--card));
}

/* ── Category pills at bottom ────────────────────────────────── */
.rs-blog-cats {
	margin-top: 3.5rem;
	padding: 1.75rem 2rem;
	border-radius: 0.75rem;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
}
.rs-blog-cats__heading {
	font-family: Rajdhani, sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 1rem;
}
.rs-blog-cats__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.rs-blog-cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.8rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-size: 0.82rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}
.rs-blog-cat-pill:hover {
	border-color: hsl(var(--primary));
	color: hsl(var(--primary));
}
.rs-blog-cat-pill__count {
	font-size: 0.73rem;
	color: hsl(var(--muted-foreground));
}
