/**
 * MyBoxOffice — Stili per gli shortcode di visualizzazione evento
 * (frontend, single-mybo_event template + uso in qualsiasi pagina).
 */

.mybo-event-single {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px;
}

.mybo-event-article { display: block; }

.mybo-event-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	margin-bottom: 28px;
}
.mybo-event-cover img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* === Locandina animata (video al posto dell'immagine featured) === */
.mybo-event-cover-video,
video.mybo-event-image.mybo-event-cover-video {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	display: block;
}
.mybo-event-cover-iframe {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	pointer-events: none; /* impedisce di interagire col player (è una locandina) */
}
.mybo-event-cover-iframe iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* === Video play overlay su immagine (mybo-has-video) [usato solo per promo video] === */
.mybo-event-image-wrap {
	position: relative;
	display: inline-block;
	width: 100%;
}
.mybo-event-image-wrap.mybo-has-video img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}
.mybo-video-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	border: 3px solid rgba(255, 255, 255, 0.9);
	cursor: pointer;
	color: #fff;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 6px; /* compensa il triangolo */
	transition: all 0.2s ease;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.mybo-video-play-btn:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: translate(-50%, -50%) scale(1.08);
	border-color: #fff;
}
.mybo-video-play-icon {
	font-family: -apple-system, BlinkMacSystemFont, sans-serif;
	line-height: 1;
}
@media (max-width: 768px) {
	.mybo-video-play-btn { width: 64px; height: 64px; font-size: 22px; border-width: 2px; }
}

/* === Lightbox === */
.mybo-video-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 200000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mybo-video-lightbox.open {
	opacity: 1;
	visibility: visible;
}
.mybo-video-lightbox-inner {
	position: relative;
	width: min(1100px, 100%);
	aspect-ratio: 16 / 9;
	max-height: 100%;
}
.mybo-video-lightbox-inner iframe,
.mybo-video-lightbox-inner video {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 8px;
	background: #000;
}
.mybo-video-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	padding: 0 12px;
	line-height: 1;
}
.mybo-video-lightbox-close:hover { color: #fcd34d; }

/* === Embed inline (shortcode [mybo_event_video] senza lightbox) === */
.mybo-event-video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}
.mybo-event-video-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}
video.mybo-event-video {
	width: 100%;
	height: auto;
	border-radius: 8px;
	background: #000;
}

.mybo-event-intro .mybo-event-category {
	display: inline-block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #6b7280;
	margin-bottom: 6px;
}
.mybo-event-intro .mybo-event-category a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}

.mybo-event-title {
	font-size: 2rem;
	line-height: 1.15;
	margin: 0 0 10px;
}

.mybo-event-meta {
	color: #374151;
	font-size: 15px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-bottom: 12px;
}
.mybo-event-meta .mybo-meta-sep { color: #9ca3af; }

.mybo-event-status {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f3f4f6;
	margin-bottom: 12px;
}
.mybo-event-status.mybo-status-available { background: #dcfce7; color: #166534; }
.mybo-event-status.mybo-status-soldout   { background: #ffedd5; color: #9a3412; }
.mybo-event-status.mybo-status-cancelled { background: #fee2e2; color: #991b1b; }
.mybo-event-status.mybo-status-past      { background: #e5e7eb; color: #4b5563; }
.mybo-event-status.mybo-status-inactive  { background: #f3f4f6; color: #6b7280; }

.mybo-event-price-top {
	font-size: 16px;
	margin-bottom: 14px;
}
.mybo-event-price-from strong {
	font-size: 24px;
	color: #111827;
}

.mybo-event-buy-button,
.mybo-event-cta-top .mybo-event-buy-button {
	display: inline-block;
	padding: 12px 24px;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 8px;
	font-weight: 600;
	font-size: 16px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.mybo-event-buy-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.mybo-event-description-section,
.mybo-event-gallery-section,
.mybo-event-prices-section,
.mybo-event-ticket-form {
	margin-bottom: 32px;
}
.mybo-event-description-section h3,
.mybo-event-gallery-section h3,
.mybo-event-prices-section h3,
.mybo-event-ticket-form h3 {
	font-size: 1.3rem;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e7eb;
}

.mybo-event-description {
	font-size: 16px;
	line-height: 1.65;
	color: #1f2937;
}

.mybo-event-gallery {
	display: grid;
	gap: 8px;
}
.mybo-event-gallery img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	object-fit: cover;
	aspect-ratio: 4/3;
}

.mybo-event-price-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}
.mybo-event-price-list li {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 14px;
	border-bottom: 1px solid #f3f4f6;
}
.mybo-event-price-list li:last-child { border-bottom: none; }
.mybo-event-price-list .mybo-price-main {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}
.mybo-event-price-list .mybo-price-label { color: #374151; }
.mybo-event-price-list .mybo-price-value { font-weight: 600; color: #111827; }
.mybo-event-price-list .mybo-price-recipients {
	display: block;
	font-size: 12px;
	color: #6b7280;
	font-style: italic;
	line-height: 1.4;
}

/* === Card preconfezionata [mybo_event_card] === */
.mybo-event-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mybo-event-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}
.mybo-event-card .mybo-card-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}
.mybo-event-card .mybo-card-body {
	padding: 16px;
}
.mybo-event-card h2 {
	font-size: 1.25rem;
	margin: 6px 0 8px;
	line-height: 1.25;
}
.mybo-event-card .mybo-card-meta-top { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: #6b7280; }
.mybo-event-card .mybo-card-meta     { color: #4b5563; font-size: 14px; margin-bottom: 10px; }
.mybo-event-card .mybo-card-price    { margin: 12px 0; }
.mybo-event-card .mybo-card-cta      { margin-top: 14px; }

/* === Responsive === */
@media (max-width: 768px) {
	.mybo-event-header {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.mybo-event-title { font-size: 1.6rem; }
	.mybo-event-card .mybo-card-image img { height: 160px; }
}
