/*******************************************************
 * BAANNNG · Agenda - Shortcode Styles
 * Estilos para o shortcode [agenda_eventos_home]
 *******************************************************/

/* Cores definidas */
:root {
	--agenda-red: #BA2229;
	--agenda-black: #1A1919;
	--agenda-white: #FFFFFF;
	--agenda-light-gray: #f0f0f0;
	--agenda-medium-gray: #999999;
	--agenda-dark-gray: #666666;
}

/* Wrapper Principal */
.agenda-home-wrapper {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	background: var(--agenda-white);
}

/* Header com título e navegação */
.agenda-home-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
	padding: 30px 20px 20px;
	background: var(--agenda-white);
}

.agenda-header-left {
	display: flex;
	flex-direction: row;
	gap: 20px;
}
.agenda-titulo-evento,
.agenda-titulo-evento a,
.agenda-titulo-evento a:hover {
	font-family: "Exo 2", sans-serif;
	font-size: 3rem;
	font-weight: 500;
	line-height: 1.2;
	padding: 15px 0px;
	text-decoration: none;
	transition: all 0.3s ease;
}
.agenda-home-title {
	font-size: 48px;
	font-weight: 500;
	color: var(--agenda-black);
	margin: 0;
	line-height: 1.1;
}

.agenda-home-nav {
	display: flex;
	gap: 10px;
	align-items: center;
}

.agenda-nav-btn {
	background: none !important;
	border: none;
	font-size: 14px;
	font-weight: 500;
	color: var(--agenda-dark-gray) !important;
	text-transform: uppercase;
	cursor: pointer;
	padding: 5px 10px !important;
	position: relative;
	transition: color 0.3s ease;
}

.agenda-nav-btn:hover {
	color: var(--agenda-red) !important;
}

.agenda-nav-btn.active {
	color: var(--agenda-black);
	font-weight: 600;
}

/* Animação da linha no hover */
.agenda-nav-btn::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%) scaleX(0);
	width: 24px;
	height: 2px;
	background: var(--agenda-red);
	transition: transform 0.3s ease;
}

.agenda-nav-btn:hover::after {
	transform: translateX(-50%) scaleX(1);
}

.agenda-nav-btn.active::after {
	transform: translateX(-50%) scaleX(1);
}

/* Versão com 3px de espessura - descomente se preferir */
/*
.agenda-nav-btn::after {
	height: 3px;
}
*/

.agenda-header-right {
	display: flex;
	align-items: flex-start;
}

.agenda-ver-todos {
	font-size: 14px;
	font-weight: 600;
	color: var(--agenda-dark-gray);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: color 0.3s ease;
}

.agenda-ver-todos:hover {
	color: var(--agenda-red);
}

.agenda-arrow {
	font-size: 16px;
	font-weight: bold;
}

/* Container de Colunas */
.agenda-home-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding: 0 20px;
}

/* Coluna Esquerda - Evento em Destaque */
.agenda-home-column-left {
	background: var(--agenda-white);
}

.agenda-home-destaque {
	background: var(--agenda-white);
	overflow: hidden;
}

.agenda-destaque-imagem-container {
	position: relative;
	width: 100%;
}

.agenda-destaque-imagem-container img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.agenda-destaque-imagem-container .agenda-no-image {
	width: 100%;
	height: 100%;
	font-family: "Exo 2", sans-serif;
	font-size: 24px;
	text-align: center;
	margin-left: -9rem!important;
	display: flex;
	align-items: center !important;
	justify-content: center !important;
	background: var(--agenda-light-gray);
	color: var(--agenda-medium-gray);
}

/* Banner preto sobreposto - Grande */
.agenda-event-banner {
	position: absolute;
	top: 0;
	right: 0;
	width: 200px;
	height: 100%;
	background: var(--agenda-black);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 30px 20px;
	color: var(--agenda-white);
}

.agenda-banner-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

.agenda-banner-top {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.agenda-banner-event-name {
	display: block;
	margin-bottom: 5px;
}

.agenda-banner-middle {
	text-align: center;
}

.agenda-banner-dates {
	display: block;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 10px;
}

.agenda-banner-year {
	display: block;
	font-size: 24px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.agenda-banner-bottom {
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.agenda-destaque-info {
	margin-top: 20px;
	padding: 0px;
}

.agenda-destaque-meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 15px;
	font-family: "Exo 2", sans-serif;
}

.agenda-categoria {
	background-color: var(--agenda-red);
	width: fit-content;
	padding: 5px 10px;
	font-size: 14px;
	font-weight: bold;
	color: var(--agenda-white);
	text-transform: uppercase;
	margin-right: 20px;
}

.agenda-data-evento {
	font-size: 14px;
	color: var(--agenda-black);
	font-weight: 500;
	text-transform: uppercase;
}

.agenda-pais {
	font-size: 14px;
	color: var(--agenda-black);
}

.agenda-destaque-excerpt {
	font-family: "Inter", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--agenda-black);
	margin-top: 10px;
	margin-bottom: 20px;
}

.agenda-destaque-actions {
	text-align: left;
}
.agenda-destaque-actions a {
	background: none;
	border: none;
	border-radius: 0;
}

.agenda-btn-saber-mais {
    background: none;
    font-family: "Exo 2", sans-serif !important;
    color: var(--agenda-black);
    display: inline-block;
    font-size: 16px;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: color 0.25s ease;
}

.agenda-btn-saber-mais:hover {
	color: var(--agenda-red);
}

/* Coluna Direita - 3 Eventos */
.agenda-home-column-right {
	background: var(--agenda-white);
	display: flex;
	height: 100%;
}

.agenda-home-anteriores {
	display: flex;
	flex-direction: column;
	/* gap: 25px; */
	justify-content: space-between;
	align-content: space-between;
	flex: 1;
	margin: 0;
}

.agenda-anterior-item {
	background: var(--agenda-white);
}

.agenda-anterior-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.agenda-anterior-imagem-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.agenda-anterior-imagem-container img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top;
}

.agenda-anterior-imagem-container .agenda-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--agenda-medium-gray);
	color: var(--agenda-medium-gray);
	font-size: 10px;
}

/* Banner preto pequeno sobreposto */
.agenda-event-banner-small {
	position: absolute;
	top: 0;
	right: 0;
	width: 60px;
	height: 100%;
	background: var(--agenda-black);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 10px 8px;
	color: var(--agenda-white);
}

.agenda-banner-content-small {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	text-align: center;
}

.agenda-banner-top-small {
	font-size: 8px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.1;
}

.agenda-banner-event-name-small {
	display: block;
}

.agenda-banner-middle-small {
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.agenda-banner-dates-small {
	display: block;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.2;
}

.agenda-banner-bottom-small {
	font-size: 7px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.1;
}

.agenda-anterior-info {
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.agenda-anterior-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 10px;
	font-family: "Exo 2", sans-serif;
}

.agenda-categoria-pill {
	display: inline-block;
	background: var(--agenda-red);
	color: var(--agenda-white);
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	width: fit-content;
}

.agenda-data-evento-small {
	font-size: 12px;
	margin-top: 10px;
	text-transform: uppercase;
	color: var(--agenda-black);
	font-weight: 500;
}

.agenda-pais-small {
	background-color: var(--agenda-white);
	margin-bottom: 12px;
	text-transform: uppercase;
	font-size: 10px;
	font-weight: 500;
	color: var(--agenda-black);
}
h3.agenda-anterior-titulo a,
h3.agenda-anterior-titulo a:hover {
	font-family: "Exo 2", sans-serif;
	font-weight: 600;
	text-decoration: none;
}

.agenda-anterior-titulo {
	font-size: 18px;
	margin: 0 0 10px 0;
	line-height: 1.2;
	text-transform: uppercase;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.agenda-anterior-titulo a {
    color: var(--agenda-black);
    text-decoration: none;
    transition: color 0.25s ease;
}

.agenda-anterior-titulo a:hover {
	color: var(--agenda-red);
}

.agenda-anterior-actions {
	text-align: left;
}

.agenda-btn-saber-mais-small {
    font-size: 13px;
    font-weight: 600;
    color: var(--agenda-black);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}


.agenda-anterior-divider {
	margin: 0 !important;
	width: 100%;
	height: 1px !important;
	background: #dbdbdb;
}

/* Links gerais */
a {
	color: var(--agenda-red);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Estado de loading */
.agenda-home-loading {
	text-align: center;
	padding: 40px;
	color: var(--agenda-black);
}

.agenda-spinner {
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 4px solid var(--agenda-light-gray);
	border-top: 4px solid var(--agenda-red);
	border-radius: 50%;
	animation: agenda-spin 1s linear infinite;
	margin-bottom: 10px;
}

@keyframes agenda-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
	.agenda-home-columns {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.agenda-home-header {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.agenda-anterior-content {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.agenda-anterior-imagem {
		width: 100%;
		height: 200px;
	}

	.agenda-anterior-info {
		padding: 15px;
	}
}

/* Mensagem de nenhum evento */
.agenda-home-no-events {
	text-align: center;
	padding: 40px;
	color: var(--agenda-black);
	font-size: 18px;
}
.agenda-anterior-item:last-child .agenda-anterior-divider {
    display: none;
}