/* Breathe Event Listing - Frontend styles
   Scope: only within .breathe-event wrapper (single event_listing)
*/

.breathe-event {
	--breathe-radius: 18px;
	--breathe-radius-sm: 14px;
	--breathe-shadow: 0 16px 40px rgba(12, 54, 92, 0.14);
	--breathe-shadow-sm: 0 10px 24px rgba(12, 54, 92, 0.12);

	--breathe-text: #0f2434;
	--breathe-muted: rgba(15, 36, 52, 0.72);

	--breathe-accent: #1e88e5;
	--breathe-accent-2: #20b7c2;
	--breathe-warn: #f59e0b;

	--breathe-card-bg: rgba(255, 255, 255, 0.88);
	--breathe-border: rgba(15, 36, 52, 0.08);

	color: var(--breathe-text);
	background:
		radial-gradient(1200px 800px at 10% 0%, rgba(32, 183, 194, 0.14), transparent 60%),
		radial-gradient(1100px 700px at 90% 10%, rgba(30, 136, 229, 0.16), transparent 55%),
		linear-gradient(180deg, rgba(240, 250, 255, 1) 0%, rgba(226, 243, 255, 1) 55%, rgba(240, 250, 255, 1) 100%);
	padding: clamp(22px, 4vw, 64px) 0;
}

.breathe-event__container {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 18px;
}

/* Typography */
.breathe-event h1,
.breathe-event h2,
.breathe-event h3 {
	letter-spacing: -0.02em;
}

.breathe-event h1 {
	font-size: clamp(32px, 4.2vw, 52px);
	line-height: 1.05;
	margin: 10px 0 10px;
}

.breathe-event h2 {
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.1;
	margin: 0 0 14px;
}

.breathe-event h3 {
	font-size: 20px;
	line-height: 1.2;
	margin: 0 0 8px;
}

.breathe-event p {
	line-height: 1.65;
}

.breathe-muted {
	color: var(--breathe-muted);
}

/* Sections */
.breathe-section {
	margin: 26px 0;
}

.breathe-card {
	background: var(--breathe-card-bg);
	border: 1px solid var(--breathe-border);
	border-radius: var(--breathe-radius);
	box-shadow: var(--breathe-shadow);
	padding: 22px;
	backdrop-filter: blur(10px);
}

.breathe-media {
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid var(--breathe-border);
	border-radius: var(--breathe-radius);
	box-shadow: var(--breathe-shadow-sm);
	overflow: hidden;
	padding: 0;
}

.breathe-media img,
.breathe-media iframe {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
}

.breathe-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: rgba(30, 136, 229, 0.10);
	border: 1px solid rgba(30, 136, 229, 0.22);
	color: rgba(15, 36, 52, 0.86);
	margin: 0 0 10px;
}

/* Hero */
.breathe-hero__lead {
	font-size: 16px;
	color: var(--breathe-muted);
	margin: 0 0 16px;
}

.breathe-hero__cta {
	gap: 12px;
	flex-wrap: wrap;
}

/* Buttons (scoped) */
.breathe-event .wp-block-button__link {
	border-radius: 999px;
	padding: 12px 18px;
	font-weight: 650;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}

.breathe-event .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 20px rgba(12, 54, 92, 0.14);
}

.breathe-btn--primary .wp-block-button__link {
	background: linear-gradient(135deg, var(--breathe-accent), var(--breathe-accent-2));
	color: #fff;
}

.breathe-btn--ghost .wp-block-button__link,
.breathe-event .wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, 0.70);
	border-color: rgba(15, 36, 52, 0.18);
	color: var(--breathe-text);
}

/* Tabs */
.breathe-tabs {
	padding: 14px;
}

.breathe-tabs__buttons {
	gap: 10px;
	flex-wrap: wrap;
}

.breathe-tab .wp-block-button__link {
	padding: 10px 14px;
	background: rgba(15, 36, 52, 0.04);
	border-color: rgba(15, 36, 52, 0.10);
	color: rgba(15, 36, 52, 0.85);
	box-shadow: none;
}

.breathe-tab .wp-block-button__link:hover {
	background: rgba(30, 136, 229, 0.08);
	border-color: rgba(30, 136, 229, 0.25);
	box-shadow: none;
}

/* Lists */
.breathe-event ul {
	padding-left: 1.2em;
}

.breathe-list--rows {
	list-style: none;
	padding-left: 0 !important;
	margin: 14px 0 0;
}

.breathe-list--rows li {
	margin: 10px 0;
}

.breathe-list--rows li,
.breathe-list--rows li a {
	display: block;
	padding: 14px 16px;
	border-radius: var(--breathe-radius-sm);
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(15, 36, 52, 0.10);
	box-shadow: var(--breathe-shadow-sm);
	color: rgba(15, 36, 52, 0.90);
	text-decoration: none;
}

.breathe-list--rows li a:hover {
	border-color: rgba(30, 136, 229, 0.30);
}

/* Callouts */
.breathe-callout {
	padding: 14px 16px;
	border-radius: var(--breathe-radius-sm);
	margin: 14px 0 0;
	border: 1px solid rgba(30, 136, 229, 0.28);
	background: rgba(30, 136, 229, 0.08);
	color: rgba(15, 36, 52, 0.92);
}

.breathe-callout--warn {
	border-color: rgba(245, 158, 11, 0.38);
	background: rgba(245, 158, 11, 0.10);
}

/* Stats cards */
.breathe-stats {
	gap: 16px;
}

.breathe-stat {
	padding: 18px;
	box-shadow: var(--breathe-shadow-sm);
}

.breathe-stat p {
	margin: 0;
	color: var(--breathe-muted);
}

/* Speaker */
.breathe-speaker {
	gap: 18px;
}

.breathe-speaker .breathe-card {
	box-shadow: var(--breathe-shadow-sm);
}

/* Pricing */
.breathe-pricing {
	gap: 16px;
}

.breathe-price {
	text-align: center;
	padding: 20px;
	box-shadow: var(--breathe-shadow-sm);
}

.breathe-price__amount {
	font-size: 22px;
	font-weight: 750;
	margin: 8px 0 14px;
}

.breathe-price ul {
	margin: 0 0 16px;
	padding-left: 1.1em;
	text-align: left;
	color: var(--breathe-muted);
}

/* Related */
.breathe-related {
	padding: 22px;
}

/* Form (CF7) */
.breathe-form .wpcf7 {
	margin: 0;
}

.breathe-event .wpcf7 input[type="text"],
.breathe-event .wpcf7 input[type="email"],
.breathe-event .wpcf7 input[type="tel"],
.breathe-event .wpcf7 input[type="url"],
.breathe-event .wpcf7 input[type="number"],
.breathe-event .wpcf7 select,
.breathe-event .wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	border-radius: 12px;
	border: 1px solid rgba(15, 36, 52, 0.18);
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.86);
}

.breathe-event .wpcf7 input:focus,
.breathe-event .wpcf7 select:focus,
.breathe-event .wpcf7 textarea:focus {
	outline: 2px solid rgba(30, 136, 229, 0.35);
	border-color: rgba(30, 136, 229, 0.35);
}

.breathe-event .wpcf7 input[type="submit"],
.breathe-event .wpcf7 button,
.breathe-event .wpcf7 .wpcf7-submit {
	border-radius: 999px;
	padding: 12px 18px;
	border: 1px solid transparent;
	background: linear-gradient(135deg, var(--breathe-accent), var(--breathe-accent-2));
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.breathe-event .wpcf7 input[type="submit"]:hover,
.breathe-event .wpcf7 button:hover,
.breathe-event .wpcf7 .wpcf7-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 20px rgba(12, 54, 92, 0.14);
}

/* Map iframe inside HTML block */
.breathe-map iframe {
	width: 100% !important;
	border: 0 !important;
	border-radius: var(--breathe-radius);
}

/* =========================
   Compatibility layer (v0.2.x markup)
   If a post was created before v0.3.0, it uses event-* classes.
   These rules map old classes to the new look so you don't need to re-edit content.
========================= */

.breathe-event .event-section {
	margin: 26px 0;
}

.breathe-event .event-hero,
.breathe-event .event-anchors {
	background: var(--breathe-card-bg);
	border: 1px solid var(--breathe-border);
	border-radius: var(--breathe-radius);
	box-shadow: var(--breathe-shadow);
	padding: 22px;
	backdrop-filter: blur(10px);
}

.breathe-event .event-hero__rubric {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: rgba(30, 136, 229, 0.10);
	border: 1px solid rgba(30, 136, 229, 0.22);
	color: rgba(15, 36, 52, 0.86);
	margin: 0 0 10px;
}

.breathe-event .event-hero__lead {
	color: var(--breathe-muted);
}

.breathe-event .event-anchors {
	padding: 14px;
}

.breathe-event .event-anchors__buttons {
	gap: 10px;
	flex-wrap: wrap;
}

.breathe-event .event-anchors__buttons .wp-block-button__link {
	padding: 10px 14px;
	background: rgba(15, 36, 52, 0.04);
	border-color: rgba(15, 36, 52, 0.10);
	color: rgba(15, 36, 52, 0.85);
	box-shadow: none;
}

.breathe-event .event-anchors__buttons .wp-block-button__link:hover {
	background: rgba(30, 136, 229, 0.08);
	border-color: rgba(30, 136, 229, 0.25);
	box-shadow: none;
}

.breathe-event .event-callout {
	padding: 14px 16px;
	border-radius: var(--breathe-radius-sm);
	margin: 14px 0 0;
	border: 1px solid rgba(30, 136, 229, 0.28);
	background: rgba(30, 136, 229, 0.08);
	color: rgba(15, 36, 52, 0.92);
}

/* List rows in old sections */
.breathe-event .event-techniques ul,
.breathe-event .event-benefits ul,
.breathe-event .event-articles ul {
	list-style: none;
	padding-left: 0 !important;
	margin: 14px 0 0;
}

.breathe-event .event-techniques ul li,
.breathe-event .event-benefits ul li,
.breathe-event .event-articles ul li {
	margin: 10px 0;
}

.breathe-event .event-techniques ul li,
.breathe-event .event-benefits ul li,
.breathe-event .event-articles ul li,
.breathe-event .event-techniques ul li a,
.breathe-event .event-benefits ul li a,
.breathe-event .event-articles ul li a {
	display: block;
	padding: 14px 16px;
	border-radius: var(--breathe-radius-sm);
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(15, 36, 52, 0.10);
	box-shadow: var(--breathe-shadow-sm);
	color: rgba(15, 36, 52, 0.90);
	text-decoration: none;
}

.breathe-event .event-articles ul li a:hover,
.breathe-event .event-techniques ul li a:hover {
	border-color: rgba(30, 136, 229, 0.30);
}

/* Old format / price cards */
.breathe-event .format-card,
.breathe-event .price-card,
.breathe-event .event-apply,
.breathe-event .event-contacts,
.breathe-event .event-map {
	background: var(--breathe-card-bg);
	border: 1px solid var(--breathe-border);
	border-radius: var(--breathe-radius);
	box-shadow: var(--breathe-shadow-sm);
	padding: 20px;
}

.breathe-event .price-card__price {
	font-size: 22px;
	font-weight: 750;
	margin: 8px 0 14px;
}

/* Old banner image rounding */
.breathe-event .event-banner img,
.breathe-event .event-leader img {
	border-radius: var(--breathe-radius);
}

/* Mobile tweaks */
@media (max-width: 640px) {
	.breathe-card {
		padding: 18px;
	}
	.breathe-tabs {
		padding: 12px;
	}
}
