/* pb.n Atmospherix — section styles */

:root {
	--pbn-bg: #0a0c16;
	--pbn-card: #14122b;
	--pbn-line: #262243;
	--pbn-line-2: #352e5c;
	--pbn-line-3: #463d75;
	--pbn-text: #e8ecf7;
	--pbn-soft: #b7bdd3;
	--pbn-muted: #a3aac6;
	--pbn-dim: #8f97b8;
	--pbn-purple: #9d2bff;
	--pbn-purple-text: #c88dff;
	--pbn-deep: #3b0d78;
	--pbn-max: 1200px;
}

/* ---------- Animated bars (waveform + header icon) ---------- */
.wv {
	display: block;
	transform-origin: center;
	animation-name: wvA;
	animation-duration: 0.5s;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	animation-timing-function: ease-in-out;
	background: var(--pbn-purple);
	border-radius: 3px;
}
.wv:nth-child(3n) { animation-name: wvB; }
.wv:nth-child(4n+1) { animation-name: wvC; }
@keyframes wvA { 0% { transform: scaleY(.25) } 35% { transform: scaleY(1) } 70% { transform: scaleY(.5) } 100% { transform: scaleY(.85) } }
@keyframes wvB { 0% { transform: scaleY(.9) } 40% { transform: scaleY(.3) } 100% { transform: scaleY(1) } }
@keyframes wvC { 0% { transform: scaleY(.4) } 50% { transform: scaleY(.75) } 100% { transform: scaleY(.15) } }

/* ---------- Header ---------- */
/* The sticky element must be the template-part wrapper WordPress puts around the header,
   otherwise the header has no room to stick inside it. */
.wp-site-blocks > .wp-block-template-part:has(> .pbn-header),
.wp-site-blocks > header.wp-block-template-part {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 50;
	margin-block-start: 0;
}
body.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .pbn-header),
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .pbn-header),
	body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .pbn-header),
	body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; }
}
.pbn-header {
	background: rgba(10, 12, 22, 0.78);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--pbn-line);
}

.pbn-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pbn-text) !important; text-decoration: none !important; }
.pbn-brand-bars { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.pbn-brand-bars .wv { width: 4px; height: 22px; border-radius: 2px; }
.pbn-brand-bars .wv:nth-child(1) { animation-duration: .42s; }
.pbn-brand-bars .wv:nth-child(2) { animation-duration: .55s; animation-delay: -.2s; }
.pbn-brand-bars .wv:nth-child(3) { animation-duration: .38s; animation-delay: -.1s; }
.pbn-brand-bars .wv:nth-child(4) { animation-duration: .6s; animation-delay: -.35s; }
.pbn-brand-text { font-family: var(--wp--preset--font-family--unbounded); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.pbn-header .wp-block-shortcode { margin: 0; }
.pbn-header .wp-block-navigation { font-size: 15px; font-weight: 600; }
.pbn-header .wp-block-navigation a { color: var(--pbn-soft); }
.pbn-header .wp-block-navigation a:hover { color: var(--pbn-text); text-decoration: none; }
.pbn-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--pbn-card) !important;
	border: 1px solid var(--pbn-line) !important;
	border-radius: 8px;
	padding: 6px 0;
}
.pbn-twitch-btn .wp-block-button__link { padding: 10px 18px; font-size: 15px; box-shadow: 0 0 28px rgba(157, 43, 255, .4); }

/* ---------- Generic section bits ---------- */
.pbn-wrap { max-width: var(--pbn-max); margin-left: auto !important; margin-right: auto !important; padding-left: 24px; padding-right: 24px; box-sizing: border-box; width: 100%; }
.pbn-eyebrow {
	margin: 0 0 8px !important;
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--pbn-purple-text);
}
.pbn-muted { color: var(--pbn-muted); }
.pbn-section { padding-top: 88px; padding-bottom: 88px; }
main.pbn-home > * { margin-block-start: 0; }
main.pbn-home .wp-block-group { margin-block-start: 0; }

/* ---------- Hero ---------- */
.pbn-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--pbn-line); }
.pbn-hero-inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.pbn-hero-inner > * { margin: 0 !important; }
.pbn-hero h1 {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 14px !important;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--pbn-purple-text);
	line-height: 1.4;
}
.pbn-logo { display: block; width: 100%; max-width: 980px; height: auto; }
.pbn-hero-intro { max-width: 640px; font-size: 20px; color: var(--pbn-soft); }

.pbn-slides {
	position: absolute; top: 0; right: 0; bottom: 0; width: 60%;
	-webkit-mask-image: linear-gradient(to left, #000 30%, transparent 100%);
	mask-image: linear-gradient(to left, #000 30%, transparent 100%);
	pointer-events: none;
}
.pbn-slide { position: absolute; inset: 0; opacity: 0; }
.pbn-slide-img { position: absolute; inset: 0; background-size: cover; animation: pbnKb 10s infinite alternate ease-in-out; }
@keyframes pbnKb { 0% { transform: scale(1) } 100% { transform: scale(1.08) } }
.pbn-slides-tint { position: absolute; inset: 0; background: rgba(10, 12, 22, .45); }
@media (max-width: 781px) { .pbn-slides { width: 100%; opacity: .45; } }

.pbn-wave {
	display: flex; align-items: center; gap: 4px; height: 72px; overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, #000 25%, transparent 100%);
	mask-image: linear-gradient(to right, #000 25%, transparent 100%);
}
.pbn-wave .wv { flex: 0 0 5px; }

.pbn-status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pbn-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 12px; border: 1px solid var(--pbn-line-2); border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pbn-soft);
}
.pbn-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7290; }
.pbn-pill.is-live { border-color: #ff3b6b; color: #fff; text-decoration: none !important; }
.pbn-pill.is-live .dot { background: #ff3b6b; box-shadow: 0 0 0 0 rgba(255, 59, 107, .7); animation: pbnPulse 1.6s infinite; }
@keyframes pbnPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 107, .7) } 100% { box-shadow: 0 0 0 10px rgba(255, 59, 107, 0) } }
.pbn-status-text { font-size: 15px; color: var(--pbn-soft); }
.pbn-status-text a { font-weight: 700; }

/* ---------- About ---------- */
.pbn-about { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 88px; }
.pbn-about > * { margin: 0 !important; }
.pbn-about-head { flex: 1 1 280px; }
.pbn-about-body { flex: 999 1 520px; min-width: 0; color: #c4c9de; display: flex; flex-direction: column; gap: 18px; }
.pbn-about-body > * { margin: 0 !important; }

/* Outline buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--pbn-text);
	border: 1px solid var(--pbn-line-3);
	padding: 10px 16px;
	font-size: 15px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--pbn-purple); background: transparent; color: #fff; }

/* ---------- Latest mix ---------- */
.pbn-latest-wrap { padding-top: 88px; }
.pbn-latest {
	display: flex; flex-wrap: wrap; gap: 32px;
	background: var(--pbn-card); border: 1px solid var(--pbn-line); border-radius: 12px; padding: 24px;
}
.pbn-latest-cover { flex: 1 1 300px; max-width: 420px; }
.pbn-latest-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.pbn-latest-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.pbn-latest-body > * { margin: 0; }
.pbn-latest-meta { font-size: 14px; font-weight: 600; color: var(--pbn-dim); }
.pbn-latest-title { font-size: clamp(26px, 3.4vw, 40px) !important; }
.pbn-latest-desc { color: var(--pbn-soft); }
.pbn-latest-desc p { margin: 0 0 .6em; }
.pbn-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pbn-tags li { font-size: 13px; font-weight: 600; color: #c4c9de; border: 1px solid var(--pbn-line-2); padding: 4px 10px; border-radius: 999px; }
.pbn-latest-player { width: 100%; border: 0; border-radius: 8px; }
.pbn-latest-links { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; font-size: 15px; }

/* ---------- Mix archive cards ---------- */
.pbn-archive { padding-top: 40px; padding-bottom: 88px; }
.pbn-archive-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px !important; }
.pbn-archive-head > * { margin: 0 !important; }
.pbn-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pbn-cards > * { margin: 0 !important; }
.pbn-card {
	position: relative;
	background: var(--pbn-card); border: 1px solid var(--pbn-line); border-radius: 12px; padding: 24px;
	display: flex; flex-direction: column; gap: 12px; min-height: 200px;
	transition: border-color .2s, transform .2s;
}
.pbn-card:hover { border-color: var(--pbn-purple); transform: translateY(-2px); }
.pbn-card > * { margin: 0 !important; }
.pbn-card-tag { font-size: 12px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pbn-purple-text); }
.pbn-card-title { font-family: var(--wp--preset--font-family--unbounded); font-weight: 700; font-size: 21px !important; line-height: 1.2; }
.pbn-card-title a { color: var(--pbn-text) !important; text-decoration: none !important; }
.pbn-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.pbn-card-desc { color: var(--pbn-muted); font-size: 15px; line-height: 1.55; }

/* ---------- Edits & Anomalies band ---------- */
.pbn-edits { background: var(--pbn-deep); color: #fff; }
.pbn-edits-inner { display: flex; flex-wrap: wrap; gap: 48px; }
.pbn-edits-inner > * { margin: 0 !important; }
.pbn-edits-head { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.pbn-edits-head > * { margin: 0 !important; }
.pbn-edits .pbn-eyebrow, .pbn-edits-head p { color: #dcc6ff; }
.pbn-edits-list { flex: 999 1 520px; min-width: 0; }
.pbn-edits-list .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.pbn-edits-list .wp-block-post {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
	padding: 18px 0; margin: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.pbn-edits-list .wp-block-post > * { margin: 0 !important; }
.pbn-edits-list .wp-block-post-title { font-family: var(--wp--preset--font-family--manrope); font-size: 17px !important; font-weight: 700; flex: 1 1 280px; }
.pbn-edits-list .wp-block-post-title a { color: #fff; }
.pbn-edits-list .wp-block-read-more {
	color: #fff; font-weight: 700; font-size: 14px; border: 1px solid #fff; padding: 8px 14px; border-radius: 6px; text-decoration: none;
}
.pbn-edits-list .wp-block-read-more:hover { background: #fff; color: var(--pbn-deep); text-decoration: none; }
.pbn-edits .pbn-more a { color: #fff; font-weight: 700; }

/* ---------- Schedule ---------- */
.pbn-schedule { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.pbn-schedule-col { flex: 1 1 380px; min-width: 0; }
.pbn-col-label {
	margin: 0 0 12px; font-family: var(--wp--preset--font-family--manrope);
	font-size: 13px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pbn-dim);
}
.pbn-upcoming, .pbn-past { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pbn-line); }
.pbn-upcoming li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--pbn-line); }
.pbn-upcoming .pbn-ev-date { font-family: var(--wp--preset--font-family--unbounded); font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--pbn-purple-text); }
.pbn-upcoming .pbn-ev-date small { display: block; font-family: var(--wp--preset--font-family--manrope); font-weight: 600; font-size: 13px; color: var(--pbn-dim); margin-top: 2px; }
.pbn-ev-main { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 480px) { .pbn-upcoming li { grid-template-columns: 96px minmax(0, 1fr); } .pbn-upcoming .pbn-ev-kind { grid-column: 2; justify-self: start; } }
.pbn-upcoming .pbn-ev-name { font-weight: 700; font-size: 18px; }
.pbn-upcoming .pbn-ev-name a { color: var(--pbn-text); }
.pbn-ev-venue { color: var(--pbn-muted); font-size: 15px; }
.pbn-ev-kind { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--pbn-line-3); }
.pbn-ev-kind.is-stream { border-color: var(--pbn-purple); color: var(--pbn-purple-text); }
.pbn-past li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--pbn-line); }
.pbn-past .pbn-ev-date { flex: 0 0 110px; font-size: 14px; font-weight: 600; color: var(--pbn-dim); }
.pbn-past .pbn-ev-main { display: block; font-size: 16px; }
.pbn-empty { margin: 20px 0 0; padding: 20px; border: 1px dashed var(--pbn-line-2); border-radius: 10px; color: var(--pbn-soft); font-size: 15px; }
.pbn-empty a { font-weight: 700; }

/* ---------- Flyers carousel ---------- */
.pbn-flyers-section { position: relative; padding-bottom: 88px; }
.pbn-flyers-section > p, .pbn-flyers-section > h2 { margin-top: 0; margin-bottom: 8px; }
.pbn-flyers-section .pbn-muted { margin-bottom: 28px; }
.pbn-flyers { position: relative; }
.pbn-flyers-nav { position: absolute; top: -72px; right: 0; display: flex; gap: 8px; }
.pbn-flyers-btn {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pbn-line-3); background: transparent;
	color: var(--pbn-text); font-size: 18px; cursor: pointer; transition: border-color .2s, background .2s;
}
.pbn-flyers-btn:hover { border-color: var(--pbn-purple); background: var(--pbn-purple); }
.pbn-flyers-track {
	list-style: none; margin: 0; padding: 0 0 12px; display: flex; gap: 16px; overflow-x: auto;
	scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--pbn-line-3) transparent;
	-webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
	mask-image: linear-gradient(to right, #000 85%, transparent 100%);
}
.pbn-flyer { flex: 0 0 auto; scroll-snap-align: start; margin: 0 !important; }
.pbn-flyer a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--pbn-line); transition: transform .2s, border-color .2s; }
.pbn-flyer a:hover { transform: translateY(-3px); border-color: var(--pbn-purple); }
.pbn-flyer img { display: block; height: 380px; width: auto; max-width: none; }
@media (max-width: 600px) { .pbn-flyer img { height: 260px; } .pbn-flyers-nav { display: none; } }
.pbn-flyers-more { margin: 20px 0 0; font-weight: 700; }

/* Flyers page gallery */
.page-flyers .wp-block-gallery .wp-block-image img { border-radius: 8px; }

/* ---------- Community cards ---------- */
.pbn-community { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; padding-bottom: 88px; }
.pbn-community > * { margin: 0 !important; }
.pbn-panel { background: var(--pbn-card); border: 1px solid var(--pbn-line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.pbn-panel > * { margin: 0 !important; }
.pbn-panel p:not(.pbn-eyebrow) { color: var(--pbn-soft); }
.pbn-panel .wp-block-buttons { margin-top: 8px !important; }

/* ---------- Footer ---------- */
.pbn-footer { border-top: 1px solid var(--pbn-line); }
.pbn-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.pbn-footer-inner > * { margin: 0 !important; }
.pbn-footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.pbn-footer-brand > * { margin: 0 !important; }
.pbn-footer-title { font-family: var(--wp--preset--font-family--unbounded); font-weight: 700; font-size: 18px; }
.pbn-footer-title a { color: var(--pbn-text); }
.pbn-footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 600; }
.pbn-footer-links a { color: var(--pbn-soft); }
.pbn-footer-copy { font-size: 13px; color: var(--pbn-dim); }

/* ---------- Inner pages & posts ---------- */
.wp-block-post-date, .wp-block-post-terms { color: var(--pbn-muted); }
.wp-block-separator { border-color: var(--pbn-line); opacity: 1; }
.wp-block-quote { border-left-color: var(--pbn-purple); }

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.wv, .pbn-slide-img, .pbn-pill .dot { animation: none !important; }
	.pbn-slides .pbn-slide { animation: none !important; }
	.pbn-slides .pbn-slide:first-of-type { opacity: 1; }
}
