/*
Theme Name: RealCasinoTest Reviews
Description: Review + hub site theme for the Nigeria crypto casino affiliate project. "Tested with real money. Honest by design."
Version: 1.0.1
Author: Yellow Monkey Media
Text Domain: naija-casino-reviews
*/

:root {
	--ink: #0a0f0d;
	--panel: #121917;
	--panel-2: #182019;
	--line: rgba(243, 241, 234, 0.10);
	--emerald: #22c55e;
	--emerald-strong: #16a34a;
	--gold: #f5b942;
	--gold-strong: #d99a1f;
	--paper: #f3f1ea;
	--muted: #8a968e;
	--warn: #e2542d;
	--warn-bg: rgba(226, 84, 45, 0.10);
	--warn-line: rgba(226, 84, 45, 0.35);
	--radius: 12px;
	--shadow: 0 20px 45px -22px rgba(0, 0, 0, 0.65);
	--sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: radial-gradient(1100px 480px at 88% -8%, rgba(34, 197, 94, 0.10), transparent), var(--ink);
	color: var(--paper);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--emerald); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a:focus-visible, button:focus-visible, .cta:focus-visible {
	outline: 2px solid var(--emerald);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

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

/* ---------- Header ---------- */
.site-header {
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-logo {
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -0.01em;
	text-decoration: none;
}
.site-logo span { color: var(--emerald); }

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 38px;
	height: 34px;
	padding: 0;
	background: none;
	border: 1px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
}
.nav-toggle__bar { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--paper); border-radius: 2px; transition: transform 0.15s ease, opacity 0.15s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-size: 14px; color: var(--muted); }
.site-nav a:hover { color: var(--paper); }

.site-nav li.has-dropdown { position: relative; }
.nav-dropdown-toggle {
	display: inline-flex;
	align-items: center;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	font-size: 14px;
	color: var(--muted);
	cursor: pointer;
}
.nav-dropdown-toggle:hover { color: var(--paper); }
.nav-dropdown-toggle::after { content: '▾'; font-size: 9px; margin-left: 4px; position: relative; top: -1px; }
.site-nav .mega-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 14px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 22px;
	grid-template-columns: repeat(3, minmax(130px, 1fr));
	gap: 4px 28px;
	z-index: 50;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.site-nav li.has-dropdown:hover .mega-menu,
.site-nav li.has-dropdown.is-open .mega-menu {
	display: grid;
}
.mega-menu__col { display: flex; flex-direction: column; }
.mega-menu a { padding: 6px 0; font-size: 13.5px; white-space: nowrap; }
.mega-menu a:hover { color: var(--emerald); }

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
	.nav-toggle { display: flex; }
	.site-nav {
		display: none;
		width: 100%;
		order: 3;
		margin-top: 18px;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 2px; }
	.site-nav ul > li { border-bottom: 1px solid var(--line); }
	.site-nav ul > li > a,
	.nav-dropdown-toggle { display: flex; align-items: center; width: 100%; padding: 13px 2px; font-size: 15px; }
	.nav-dropdown-toggle::after { margin-left: auto; font-size: 13px; line-height: 1; }
	.has-dropdown.is-open .nav-dropdown-toggle::after { transform: scaleY(-1); }
	.site-nav li.has-dropdown { position: static; }
	.site-nav .mega-menu {
		display: none;
		position: static;
		box-shadow: none;
		border: none;
		border-radius: 0;
		background: var(--panel-2);
		margin: 0 0 6px;
		padding: 4px 2px 10px 16px;
		grid-template-columns: 1fr;
		gap: 0;
	}
	.site-nav li.has-dropdown:hover .mega-menu { display: none; }
	.site-nav li.has-dropdown.is-open .mega-menu { display: block; }
	.mega-menu a { padding: 10px 0; font-size: 14.5px; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 14px 20px 16px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; opacity: 0.4; margin-left: 6px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--emerald); }
.breadcrumbs li[aria-current="page"] { color: var(--paper); }

/* ---------- Author byline ---------- */
.byline { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.byline__row { display: flex; align-items: center; gap: 12px; }
.byline__avatar { flex: none; color: var(--emerald); background: var(--panel); border: 1px solid var(--line); border-radius: 100px; padding: 6px; }
.byline__avatar--tester { color: var(--gold); }
img.byline__avatar { padding: 0; object-fit: cover; }
.byline__text { font-size: 13.5px; color: var(--paper); margin: 0; }
.byline__text strong { font-weight: 700; }
.byline__meta { font-size: 12px; color: var(--muted); margin: 0 0 0 46px; }

/* ---------- Disclosure banner ---------- */
.disclosure {
	background: rgba(245, 185, 66, 0.08);
	border-top: 1px solid rgba(245, 185, 66, 0.3);
	border-bottom: 1px solid rgba(245, 185, 66, 0.3);
}
.disclosure p {
	max-width: 1120px;
	margin: 0 auto;
	padding: 12px 20px;
	font-size: 13.5px;
	color: var(--paper);
}
.disclosure a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.disclosure--avoid {
	background: var(--warn-bg);
	border-top-color: var(--warn-line);
	border-bottom-color: var(--warn-line);
}

/* ---------- Hero ---------- */
.hero { padding-top: 56px; padding-bottom: 36px; }
.hero .eyebrow {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--emerald);
	margin: 0 0 12px;
}
.hero h1 {
	font-size: clamp(30px, 4.8vw, 48px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.08;
	margin: 0 0 16px;
	text-wrap: balance;
}
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 62ch; margin: 0; }

/* ---------- Section scaffolding ---------- */
section { padding: 40px 0; }
h2.section-title {
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
}
p.section-lead { color: var(--muted); max-width: 66ch; margin: 0 0 24px; font-size: 15px; }

/* ---------- Casino card grid ---------- */
.casino-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}
.casino-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.casino-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.casino-card__name { font-size: 18px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.casino-card__datasheet { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.casino-card__datasheet div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.casino-card__datasheet dt { color: var(--muted); }
.casino-card__datasheet dd { margin: 0; font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.casino-card__cta { margin-top: auto; }

/* ---------- Rating widget ---------- */
.rating-widget { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.rating-widget--compact { align-items: flex-end; }
.rating-widget__overall {
	font-family: var(--mono);
	line-height: 1;
	white-space: nowrap;
}
.rating-widget__score { font-size: 26px; font-weight: 700; color: var(--emerald); }
.rating-widget__scale { font-size: 13px; color: var(--muted); }
.rating-widget__bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.rating-widget__bar { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; font-size: 12.5px; }
.rating-widget__bar-label { color: var(--muted); }
.rating-widget__bar-label em { font-style: normal; opacity: 0.6; }
.rating-widget__bar-track { background: var(--panel-2); border-radius: 100px; height: 6px; overflow: hidden; }
.rating-widget__bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald-strong), var(--emerald)); border-radius: 100px; }
.rating-widget__bar-value { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- CTA buttons ---------- */
.cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 18px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14.5px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
	width: 100%;
}
.cta--play { background: var(--gold); color: #241a04; }
.cta--play:hover { background: var(--gold-strong); }
.cta--review { background: transparent; color: var(--emerald); border: 1px solid var(--emerald); }
.cta--review:hover { background: rgba(34, 197, 94, 0.12); }
.cta--pending { background: transparent; color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.cta__note { display: none; }

/* ---------- Comparison table ---------- */
.compare-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th {
	text-align: left;
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	padding: 13px 14px;
	border-bottom: 1px solid var(--line);
	white-space: nowrap;
}
.compare-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(34, 197, 94, 0.05); }
.compare-table__name { font-weight: 700; }
.compare-table__num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Warning / blacklist card ---------- */
.warning-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.warning-card {
	background: var(--warn-bg);
	border: 1px solid var(--warn-line);
	border-left: 3px solid var(--warn);
	border-radius: var(--radius);
	padding: 18px 20px;
}
.warning-card__label {
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--warn);
	display: block;
	margin-bottom: 8px;
}
.warning-card h3 { margin: 0 0 6px; font-size: 17px; }
.warning-card h3 a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--warn); text-underline-offset: 3px; }
.warning-card h3 a:hover { color: var(--warn); }
.warning-card p { margin: 0; font-size: 14px; color: var(--paper); }

/* ---------- Review page ---------- */
.review-head { padding-top: 48px; padding-bottom: 24px; }
.review-head .datasheet-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin-top: 24px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
}
.datasheet-strip div dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }
.datasheet-strip div dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; }

article.review-content { max-width: 74ch; margin: 0 auto; padding-top: 36px; padding-bottom: 48px; }
article.review-content h2 { font-size: 22px; font-weight: 800; margin: 40px 0 12px; letter-spacing: -0.01em; }
article.review-content p { margin: 0 0 16px; font-size: 16px; }
article.review-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
article.review-content th, article.review-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
article.review-content th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
article.review-content figure { margin: 24px 0; }
article.review-content figure img { border-radius: var(--radius); border: 1px solid var(--line); }
/* Reset WP's classic-gallery default item spacing/floats — the grid on
   .gallery controls layout instead. */
article.review-content .gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 6px;
	margin: 20px 0;
}
article.review-content .gallery .gallery-item {
	margin: 0 !important;
	width: auto !important;
	float: none !important;
}
article.review-content .gallery .gallery-icon {
	margin: 0;
}
article.review-content .gallery .gallery-icon a {
	display: block;
	cursor: pointer;
}
article.review-content .gallery img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--line);
	transition: opacity 150ms ease;
}
article.review-content .gallery .gallery-icon a:hover img { opacity: 0.85; }
article.review-content .gallery .gallery-caption { display: none; }

/* ---------- Lightbox ---------- */
.naija-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(5, 8, 7, 0.92);
	z-index: 1000;
	align-items: center;
	justify-content: center;
}
.naija-lightbox.is-open { display: flex; }
body.naija-lightbox-open { overflow: hidden; }
.naija-lightbox__img {
	max-width: min(90vw, 1100px);
	max-height: 86vh;
	width: auto;
	height: auto;
	border-radius: 10px;
	box-shadow: var(--shadow);
}
.naija-lightbox__close,
.naija-lightbox__prev,
.naija-lightbox__next {
	position: absolute;
	background: var(--panel);
	color: var(--paper);
	border: 1px solid var(--line);
	cursor: pointer;
	border-radius: 100px;
	transition: background-color 150ms ease;
}
.naija-lightbox__close:hover,
.naija-lightbox__prev:hover,
.naija-lightbox__next:hover { background: var(--panel-2); }
.naija-lightbox__close { top: 18px; right: 18px; width: 42px; height: 42px; font-size: 22px; line-height: 1; }
.naija-lightbox__prev,
.naija-lightbox__next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; }
.naija-lightbox__prev { left: 14px; }
.naija-lightbox__next { right: 14px; }
.naija-lightbox__count {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--muted);
	font-family: var(--mono);
	font-size: 12.5px;
	margin: 0;
}
@media (max-width: 640px) {
	.naija-lightbox__prev, .naija-lightbox__next { width: 40px; height: 40px; font-size: 22px; }
}
article.review-content blockquote { margin: 20px 0; padding: 4px 20px; border-left: 3px solid var(--emerald); color: var(--muted); }
.review-cta { max-width: 74ch; margin: 0 auto 48px; }

/* ---------- Static pages ---------- */
article.page-content { max-width: 74ch; margin: 0 auto; padding-top: 48px; padding-bottom: 48px; }
article.page-content h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0 0 20px; letter-spacing: -0.01em; }
article.page-content h2 { font-size: 20px; font-weight: 800; margin: 32px 0 10px; }
article.page-content p { margin: 0 0 16px; font-size: 16px; color: var(--paper); }
article.page-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
article.page-content th, article.page-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
article.page-content th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
article.page-content blockquote { margin: 20px 0; padding: 4px 20px; border-left: 3px solid var(--emerald); color: var(--muted); }
article.page-content ul, article.page-content ol { margin: 0 0 16px; padding-left: 22px; }
article.page-content li { margin-bottom: 6px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; margin-top: 20px; }
.site-footer p { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; max-width: 78ch; }
.site-footer .helpline { color: var(--paper); }

@media (max-width: 640px) {
	.rating-widget__bar { grid-template-columns: 92px 1fr 34px; }
}
