/* Agenda Inteligente — estilos próprios (independente dos plugins globais) */

.agenda-inteligente {
	--agenda-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--agenda-font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--agenda-font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
	--agenda-text-title: clamp(32px, 5vw, 50px);
	--agenda-text-body: clamp(18px, 2.5vw, 24px);
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ── Cabeçalho ── */
.agenda-inteligente-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid #e8e8e8;
}

.agenda-header-column .agenda-inteligente-header {
	flex-direction: column;
}

.agenda-inteligente-subtitulo {
	display: block;
	font-family: var(--agenda-font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.agenda-inteligente-titulo {
	font-family: var(--agenda-font-heading);
	font-size: var(--agenda-text-title);
	font-weight: 400;
	margin: 0;
	line-height: var(--text-title-line-height, 1.15);
}

.agenda-inteligente-header-dir {
	max-width: 320px;
	flex-shrink: 0;
}

.agenda-header-column .agenda-inteligente-header-dir {
	max-width: 100%;
}

.agenda-inteligente-descricao {
	font-family: var(--agenda-font-body);
	font-size: var(--agenda-text-body);
	line-height: var(--text-body-line-height, 1.6);
	margin: 0;
}

/* ── Lista ── */
.agenda-eventos-lista {
	display: flex;
	flex-direction: column;
}

/* ── Layout horizontal (padrão) ── */
.agenda-layout-horizontal .agenda-evento-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 32px;
	padding: 28px 0;
	border-bottom: 1px solid #e8e8e8;
}

.agenda-layout-horizontal .agenda-evento-item:first-child {
	border-top: 1px solid #e8e8e8;
}

/* Botão à esquerda */
.agenda-btn-left.agenda-layout-horizontal .agenda-evento-item {
	grid-template-columns: auto auto 1fr;
}

.agenda-btn-left.agenda-layout-horizontal .agenda-evento-acao {
	order: -1;
}

/* Botão abaixo */
.agenda-btn-bottom.agenda-layout-horizontal .agenda-evento-item {
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
}

.agenda-btn-bottom.agenda-layout-horizontal .agenda-evento-acao {
	grid-column: 1 / -1;
	justify-self: start;
}

/* Sem data — ajuste de colunas */
.agenda-layout-horizontal .agenda-evento-item:not(:has(.agenda-evento-data)) {
	grid-template-columns: 1fr auto;
}

/* ── Layout vertical ── */
.agenda-layout-vertical .agenda-evento-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 28px 0;
	border-bottom: 1px solid #e8e8e8;
}

.agenda-layout-vertical .agenda-evento-item:first-child {
	border-top: 1px solid #e8e8e8;
}

.agenda-layout-vertical .agenda-evento-data {
	flex-direction: row;
	width: auto;
	height: auto;
	padding: 8px 16px;
	gap: 8px;
}

.agenda-layout-vertical .agenda-evento-dia,
.agenda-layout-vertical .agenda-evento-mes {
	margin: 0;
}

/* ── Layout card ── */
.agenda-layout-card .agenda-eventos-lista {
	gap: 16px;
}

.agenda-layout-card .agenda-evento-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	padding: 24px;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
}

.agenda-layout-card .agenda-evento-item:first-child {
	border-top: 1px solid #e8e8e8;
}

.agenda-btn-bottom.agenda-layout-card .agenda-evento-item {
	grid-template-columns: auto 1fr;
}

.agenda-btn-bottom.agenda-layout-card .agenda-evento-acao {
	grid-column: 1 / -1;
}

/* ── Bloco de data ── */
.agenda-evento-data {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	background: #f5f0e8;
	border-radius: 8px;
	flex-shrink: 0;
}

.agenda-evento-dia {
	font-family: var(--agenda-font-mono);
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.agenda-evento-mes {
	font-family: var(--agenda-font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-top: 2px;
}

/* ── Informações ── */
.agenda-evento-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.agenda-evento-label {
	font-family: var(--agenda-font-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.agenda-evento-titulo {
	font-family: var(--agenda-font-heading);
	font-size: clamp(22px, 3.5vw, 36px);
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.agenda-evento-local {
	font-family: var(--agenda-font-body);
	font-size: var(--agenda-text-body);
	line-height: var(--text-body-line-height, 1.6);
}

/* ── Botão ── */
.agenda-evento-acao {
	flex-shrink: 0;
}

.agenda-evento-btn {
	display: inline-block;
	font-family: var(--agenda-font-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	background: #f5c842;
	padding: 14px 28px;
	border-radius: 50px;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
	white-space: nowrap;
}

.agenda-evento-btn:hover {
	opacity: 0.85;
	transform: translateY(-1px);
	text-decoration: none;
}

.agenda-eventos-vazio {
	font-family: var(--agenda-font-body);
	text-align: center;
	padding: 40px 0;
}

/* ── Responsivo ── */
@media (max-width: 768px) {
	.agenda-inteligente-header {
		flex-direction: column;
		gap: 20px;
	}

	.agenda-inteligente-header-dir {
		max-width: 100%;
	}

	.agenda-layout-horizontal .agenda-evento-item,
	.agenda-layout-card .agenda-evento-item {
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		gap: 16px 20px;
	}

	.agenda-layout-horizontal .agenda-evento-data,
	.agenda-layout-card .agenda-evento-data {
		grid-row: span 2;
		width: 60px;
		height: 60px;
	}

	.agenda-evento-dia {
		font-size: 22px;
	}

	.agenda-layout-horizontal .agenda-evento-acao,
	.agenda-layout-card .agenda-evento-acao {
		grid-column: 2;
		justify-self: start;
	}

	.agenda-btn-bottom.agenda-layout-horizontal .agenda-evento-acao,
	.agenda-btn-bottom.agenda-layout-card .agenda-evento-acao {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.agenda-layout-horizontal .agenda-evento-item,
	.agenda-layout-card .agenda-evento-item {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.agenda-layout-horizontal .agenda-evento-data,
	.agenda-layout-card .agenda-evento-data {
		grid-row: auto;
		flex-direction: row;
		width: auto;
		height: auto;
		align-self: flex-start;
	}

	.agenda-evento-dia,
	.agenda-evento-mes {
		font-size: 14px;
		margin: 0;
	}
}
