/* ── Google Calendar Eventos – Estilos ───────────────────────────────────── */

/* ── Container principal (filtro + itens + paginação) ────────────────────── */

.gce-container {
	width: 100%;
}

/* ── Filtro de mês ───────────────────────────────────────────────────────── */

.gce-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gce-filter-btn {
	padding: 8px 18px;
	border: 1px solid rgba(15, 23, 69, 0.25);
	border-radius: 6px;
	background: transparent;
	color: #0F1745;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.gce-filter-btn:hover {
	background: rgba(15, 23, 69, 0.08);
	border-color: rgba(15, 23, 69, 0.4);
}

.gce-filter-btn.gce-filter-active {
	background: #0F1745;
	color: #ffffff;
	border-color: #0F1745;
}

/* ── Paginação ───────────────────────────────────────────────────────────── */

.gce-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 24px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gce-page-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid rgba(15, 23, 69, 0.2);
	border-radius: 6px;
	background: transparent;
	color: #0F1745;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.gce-page-btn:hover:not(:disabled) {
	background: rgba(15, 23, 69, 0.08);
}

.gce-page-btn.gce-page-active {
	background: #0F1745;
	color: #ffffff;
	border-color: #0F1745;
}

.gce-page-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.gce-page-prev,
.gce-page-next {
	font-size: 18px;
	line-height: 1;
}

/* ── Mensagem vazia ──────────────────────────────────────────────────────── */

.gce-empty-message {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	color: #ffffff;
	margin: 0;
	padding: 40px 20px;
	text-align: center;
	width: 100%;
}

/* ── Container externo (imagem de fundo + sombra) ────────────────────────── */

.gce-outer {
	position: relative;
	display: flex;
	flex-direction: row;
	width: 100%;
	min-height: 495px;
	background-image: url('../8c952c5f048186522942e80e1d5022ed1f75fda1.png');
	background-size: cover;
	background-position: center right;
	box-shadow: 0px 6px 5.9px rgba(0, 0, 0, 0.17);
	border-radius: 6px;
	overflow: hidden;
	box-sizing: border-box;
}

/* ── Painel azul (sólido) ────────────────────────────────────────────────── */

.gce-wrapper {
	position: relative;
	width: 62%;
	min-height: 495px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 40px 22px;
	gap: 36px;
	background: #0F1745;
	box-sizing: border-box;
	flex-shrink: 0;
}

/* ── Linha de evento (Frame 6) ───────────────────────────────────────────── */

.gce-event-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0px;
	gap: 15px;
	width: 100%;
	min-height: 114px;
	flex: none;
	flex-grow: 0;
}

/* ── Badge de data (Frame 22) ────────────────────────────────────────────── */

.gce-date-badge {
	width: 109px;
	min-width: 109px;
	height: 114px;
	background: #B7542C;
	border-radius: 8px;
	flex: none;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Centralizador interno do badge */
.gce-date-badge-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Mês */
.gce-month {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	text-align: center;
	letter-spacing: -0.04em;
	color: #FFFFFF;
}

/* Dia */
.gce-day {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 59px;
	line-height: 1;
	text-align: center;
	letter-spacing: -0.04em;
	color: #FFFFFF;
}

/* ── Informações do evento (Frame 2 direito) ─────────────────────────────── */

.gce-event-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 0px;
	gap: 10px;
	flex: 1;
	min-width: 0;
	order: 1;
}

/* Título */
.gce-event-title {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-style: normal;
	font-weight: 600;
	font-size: 20px;
	line-height: 150%;
	color: #FFFFFF;
	text-decoration: none;
	order: 0;
	word-break: break-word;
}

.gce-event-title:hover {
	text-decoration: underline;
}

/* Horário */
.gce-event-time {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 150%;
	color: #FFFFFF;
	display: block;
	order: 1;
}

/* Local */
.gce-event-location {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 150%;
	color: #cccccc;
	display: block;
	order: 2;
}

/* ── Cursor pointer nas linhas clicáveis ─────────────────────────────────── */

.gce-event-trigger {
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.gce-event-trigger:hover {
	opacity: 0.85;
}

/* ── Modal ───────────────────────────────────────────────────────────────── */

.gce-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
}

.gce-modal--open {
	display: flex;
}

.gce-no-scroll {
	overflow: hidden;
}

/* Overlay escuro */
.gce-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(3px);
}

/* Caixa do modal */
.gce-modal-box {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: 16px;
	background: rgba(15, 23, 69, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0px 12px 32px rgba(0, 0, 0, 0.45);
	overflow: hidden;
	animation: gce-modal-in 0.2s ease;
}

@keyframes gce-modal-in {
	from { opacity: 0; transform: translateY(16px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Botão fechar */
.gce-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
	z-index: 1;
	transition: color 0.15s;
}

.gce-modal-close:hover {
	color: #ffffff;
}

/* 1. Barra de data no topo do modal */
.gce-modal-date-bar {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	padding: 24px 28px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gce-modal-badge {
	flex-shrink: 0;
}

.gce-modal-date-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.gce-modal-fulldate {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.5;
	color: #ffffff;
	text-transform: capitalize;
}

.gce-modal-time-inline {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.6);
}

/* 2. Imagem do evento */
.gce-modal-image {
	width: 100%;
	max-height: 220px;
	overflow: hidden;
	background: #0a1035;
}

.gce-modal-image img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

/* 3/4/5. Body do modal (título + horário + descrição) */
.gce-modal-body {
	padding: 22px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gce-modal-title {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.35;
	color: #ffffff;
	margin: 0 0 4px;
	padding: 0;
	border: none;
	word-break: break-word;
}

.gce-modal-row {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
}

.gce-modal-description {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	word-break: break-word;
}

.gce-modal-description a {
	color: #B7542C;
}

/* Botão CTA */
.gce-modal-btn {
	display: inline-block;
	margin-top: 4px;
	padding: 11px 24px;
	background: #B7542C;
	color: #ffffff;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s;
	align-self: flex-start;
}

.gce-modal-btn:hover {
	background: #9e4424;
	color: #ffffff;
	text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* ── Layout Cards ────────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════════ */

.gce-cards-wrapper {
	display: grid;
	grid-template-columns: repeat(var(--gce-columns, 3), 1fr);
	gap: 20px;
	width: 100%;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Card individual */
.gce-card {
	position: relative;
	border-radius: 6px;
	box-shadow: 0px 6px 5.9px rgba(0, 0, 0, 0.17);
	overflow: hidden;
	cursor: pointer;
	background-color: #0F1745;
	background-size: cover;
	background-position: center center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gce-card:hover {
	transform: translateY(-2px);
	box-shadow: 0px 10px 16px rgba(0, 0, 0, 0.22);
}

.gce-card:focus-visible {
	outline: 2px solid #B7542C;
	outline-offset: 2px;
}

/* Overlay azul-escuro */
.gce-card-overlay {
	display: flex;
	align-items: center;
}

/* Conteúdo do card */
.gce-card-content {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	width: 100%;
	box-sizing: border-box;
}

/* Badge de data dentro do card */
.gce-card-badge {
	width: 72px;
	min-width: 72px;
	height: 76px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gce-card-badge .gce-date-badge-inner {
	position: static;
	width: auto;
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.gce-card-badge .gce-month {
	width: auto;
	height: auto;
	font-size: 16px;
	line-height: 1.3;
}

.gce-card-badge .gce-day {
	width: auto;
	height: auto;
	font-size: 36px;
	line-height: 1;
	justify-content: center;
}

/* Informações textuais */
.gce-card-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.gce-card-title {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 140%;
	color: #ffffff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.gce-card-description {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 140%;
	color: rgba(255, 255, 255, 0.7);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.gce-card-time {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.6);
}

.gce-card-location {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.5);
}

/* ── Responsivo ──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.gce-wrapper {
		width: 100%;
		padding: 32px 16px;
	}

	.gce-date-badge {
		width: 80px;
		min-width: 80px;
		height: 88px;
	}

	.gce-month {
		font-size: 18px;
	}

	.gce-day {
		font-size: 40px;
	}

	.gce-event-title,
	.gce-event-time {
		font-size: 16px;
	}
}

/* Cards: tablet (2 colunas) */
@media (max-width: 900px) {
	.gce-cards-wrapper {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Cards: mobile (1 coluna) */
@media (max-width: 600px) {
	.gce-cards-wrapper {
		grid-template-columns: 1fr;
	}
}
