/*
Theme Name: Eighth
Description: Dark, stage-lit child theme for the tripthe8th artist platform. Artists are WooCommerce Brands.
Template: twentytwentyfive
Version: 0.2.0
Requires at least: 7.0
Text Domain: eighth
License: GPLv2 or later
*/

/* ---------- Base ---------- */
:root { --eighth-wide: 1280px; } /* keep in sync with theme.json layout.wideSize */
::selection { background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base); }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent-2); outline-offset: 3px; }
.eighth-eyebrow {
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--accent-1);
	margin: 0 0 1rem;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--accent-6);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--contrast); }

/* ---------- Header ---------- */
.eighth-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--base) 82%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
}
.admin-bar .eighth-header { top: var(--wp-admin--admin-bar--height, 32px); }
.eighth-header .wp-block-site-title a::before { content: "♪ "; color: var(--wp--preset--color--accent-1); }
.eighth-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-1); }

/* ---------- Hero ---------- */
.eighth-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.eighth-hero::before {
	content: "";
	position: absolute;
	inset: -20% -10% auto auto;
	width: min(70vw, 900px);
	aspect-ratio: 1;
	background: radial-gradient(circle at center, color-mix(in srgb, var(--wp--preset--color--accent-1) 45%, transparent), transparent 62%);
	filter: blur(40px);
	z-index: -1;
}
.eighth-hero::after {
	content: "";
	position: absolute;
	inset: auto auto -30% -15%;
	width: min(55vw, 700px);
	aspect-ratio: 1;
	background: radial-gradient(circle at center, color-mix(in srgb, var(--wp--preset--color--accent-2) 16%, transparent), transparent 60%);
	filter: blur(50px);
	z-index: -1;
}
/* Narrower than the layout, but left-aligned with it instead of centered */
.eighth-hero h1, .eighth-hero h1 + p { margin-left: max(0px, calc((100% - var(--eighth-wide)) / 2)) !important; }
.eighth-hero h1 { max-width: 14ch; }
.eighth-hero h1 + p { max-width: 56ch; }
.eighth-hero h1 em { font-style: normal; color: var(--wp--preset--color--accent-1); }

/* ---------- Marquee ---------- */
.eighth-marquee {
	overflow: hidden;
	border-block: 1px solid var(--wp--preset--color--accent-6);
}
.eighth-marquee p {
	width: max-content;
	max-width: none;
	margin: 0;
	padding: 1.1rem 0;
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--accent-4);
	white-space: nowrap;
	animation: eighth-scroll 40s linear infinite;
}
@keyframes eighth-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .eighth-marquee p { animation: none; } }

/* ---------- Artist cards ---------- */
.eighth-artist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 1.25rem;
}
.eighth-artist-grid > p, .eighth-artist-grid > br { display: none; } /* stray tags added by WordPress auto-formatting */
.eighth-artist-card {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
	transition: transform .25s ease, border-color .25s ease;
}
.eighth-artist-card:hover, .eighth-artist-card:focus-within { transform: translateY(-4px); border-color: var(--wp--preset--color--accent-1); }
.eighth-artist-card .eighth-artist-name:hover { color: inherit; }
.eighth-artist-media { aspect-ratio: 1; overflow: hidden; background: var(--wp--preset--color--accent-3); }
.eighth-artist-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.eighth-artist-card:hover .eighth-artist-media img { transform: scale(1.04); }
.eighth-artist-meta { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.15rem 1.2rem; }
.eighth-artist-name { color: inherit; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.eighth-artist-name::after { content: ""; position: absolute; inset: 0; } /* stretches the link over the whole card */
.eighth-artist-tag { font-family: var(--wp--preset--font-family--fira-code); font-size: .78rem; color: var(--wp--preset--color--accent-4); }

/* ---------- Artist page ---------- */
.eighth-artist-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: end;
}
.eighth-artist-hero-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--wp--preset--color--accent-1) 35%, transparent); }
.eighth-artist-title { font-size: var(--wp--preset--font-size--display); margin: 0 0 .5rem; line-height: .95; }
.eighth-artist-tagline { font-family: var(--wp--preset--font-family--fira-code); color: var(--wp--preset--color--accent-4); margin: 0 0 1.5rem; }
.eighth-artist-hero .wp-block-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 760px) { .eighth-artist-hero { grid-template-columns: 1fr; } }
.eighth-about { max-width: 62ch; }
.eighth-video video { width: 100%; border-radius: 18px; background: #000; display: block; }

/* ---------- Steps ---------- */
.eighth-step {
	border-top: 1px solid var(--wp--preset--color--accent-6);
	padding-top: 1.5rem;
}
.eighth-step .eighth-num { font-family: var(--wp--preset--font-family--fira-code); color: var(--wp--preset--color--accent-1); font-size: .9rem; }

/* ---------- WooCommerce product loops (shortcode output) ---------- */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1.25rem; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important;
	background: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 18px; overflow: hidden; padding: 0 0 1.1rem !important;
	transition: border-color .25s ease, transform .25s ease;
}
.woocommerce ul.products li.product:hover { border-color: var(--wp--preset--color--accent-1); transform: translateY(-3px); }
.woocommerce ul.products li.product a { text-decoration: none; }
.woocommerce ul.products li.product a img { margin: 0 0 1rem !important; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 1.1rem !important; font-size: 1rem !important; font-weight: 700; color: var(--wp--preset--color--contrast); }
.woocommerce ul.products li.product .price { padding: 0 1.1rem; color: var(--wp--preset--color--accent-4) !important; font-family: var(--wp--preset--font-family--fira-code); font-size: .9rem !important; }
.woocommerce ul.products li.product .button { margin: .6rem 1.1rem 0 !important; border-radius: 999px; background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--accent-6); font-size: .85rem; font-weight: 700; }
.woocommerce ul.products li.product .button:hover { background: var(--wp--preset--color--accent-1); border-color: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base); }
.woocommerce span.onsale { background: var(--wp--preset--color--accent-2); color: var(--wp--preset--color--base); }

.eighth-empty { color: var(--wp--preset--color--accent-4); font-family: var(--wp--preset--font-family--fira-code); }

/* ---------- Footer ---------- */
.eighth-footer a { text-decoration: none; }
.eighth-footer a:hover { color: var(--wp--preset--color--accent-1); }
