/* NGX | Explorador de eventos (página estática pages/eventos.html) */
/* Extraído de ngx-events-public.css (plugin NGX Eventos) para reaproveitar exatamente o mesmo visual do WordPress. */

/**
 * NGX Eventos — estilos do frontend (listagem, card, página individual).
 *
 * Todo o CSS fica isolado dentro do prefixo ".ngx-events" para não vazar
 * para o restante do site nem sobrescrever estilos globais do tema.
 */

.ngx-events,
.ngx-events-page {
	--ngx-events-primary: #f2994a;
	--ngx-events-secondary: #161616;
	--ngx-events-accent: #ffc72c;
	--ngx-events-text: #1a1a1a;
	--ngx-events-muted: #6b6b6b;
	--ngx-events-bg: #ffffff;
	--ngx-events-border: #ececec;
	--ngx-events-radius: 16px;
	--ngx-events-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	--ngx-events-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);

	box-sizing: border-box;
	color: var(--ngx-events-text);
	font-family: inherit;
	overflow-x: hidden;
}

.ngx-events *,
.ngx-events *::before,
.ngx-events *::after,
.ngx-events-page *,
.ngx-events-page *::before,
.ngx-events-page *::after {
	box-sizing: inherit;
}

.ngx-events-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

.ngx-events-container--full {
	max-width: none;
	padding-inline: 40px;
}

/* ---------- Explorador de eventos (Lista / Mês / Dia) ---------- */

.ngx-events-explorer {
	padding: 32px 0 72px;
}

.ngx-events-explorer__toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.ngx-events-explorer__search-field {
	position: relative;
	flex: 1 1 260px;
	min-width: 200px;
}

.ngx-events-explorer__search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--ngx-events-muted);
	pointer-events: none;
}

.ngx-events-explorer__search-input {
	width: 100%;
	padding: 13px 16px 13px 48px;
	border: 1px solid var(--ngx-events-border);
	border-radius: 12px;
	font-size: 1.52rem;
	background: var(--ngx-events-bg);
	color: var(--ngx-events-text);
}

.ngx-events-explorer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 24px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 1.472rem;
	border: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ngx-events-explorer__button--primary {
	background: var(--ngx-events-primary);
	color: #141827;
	box-shadow: 0 6px 18px rgba(255, 122, 26, 0.3);
}

.ngx-events-explorer__button--primary:hover {
	transform: translateY(-2px);
}

.ngx-events-explorer__button--secondary {
	background: #fff;
	border-color: var(--ngx-events-secondary);
	color: #141827;
}

.ngx-events-explorer__button--secondary:hover {
	background: var(--ngx-events-secondary);
	color: #fff;
}

.ngx-events-explorer__tabs {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	background: #f2f2f2;
	border-radius: 999px;
	margin-left: auto;
}

.ngx-events-explorer__tab {
	border: 0;
	background: transparent;
	padding: 9px 20px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1.408rem;
	color: var(--ngx-events-muted);
	cursor: pointer;
}

.ngx-events-explorer__tab.is-active {
	background: var(--ngx-events-secondary);
	color: #fff;
}

.ngx-events-explorer__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 8px;
}

.ngx-events-explorer__filter-field {
	flex: 1 1 180px;
	min-width: 0;
}

.ngx-events-explorer__select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--ngx-events-border);
	border-radius: 10px;
	font-size: 1.44rem;
	background: #fff;
	color: var(--ngx-events-text);
}

.ngx-events-explorer__panel {
	display: none;
}

.ngx-events-explorer__panel.is-active {
	display: block;
}

.ngx-events-explorer__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 24px 0 18px;
}

.ngx-events-explorer__nav-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--ngx-events-border);
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ngx-events-secondary);
	flex-shrink: 0;
}

.ngx-events-explorer__nav-btn:hover {
	background: #f5f5f5;
	border-color: var(--ngx-events-secondary);
}

.ngx-events-explorer__nav-btn svg {
	width: 18px;
	height: 18px;
}

.ngx-events-explorer__today-btn {
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid var(--ngx-events-border);
	background: #fff;
	font-weight: 700;
	font-size: 1.36rem;
	color: var(--ngx-events-secondary);
	cursor: pointer;
}

.ngx-events-explorer__today-btn:hover {
	border-color: var(--ngx-events-secondary);
}

.ngx-events-explorer__month-label {
	border: 0;
	background: none;
	padding: 4px 8px;
	font-size: 2.08rem;
	font-weight: 800;
	color: var(--ngx-events-secondary);
	text-transform: capitalize;
	cursor: pointer;
}

.ngx-events-explorer__day-label {
	font-size: 2.08rem;
	font-weight: 800;
	color: var(--ngx-events-secondary);
	text-transform: capitalize;
}

.ngx-events-explorer__month-picker[hidden] {
	display: none;
}

.ngx-events-explorer__month-picker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 14px;
	margin-bottom: 18px;
	background: #fafafa;
	border: 1px solid var(--ngx-events-border);
	border-radius: 12px;
}

.ngx-events-explorer__month-picker select {
	padding: 9px 12px;
	border-radius: 8px;
	border: 1px solid #dcdcdc;
	background: #fff;
}

/* ---------- Lista ---------- */

.ngx-events-explorer__month-heading {
	font-size: 1.76rem;
	font-weight: 800;
	color: var(--ngx-events-secondary);
	text-transform: capitalize;
	margin: 28px 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--ngx-events-border);
}

.ngx-events-explorer__month-heading:first-child {
	margin-top: 0;
}

.ngx-events-explorer__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ngx-events-explorer-row {
	position: relative;
	border-radius: var(--ngx-events-radius);
	background: #f3f3f3;
	box-shadow: var(--ngx-events-shadow);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ngx-events-explorer-row:hover {
	box-shadow: var(--ngx-events-shadow-hover);
	transform: translateY(-2px);
}

.ngx-events-explorer-row__link {
	display: grid;
	grid-template-columns: 64px 1fr 200px;
	gap: 20px;
	align-items: center;
	padding: 20px 24px;
	text-decoration: none;
	color: inherit;
	border-left: 4px solid var(--ngx-events-primary);
}

.ngx-events-explorer-row__date {
	text-align: center;
}

.ngx-events-explorer-row__weekday {
	display: block;
	font-size: 1.152rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	color: var(--ngx-events-primary);
}

.ngx-events-explorer-row__day {
	display: block;
	font-size: 3.04rem;
	font-weight: 800;
	color: var(--ngx-events-secondary);
	line-height: 1.15;
}

.ngx-events-explorer-row__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.ngx-events-explorer-row__badge--featured {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ngx-events-accent);
	color: #141827;
	font-size: 1.088rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ngx-events-explorer-row__range {
	font-size: 1.36rem;
	font-weight: 700;
	color: var(--ngx-events-primary);
}

.ngx-events-explorer-row__title {
	margin: 0 0 6px;
	font-size: 1.84rem;
	font-weight: 800;
	color: var(--ngx-events-secondary);
}

.ngx-events-explorer-row__title-link {
	color: inherit;
	text-decoration: none;
}

/* "Stretched link": o título é o link principal e cobre a linha inteira
   (o card todo continua clicável), sem aninhar <a> dentro de <a> — o que
   quebraria o HTML. Links de verdade dentro da linha (ex.: "Site do
   evento") recebem position + z-index para ficarem clicáveis por cima
   dessa camada invisível. */
.ngx-events-explorer-row__title-link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ngx-events-explorer-row__venue {
	margin: 0 0 6px;
	font-size: 1.408rem;
	font-weight: 700;
	color: var(--ngx-events-text);
}

.ngx-events-explorer-row__excerpt {
	margin: 0;
	font-size: 1.408rem;
	color: var(--ngx-events-muted);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ngx-events-explorer-row__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
}

.ngx-events-explorer-row__booth {
	font-size: 1.36rem;
	font-weight: 700;
	color: var(--ngx-events-primary);
}

.ngx-events-explorer-row__links-divider {
	color: var(--ngx-events-border);
	font-size: 1.36rem;
}

.ngx-events-explorer-row__site {
	position: relative;
	z-index: 1;
	font-size: 1.36rem;
	font-weight: 700;
	color: var(--ngx-events-primary);
	text-decoration: underline;
}

.ngx-events-explorer-row__site:hover {
	color: var(--ngx-events-secondary);
}

.ngx-events-explorer-row__media {
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #f1f1f1;
}

.ngx-events-explorer-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ngx-events-explorer-row__media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f2f2f2, #e5e5e5);
}

.ngx-events-explorer__load-more-wrap {
	text-align: center;
	margin-top: 28px;
}

/* ---------- Mês ---------- */

.ngx-events-explorer-calendar {
	border: 1px solid var(--ngx-events-border);
	border-radius: var(--ngx-events-radius);
	overflow: hidden;
	background: var(--ngx-events-bg);
}

.ngx-events-explorer-calendar__row {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ngx-events-explorer-calendar__row--header {
	background: #fafafa;
	border-bottom: 1px solid var(--ngx-events-border);
}

.ngx-events-explorer-calendar__weekday {
	padding: 10px 6px;
	text-align: center;
	font-size: 1.152rem;
	font-weight: 800;
	color: var(--ngx-events-muted);
	text-transform: uppercase;
}

.ngx-events-explorer-calendar__cell {
	min-height: 112px;
	padding: 8px;
	border-right: 1px solid var(--ngx-events-border);
	border-bottom: 1px solid var(--ngx-events-border);
	display: flex;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
}

.ngx-events-explorer-calendar__row .ngx-events-explorer-calendar__cell:last-child {
	border-right: 0;
}

.ngx-events-explorer-calendar__cell:hover {
	background: #fafafa;
}

.ngx-events-explorer-calendar__cell.is-outside {
	background: #fcfcfc;
	opacity: 0.5;
}

.ngx-events-explorer-calendar__cell.is-today {
	background: #fff7e8;
}

.ngx-events-explorer-calendar__cell.is-today .ngx-events-explorer-calendar__day-number {
	background: var(--ngx-events-primary);
	color: #fff;
}

.ngx-events-explorer-calendar__day-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 1.36rem;
	font-weight: 700;
	color: var(--ngx-events-secondary);
}

.ngx-events-explorer-calendar__pill {
	display: block;
	font-size: 1.152rem;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 6px;
	background: #fff;
	border-left: 3px solid var(--ngx-events-primary);
	color: var(--ngx-events-secondary);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ngx-events-explorer-calendar__pill:hover {
	background: var(--ngx-events-secondary);
	color: #fff;
}

.ngx-events-explorer-calendar__more {
	align-self: flex-start;
	border: 0;
	background: none;
	padding: 0;
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--ngx-events-primary);
	cursor: pointer;
}

/* ---------- Dia ---------- */

.ngx-events-explorer__day-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ---------- Especificidade extra contra estilos globais de botão do tema ----------
   Alguns temas/kits do Elementor definem cor de borda/texto de <button> no nível
   global (ex.: cor de acento do kit), com especificidade igual ou maior que uma
   única classe — sobrescrevendo os botões/abas do explorador mesmo já
   configurados corretamente. Este bloco garante as cores certas em qualquer tema,
   seguindo o mesmo padrão já usado nos botões da página individual do evento. */

.ngx-events-explorer .ngx-events-explorer__button--primary {
	background: var(--ngx-events-primary) !important;
	border-color: var(--ngx-events-primary) !important;
	color: #141827 !important;
}

.ngx-events-explorer .ngx-events-explorer__button--secondary {
	background: #fff !important;
	border-color: var(--ngx-events-secondary) !important;
	color: #141827 !important;
}

.ngx-events-explorer .ngx-events-explorer__button--secondary:hover {
	background: var(--ngx-events-secondary) !important;
	color: #fff !important;
}

.ngx-events-explorer .ngx-events-explorer__tab {
	background: transparent !important;
	border: 0 !important;
	color: var(--ngx-events-muted) !important;
}

.ngx-events-explorer .ngx-events-explorer__tab.is-active {
	background: var(--ngx-events-secondary) !important;
	color: #fff !important;
}

.ngx-events-explorer .ngx-events-explorer__today-btn,
.ngx-events-explorer .ngx-events-explorer__nav-btn,
.ngx-events-explorer .ngx-events-explorer__month-label {
	background: #fff !important;
	border-color: var(--ngx-events-border) !important;
	color: var(--ngx-events-secondary) !important;
}

.ngx-events-explorer .ngx-events-explorer__search-input,
.ngx-events-explorer .ngx-events-explorer__select {
	background: #fff !important;
	border-color: var(--ngx-events-border) !important;
	color: var(--ngx-events-text) !important;
}

.ngx-events-explorer .ngx-events-explorer__search-input {
	padding-left: 48px !important;
}

/* ---------- Estados compartilhados (carregando/vazio/erro) ---------- */

.ngx-events-explorer__empty,
.ngx-events-explorer__error {
	text-align: center;
	padding: 48px 16px;
	color: var(--ngx-events-muted);
	font-size: 1.632rem;
}

.ngx-events-explorer__skeleton {
	border-radius: var(--ngx-events-radius);
	background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 37%, #f0f0f0 63%);
	background-size: 400% 100%;
	animation: ngx-events-skeleton 1.4s ease infinite;
	height: 320px;
}

/* ---------- Responsivo ---------- */

/* Tablet: segue o mesmo padrão visual do desktop (cartão em linha com a
   imagem ao lado, filtros lado a lado), só com proporções mais compactas. */
@media (max-width: 991px) {
	.ngx-events-explorer-row__link {
		grid-template-columns: 56px 1fr 150px;
		gap: 16px;
		padding: 18px 20px;
	}

	.ngx-events-explorer__filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ngx-events-explorer-calendar__cell {
		min-height: 90px;
	}
}

@media (max-width: 767px) {
	.ngx-events-explorer__filters {
		grid-template-columns: 1fr;
	}
}

/* Mobile: empilha tudo, campos/botões em 100% de largura, imagem no topo do card. */
@media (max-width: 599px) {
	.ngx-events-explorer__toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.ngx-events-explorer__search-field {
		flex-basis: auto;
	}

	.ngx-events-explorer__tabs {
		margin-left: 0;
		width: 100%;
		justify-content: center;
	}

	.ngx-events-explorer__button,
	.ngx-events-explorer__today-btn {
		width: 100%;
	}

	.ngx-events-explorer__nav {
		flex-wrap: wrap;
	}

	.ngx-events-explorer-row__link {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"date"
			"body";
		gap: 12px;
		padding: 16px 16px 20px;
		text-align: left;
	}

	.ngx-events-explorer-row__media {
		grid-area: media;
		display: block;
		aspect-ratio: 16 / 9;
		margin: -16px -16px 0;
		width: calc(100% + 32px);
	}

	.ngx-events-explorer-row__date {
		grid-area: date;
		display: flex;
		align-items: baseline;
		gap: 6px;
		text-align: left;
	}

	.ngx-events-explorer-row__body {
		grid-area: body;
	}

	.ngx-events-explorer-calendar__weekday {
		font-size: 0.992rem;
		padding: 6px 2px;
	}

	.ngx-events-explorer-calendar__cell {
		min-height: 56px;
		padding: 4px;
	}

	.ngx-events-explorer-calendar__day-number {
		width: 22px;
		height: 22px;
		font-size: 1.2rem;
	}

	.ngx-events-explorer-calendar__pill {
		font-size: 0;
		padding: 0;
		height: 6px;
		border-radius: 3px;
		border-left: 0;
		background: var(--ngx-events-primary);
	}

	.ngx-events-explorer-calendar__more {
		font-size: 0.992rem;
	}
}

/* ---------- Acessibilidade / preferências de movimento ---------- */

@media (prefers-reduced-motion: reduce) {
	.ngx-events-card,
	.ngx-events-single__button,
	.ngx-events__button,
	.ngx-events__skeleton-card,
	.ngx-events-explorer-row,
	.ngx-events-explorer__button,
	.ngx-events-explorer__skeleton {
		transition: none !important;
		animation: none !important;
	}

	.ngx-events-card:hover,
	.ngx-events-explorer-row:hover {
		transform: none;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
