/*
Theme Name: The Hot Takes
Theme URI: https://www.thehottakesuk.com/
Author: The Hot Takes
Description: A bold, gig-poster style block theme for The Hot Takes party band. Pink on black, condensed display type, and a built-in booking enquiry form.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hot-takes
*/

/* ---------- Genre strip (marquee) ---------- */
.ht-marquee {
	overflow: hidden;
	white-space: nowrap;
}
.ht-marquee > p {
	display: inline-block;
	margin: 0;
	padding-left: 100%;
	animation: ht-marquee 28s linear infinite;
}
@keyframes ht-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
	.ht-marquee > p {
		animation: none;
		padding-left: 0;
	}
}

/* ---------- Events list rows ---------- */
.ht-events {
	border-top: 2px solid var(--wp--preset--color--cream);
}
.ht-event-row {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.ht-event-row .ht-event-num {
	min-width: 48px;
}
.ht-event-row .ht-event-name {
	flex: 1 1 260px;
}
.ht-event-row .ht-event-desc {
	flex: 2 1 320px;
}
.ht-event-row a {
	text-decoration: none;
}

/* ---------- Placeholders (showreel / gallery) ---------- */
.ht-placeholder {
	border: 1px dashed #4a4540;
}

/* ---------- Gallery ---------- */
.ht-gallery {
	grid-auto-rows: 220px;
}
.ht-gallery > .wp-block-cover,
.ht-gallery > .wp-block-image,
.ht-gallery > .wp-block-group {
	min-height: 0 !important;
	height: 100%;
	margin: 0;
}
.ht-gallery > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (min-width: 782px) {
	.ht-gallery > :first-child {
		grid-row: span 2;
	}
}

/* ---------- Video embeds fill their box ---------- */
.ht-showreel .wp-block-embed__wrapper iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

/* ---------- Header nav ---------- */
.ht-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--pink-light);
}

/* ---------- Enquiry form ---------- */
.ht-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.ht-form .ht-full {
	grid-column: 1 / -1;
}
.ht-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--black);
}
.ht-form input,
.ht-form select,
.ht-form textarea {
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--cream);
	border: 0;
	border-radius: 0;
	padding: 16px;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	width: 100%;
	box-sizing: border-box;
}
.ht-form input:focus-visible,
.ht-form select:focus-visible,
.ht-form textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--cream);
	outline-offset: 2px;
}
.ht-form textarea {
	resize: vertical;
	min-height: 110px;
}
.ht-form button {
	justify-self: start;
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--cream);
	border: 0;
	padding: 18px 34px;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}
.ht-form button:hover {
	background: #222;
}
.ht-form .ht-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.ht-notice {
	grid-column: 1 / -1;
	margin: 0;
	padding: 16px 18px;
	font-weight: 600;
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--cream);
}
.ht-notice.is-error {
	background: #fff;
	color: #000;
}
