/*
Theme Name: HitRequest
Author: Tribble Media
Author URI: https://www.tribble.nl
Description: Website voor de app HitRequest: voorpagina, privacybeleid, gebruiksvoorwaarden en support in het Nederlands en Engels. Zet de pagina's klaar bij het activeren. Vul daarna bij Instellingen > Algemeen het mailadres in.
Version: 1.4.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hitrequest
*/

:root {
	--hr-bg: #0F172A;
	--hr-surface: #1A2338;
	--hr-surface-high: #243049;
	--hr-line: #2B3753;
	--hr-magenta: #EC0A83;
	--hr-magenta-dark: #C20669;
	--hr-magenta-light: #FF66B8;
	--hr-text: #E8ECF4;
	--hr-muted: #9AA8C0;
	--hr-wide: 1120px;
	--hr-heading: Poppins, system-ui, sans-serif;
}

h1,
h2 {
	overflow-wrap: break-word;
	hyphens: auto;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--hr-magenta-light);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Header */

.hr-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "logo nav side";
	align-items: center;
	gap: 12px 24px;
	max-width: var(--hr-wide);
	margin: 0 auto;
	padding: 20px 24px;
}

.hr-logo {
	grid-area: logo;
	justify-self: start;
}

.hr-logo img {
	display: block;
	height: 36px;
	width: auto;
}

.hr-nav {
	grid-area: nav;
	display: flex;
	gap: 28px;
}

.hr-nav a {
	color: var(--hr-text);
	font-family: var(--hr-heading);
	font-weight: 600;
	text-decoration: none;
}

.hr-nav a:hover,
.hr-nav a[aria-current="page"] {
	color: var(--hr-magenta-light);
}

.hr-header-side {
	grid-area: side;
	display: flex;
	justify-content: flex-end;
}

/* Smal scherm: logo en vlaggen boven, het menu eronder in het midden. */
@media (max-width: 600px) {
	.hr-header {
		grid-template-columns: 1fr auto;
		grid-template-areas: "logo side" "nav nav";
	}

	.hr-nav {
		justify-content: center;
	}
}

.hr-langs {
	display: flex;
	gap: 8px;
}

.hr-langs a {
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	overflow: hidden;
	opacity: 0.55;
	box-shadow: 0 0 0 1px var(--hr-line);
	transition: opacity 0.15s ease;
}

.hr-langs a:hover {
	opacity: 0.9;
}

.hr-langs a[aria-current="true"] {
	opacity: 1;
}

.hr-langs svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hr-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Inhoud */

.hr-main {
	padding: 8px 24px 72px;
}

.hr-main > .wp-block-post-title {
	margin-top: 32px;
}

.hr-landing {
	/* Midden onder de kop, zodat de gloed naar alle kanten (ook boven) zacht wegvloeit. */
	background: radial-gradient(ellipse 620px 320px at 50% 230px, rgba(236, 10, 131, 0.17), rgba(236, 10, 131, 0.06) 45%, transparent 72%);
}

.wp-block-list li + li {
	margin-top: 0.35em;
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--hr-line);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.wp-block-table th {
	background: var(--hr-surface);
	color: #fff;
	font-family: var(--hr-heading);
	font-weight: 600;
}

/* Voorpagina */

.hr-hero {
	padding: 48px 0 8px;
	text-align: center;
}

.hr-hero h1 {
	margin-top: 0;
}

/* De titel past op één regel: de hero mag breder dan de tekstkolom. */
.hr-landing .wp-block-post-content,
.hr-landing .hr-hero {
	max-width: var(--hr-wide) !important;
}

@media (min-width: 640px) {
	.hr-hero h1 {
		max-width: none !important;
		white-space: nowrap;
		font-size: min(3.1rem, 5.1vw);
	}
}

.hr-hero p {
	max-width: 36em;
	margin-inline: auto;
	color: var(--hr-muted);
	font-size: 1.2rem;
}

.hr-stores {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

.hr-store {
	display: block;
	line-height: 0;
	border-radius: 8px;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

a.hr-store:hover {
	opacity: 1;
}

.hr-store img {
	display: block;
	height: 42px;
	width: auto;
}

/* Drie schermen als een waaier: de middelste naar voren, de buitenste gekanteld. */
.hr-screens {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	margin: 44px auto 96px !important;
	max-width: 760px;
}

.hr-screens img {
	display: block;
	width: 33%;
	max-width: 240px;
	height: auto;
	border: 1px solid var(--hr-line);
	border-radius: 28px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.hr-screens img:nth-child(1) {
	position: relative;
	z-index: 1;
	margin-right: -4%;
	transform: translateY(44px) rotate(-8deg);
}

.hr-screens img:nth-child(2) {
	position: relative;
	z-index: 2;
	width: 36%;
	max-width: 262px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(236, 10, 131, 0.18);
}

.hr-screens img:nth-child(3) {
	position: relative;
	z-index: 1;
	margin-left: -4%;
	transform: translateY(44px) rotate(8deg);
}

.hr-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.hr-features > * {
	margin: 0 !important;
	max-width: none !important;
}

.hr-card {
	padding: 26px 24px;
	text-align: center;
	border: 1px solid var(--hr-line);
	border-radius: 20px;
	background: var(--hr-surface);
}

.hr-card h3 {
	margin-top: 0.9rem;
}

.hr-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-inline: auto;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--hr-magenta), var(--hr-magenta-dark));
	box-shadow: 0 8px 20px rgba(236, 10, 131, 0.25);
	color: #fff;
}

.hr-icon svg {
	width: 24px;
	height: 24px;
}

.hr-card p {
	margin-top: 0.5rem;
	color: var(--hr-muted);
}

/* Hitlijst */

.hr-charts {
	margin-top: 72px !important;
}

.hr-charts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.hr-more {
	margin: 28px 0 0;
	text-align: center;
}

.hr-button {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--hr-magenta), var(--hr-magenta-dark));
	box-shadow: 0 8px 20px rgba(236, 10, 131, 0.25);
	color: #fff !important;
	font-family: var(--hr-heading);
	font-weight: 600;
	text-decoration: none;
}

.hr-button:hover {
	background: var(--hr-magenta);
}

/* Op de hitlijstpagina zelf: geen extra ruimte boven de lijsten. */
.hr-main:not(.hr-landing) .hr-charts {
	margin-top: 24px !important;
}

.hr-chart {
	padding: 22px 20px 12px;
	border: 1px solid var(--hr-line);
	border-radius: 20px;
	background: var(--hr-surface);
}

.hr-chart h2 {
	margin: 0 0 12px;
	font-size: 1.35rem;
	text-align: center;
}

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

.hr-songs li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	margin: 0 !important;
}

.hr-songs li + li {
	border-top: 1px solid var(--hr-line);
}

.hr-rank {
	flex: none;
	width: 1.6em;
	text-align: center;
	font-family: var(--hr-heading);
	font-weight: 700;
	color: var(--hr-magenta-light);
}

.hr-cover {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
}

.hr-cover-empty {
	background: var(--hr-surface-high);
	color: var(--hr-muted);
}

.hr-cover-empty svg {
	width: 20px;
	height: 20px;
}

.hr-song {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.hr-song strong,
.hr-song span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.hr-song strong {
	color: var(--hr-text);
	font-weight: 600;
}

.hr-song span {
	color: var(--hr-muted);
	font-size: 0.9rem;
}

@media (max-width: 600px) {
	.hr-screens {
		margin-bottom: 64px !important;
	}

	.hr-screens img {
		border-radius: 16px;
	}

	.hr-screens img:nth-child(1),
	.hr-screens img:nth-child(3) {
		transform: translateY(24px) rotate(-7deg);
	}

	.hr-screens img:nth-child(3) {
		transform: translateY(24px) rotate(7deg);
	}
}

/* Footer */

.hr-footer {
	margin-top: 24px;
	border-top: 1px solid var(--hr-line);
	color: var(--hr-muted);
	font-size: 0.9rem;
}

.hr-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	max-width: var(--hr-wide);
	margin: 0 auto;
	padding: 28px 24px 40px;
}

.hr-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.hr-footer a {
	color: var(--hr-muted);
}

.hr-footer a:hover {
	color: #fff;
}

.hr-copy {
	margin: 0;
}
