/*
Theme Name: DJ DamianR
Theme URI: https://djdamianr.pl/
Author: DJ DamianR
Description: Custom block theme for DJ DamianR — dark navy foundation, electric blue accent, bold editorial typography. Music with power.
Version: 0.3.1
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: djdamianr
*/

/* Signature glow — used once per page (hero title / primary CTA). */
.dr-glow {
	text-shadow: 0 0 24px var(--wp--preset--color--accent-glow, rgba(47, 155, 255, 0.45));
}

.dr-button-glow {
	box-shadow: 0 0 20px var(--wp--preset--color--accent-glow, rgba(47, 155, 255, 0.35));
}

/* Blue photo grade: desaturate, then wash with the accent via blend mode.
   Softer than a hue-rotate (keeps faces natural) but unifies mixed photos. */
.dr-duotone {
	position: relative;
}
.dr-duotone img {
	filter: grayscale(45%) contrast(1.05) brightness(0.92);
}
.dr-duotone::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--accent, #2f9bff);
	mix-blend-mode: color;
	opacity: 0.28;
	pointer-events: none;
}
.dr-rounded.dr-duotone::after {
	border-radius: 8px;
}

/* Waveform divider host — inline SVG is placed by patterns; keep it decorative. */
.dr-divider {
	color: var(--wp--preset--color--accent, #2f9bff);
	opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
	.dr-fade-in {
		animation: dr-fade-in 0.6s ease-out both;
	}
	@keyframes dr-fade-in {
		from { opacity: 0; transform: translateY(8px); }
		to   { opacity: 1; transform: none; }
	}
}

/* Buttons: poster-style. */
.wp-element-button,
.wp-block-button__link {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.9rem;
	padding: 0.95rem 1.9rem;
}

/* Section kicker — small accent label above headings. */
.dr-kicker {
	text-transform: uppercase;
	letter-spacing: 0.25em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--accent, #2f9bff);
}

/* Cards (event types etc.). */
.dr-card {
	background: var(--wp--preset--color--base, #0a0e1a);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted, #9aa5b8) 22%, transparent);
	border-top: 3px solid var(--wp--preset--color--accent, #2f9bff);
	border-radius: 6px;
	padding: 1.8rem 1.5rem !important;
	height: 100%;
}
@media (prefers-reduced-motion: no-preference) {
	.dr-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
	.dr-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4); }
}

/* Waveform divider — "storms and new beginnings": a calm rising waveline. */
.dr-wave {
	height: 46px;
	max-width: var(--wp--style--global--wide-size, 75rem);
	margin-top: 0;
	margin-bottom: 0;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 60" preserveAspectRatio="none"><path d="M0,44 C80,44 120,28 200,30 C280,32 320,46 400,42 C480,38 520,20 600,24 C680,28 720,44 800,38 C880,32 920,14 1000,18 C1080,22 1140,16 1200,12" fill="none" stroke="%232f9bff" stroke-width="2.5" stroke-linecap="round" opacity="0.55"/></svg>');
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

/* Hero cover. */
.dr-hero {
	display: flex;
	align-items: center;
}
.dr-hero .wp-block-cover__inner-container {
	padding: var(--wp--preset--spacing--60, 4rem) var(--wp--preset--spacing--40, 1.5rem);
}
.dr-hero h1 {
	letter-spacing: 0.04em;
}

/* Rounded media. */
.dr-rounded img {
	border-radius: 8px;
}

/* Footer link lists. */
.dr-footer-links a {
	color: var(--wp--preset--color--muted, #9aa5b8);
	text-decoration: none;
}
.dr-footer-links a:hover,
.dr-footer-links a:focus {
	color: var(--wp--preset--color--accent, #2f9bff);
}

/* ---------------------------------------------------------------------------
   Modern layer
--------------------------------------------------------------------------- */

/* Sticky glass header.
   The template part renders as a wrapper exactly as tall as the header, so
   position:sticky on the inner group has no room to work — the WRAPPER must
   be the sticky element. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}
body.admin-bar header.wp-block-template-part {
	top: 32px;
}
.dr-header {
	position: relative;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted, #9aa5b8) 15%, transparent);
}
/* Glass effect on a pseudo-element, NOT on .dr-header itself: a backdrop-filter
   on the header would become the containing block for the mobile nav overlay
   (position:fixed), trapping it inside the header bar so it never covers the
   screen. Keeping the filter off the header element lets the overlay work. */
.dr-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--base, #0a0e1a) 72%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

/* Generated hero: layered SVG art + floating glow orbs. */
.dr-hero2 {
	position: relative;
	overflow: hidden;
	min-height: 88vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-image: url('assets/hero-bg.svg');
	background-size: cover;
	background-position: center;
}
.dr-hero2::before,
.dr-hero2::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}
.dr-hero2::before {
	width: 34rem; height: 34rem;
	left: -10rem; top: -12rem;
	background: rgba(47, 155, 255, 0.16);
}
.dr-hero2::after {
	width: 26rem; height: 26rem;
	right: -8rem; bottom: -10rem;
	background: rgba(124, 92, 255, 0.13);
}
@media (prefers-reduced-motion: no-preference) {
	.dr-hero2::before { animation: dr-drift 18s ease-in-out infinite alternate; }
	.dr-hero2::after { animation: dr-drift 22s ease-in-out infinite alternate-reverse; }
	@keyframes dr-drift {
		from { transform: translate(0, 0); }
		to   { transform: translate(3rem, 2rem); }
	}
}
.dr-hero2 > * { position: relative; z-index: 1; }

/* Hero typography: solid line + outline line. */
.dr-hero2 h1 {
	font-size: clamp(3rem, 9vw, 6.5rem);
	line-height: 0.98;
	margin: 0;
	position: relative;
}

/* Cross of light behind the wordmark (owner's idea: POWER casts a cross).
   On a dark theme the "shadow" reads as light — two soft crossing beams. */
.dr-hero2 h1::before,
.dr-hero2 h1::after {
	content: "";
	position: absolute;
	left: 50%;
	pointer-events: none;
	z-index: -1;
	filter: blur(18px);
}
.dr-hero2 h1::before {
	top: -110%;
	transform: translateX(-50%);
	width: clamp(70px, 8vw, 120px);
	height: 340%;
	background: linear-gradient(to bottom,
		transparent 0%,
		rgba(47, 155, 255, 0.32) 25%,
		rgba(47, 155, 255, 0.60) 50%,
		rgba(47, 155, 255, 0.20) 80%,
		transparent 100%);
}
.dr-hero2 h1::after {
	top: -4%;
	transform: translateX(-50%);
	width: min(620px, 84vw);
	height: clamp(60px, 9vw, 95px);
	background: linear-gradient(to right,
		transparent,
		rgba(47, 155, 255, 0.44) 32%,
		rgba(47, 155, 255, 0.60) 50%,
		rgba(47, 155, 255, 0.44) 68%,
		transparent);
}
.dr-outline {
	color: transparent;
	-webkit-text-stroke: 2px var(--wp--preset--color--contrast, #f5f7fa);
}

/* Equalizer bars — alive next to the music. */
.dr-eq {
	display: flex;
	gap: 5px;
	align-items: flex-end;
	height: 38px;
	justify-content: center;
}
.dr-eq span {
	width: 5px;
	border-radius: 3px;
	background: var(--wp--preset--color--accent, #2f9bff);
	height: 30%;
}
.dr-eq span:nth-child(2n) { height: 75%; }
.dr-eq span:nth-child(3n) { height: 50%; }
.dr-eq span:nth-child(5n) { height: 90%; }
@media (prefers-reduced-motion: no-preference) {
	.dr-eq span { animation: dr-eq 1.1s ease-in-out infinite alternate; }
	.dr-eq span:nth-child(2n) { animation-duration: 0.9s; animation-delay: 0.12s; }
	.dr-eq span:nth-child(3n) { animation-duration: 1.3s; animation-delay: 0.25s; }
	.dr-eq span:nth-child(4n) { animation-duration: 0.8s; animation-delay: 0.05s; }
	.dr-eq span:nth-child(5n) { animation-duration: 1.5s; animation-delay: 0.33s; }
	@keyframes dr-eq {
		from { height: 18%; }
		to   { height: 95%; }
	}
}

/* Marquee strip. */
.dr-marquee {
	overflow: hidden;
	white-space: nowrap;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--muted, #9aa5b8) 18%, transparent);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--muted, #9aa5b8) 18%, transparent);
	padding: 0.7rem 0;
}
.dr-marquee-track {
	display: inline-block;
	font-family: var(--wp--preset--font-family--display, sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.95rem;
	color: var(--wp--preset--color--muted, #9aa5b8);
}
.dr-marquee-track em {
	font-style: normal;
	color: var(--wp--preset--color--accent, #2f9bff);
}
@media (prefers-reduced-motion: no-preference) {
	.dr-marquee-track {
		animation: dr-marquee 36s linear infinite;
	}
	@keyframes dr-marquee {
		from { transform: translateX(0); }
		to   { transform: translateX(-50%); }
	}
}

/* Generated-art band — for section intros (Music, About, Contact). */
.dr-band {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background-image: url('assets/band-eq.svg');
	background-size: cover;
	background-position: center;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent, #2f9bff) 25%, transparent);
}

/* Language switcher (appended after the header navigation). */
.dr-lang {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: 1.2rem;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.12em;
}
.dr-lang span { color: var(--wp--preset--color--muted, #9aa5b8); }
.dr-lang a {
	color: var(--wp--preset--color--muted, #9aa5b8);
	text-decoration: none;
}
.dr-lang a:hover,
.dr-lang a:focus {
	color: var(--wp--preset--color--contrast, #f5f7fa);
}
.dr-lang a.is-current {
	color: var(--wp--preset--color--accent, #2f9bff);
}

/* News list (Aktualności archive + latest-posts on Home). */
.dr-news-item {
	padding: 1.6rem 1.5rem;
}
.dr-news-item h2 a,
.dr-news-item .wp-block-post-title a {
	text-decoration: none;
}
.dr-news-item .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large, 1.375rem);
	margin-top: 0.3rem;
}
.wp-block-latest-posts.dr-news-home {
	display: grid;
	gap: 1rem;
	padding-left: 0;
	list-style: none;
}
.wp-block-latest-posts.dr-news-home li {
	background: color-mix(in srgb, var(--wp--preset--color--base, #0a0e1a) 55%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted, #9aa5b8) 22%, transparent);
	border-left: 3px solid var(--wp--preset--color--accent, #2f9bff);
	border-radius: 10px;
	padding: 1.1rem 1.3rem;
}
.wp-block-latest-posts.dr-news-home li > a {
	font-family: var(--wp--preset--font-family--display, sans-serif);
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
}
.wp-block-latest-posts.dr-news-home .wp-block-latest-posts__post-date {
	color: var(--wp--preset--color--muted, #9aa5b8);
	font-size: 0.85rem;
}
.wp-block-latest-posts.dr-news-home .wp-block-latest-posts__post-excerpt {
	margin: 0.4rem 0 0;
	color: var(--wp--preset--color--muted, #9aa5b8);
	font-size: 0.95rem;
}

/* Gallery captions — readable on the dark theme, lightbox-friendly. */
.dr-gallery figcaption {
	color: var(--wp--preset--color--muted, #9aa5b8);
	font-size: 0.85rem;
}
.dr-gallery img {
	border-radius: 8px;
}

/* Uploaded videos. */
.wp-block-video video {
	border-radius: 8px;
	width: 100%;
}

/* Glassier cards. */
.dr-card {
	border-radius: 14px;
	background: color-mix(in srgb, var(--wp--preset--color--base, #0a0e1a) 55%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
