/* next-concert-popup.css
   Modal shown on index.html with the next upcoming concert.
   Vanilla CSS, matches the Forty theme palette (#242943 / #9bf1ff). */

.ncp-overlay {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(17, 17, 17, 0.75);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ncp-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.ncp-dialog {
	position: relative;
	display: flex;
	flex-direction: row;
	width: 100%;
	max-width: 760px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: hidden;
	background: #242943;
	border: 1px solid rgba(212, 212, 255, 0.1);
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	transform: translateY(20px) scale(0.97);
	transition: transform 0.3s ease;
}

.ncp-overlay.is-visible .ncp-dialog {
	transform: none;
}

.ncp-image {
	flex: 0 0 45%;
	min-height: 0;
	background: #111111;
}

.ncp-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.ncp-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2.25rem 2rem;
	overflow-y: auto;
	color: #ffffff;
	font-size: 1rem;
	line-height: 1.5;
}

.ncp-kicker {
	margin: 0 0 0.5rem 0;
	color: #9bf1ff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ncp-title {
	margin: 0 0 0.75rem 0;
	font-family: 'New Rocker', cursive;
	font-size: 2rem;
	font-weight: normal;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: none;
}

.ncp-meta {
	margin: 0 0 1rem 0;
	color: rgba(244, 244, 255, 0.85);
	font-weight: 600;
}

.ncp-text {
	margin: 0 0 1.5rem 0;
	color: rgba(244, 244, 255, 0.75);
}

.ncp-cta {
	display: inline-block;
	align-self: flex-start;
	padding: 0.85em 1.8em;
	border: 0;
	border-radius: 0;
	background: #9bf1ff;
	color: #242943 !important;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-decoration: none;
	text-transform: uppercase;
	border-bottom: 0 !important;
	transition: background-color 0.2s ease;
}

.ncp-cta:hover,
.ncp-cta:focus {
	background: #53e3fb;
}

.ncp-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.6);
	box-shadow: none;
	color: #ffffff;
	font-size: 1.6rem;
	line-height: 40px;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ncp-close:hover,
.ncp-close:focus {
	background: rgba(17, 17, 17, 0.9);
}

.ncp-cta:focus-visible,
.ncp-close:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* Mobile: stack image on top of the text */
@media screen and (max-width: 736px) {
	.ncp-dialog {
		flex-direction: column;
		max-width: 420px;
	}

	.ncp-image {
		flex: 0 0 auto;
		height: 38vh;
		height: 38dvh;
		max-height: 300px;
	}

	.ncp-body {
		padding: 1.5rem 1.25rem 1.75rem;
		text-align: center;
	}

	.ncp-title {
		font-size: 1.6rem;
	}

	.ncp-cta {
		align-self: stretch;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ncp-overlay,
	.ncp-dialog {
		transition: none;
	}
}

body.ncp-open {
	overflow: hidden;
}

/* programacion.html: highlight the concert reached from the popup */
#two > section.ncp-highlight {
	animation: ncp-pulse 2.2s ease-out 1;
}

@keyframes ncp-pulse {
	0%   { box-shadow: inset 0 0 0 4px #9bf1ff; }
	70%  { box-shadow: inset 0 0 0 4px #9bf1ff; }
	100% { box-shadow: inset 0 0 0 0 rgba(155, 241, 255, 0); }
}
