/* =========================================================
   Bloco/Arquivo de Eventos — timeline
   ========================================================= */
.youin-events { padding-block: 2.4rem 6rem; }
.youin-events-archive { padding-block: 8rem 6rem; }
.youin-events__header,
.youin-events-archive__header { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }

.youin-events__editor-notice {
	text-align: center;
	color: hsl(var(--muted-foreground));
	font-size: .85rem;
	font-style: italic;
	padding: 1.5rem;
	border: 1px dashed hsl(var(--border));
	border-radius: 1rem;
	max-width: 32rem;
	margin: 0 auto;
}

.youin-events__placeholder {
	text-align: center;
	color: hsl(var(--muted-foreground));
	font-size: .9rem;
	padding: 2rem;
	border: 1px dashed hsl(var(--border));
	border-radius: 1rem;
	max-width: 32rem;
	margin: 0 auto;
}
.youin-events__placeholder a { color: hsl(var(--primary)); font-weight: 600; }

/* Zonas: Eventos Futuros / Arquivo */
.youin-events__zone { max-width: 72rem; margin: 0 auto; }
.youin-events__zone + .youin-events__zone { margin-top: 4.5rem; padding-top: 3.5rem; border-top: 1px solid hsl(var(--border)); }

.youin-events__zone-title {
	display: flex;
	align-items: center;
	gap: .75rem;
	font-size: 1.4rem;
	margin-bottom: 2rem;
}
.youin-events__zone--upcoming .youin-events__zone-title { color: hsl(var(--foreground)); }
.youin-events__zone--archive .youin-events__zone-title { color: hsl(var(--muted-foreground)); }
.youin-events__zone-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	padding-inline: .4rem;
	border-radius: 999px;
	background: hsl(var(--secondary));
	color: hsl(var(--foreground));
	font-size: .8rem;
	font-weight: 700;
}
.youin-events__zone--upcoming .youin-events__zone-count { background: hsl(var(--primary) / .15); color: hsl(var(--dark)); }

/* Ano dentro de cada zona */
.youin-events__year { margin-bottom: 3rem; }
.youin-events__year:last-child { margin-bottom: 0; }
.youin-events__year-label {
	display: block;
	font-size: 1.1rem;
	font-weight: 800;
	color: hsl(var(--muted-foreground));
	margin-bottom: 1.25rem;
	padding-bottom: .5rem;
	border-bottom: 2px solid hsl(var(--border));
}

/* Grelha de cartões — responsiva, pensada para mobile (sem scroll horizontal) */
.youin-events__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}
@media (min-width: 560px) { .youin-events__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .youin-events__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1120px) { .youin-events__grid { grid-template-columns: repeat(5, 1fr); } }

/* Cartão individual (o "ícone" com o cartaz) */
.youin-event-card {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	text-decoration: none;
	color: inherit;
}
.youin-event-card__poster {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: .75rem;
	overflow: hidden;
	background: hsl(var(--secondary));
	box-shadow: var(--shadow-card);
	transition: box-shadow .3s ease, transform .3s ease;
}
.youin-event-card:hover .youin-event-card__poster { box-shadow: var(--shadow-elevated); transform: translateY(-4px); }
.youin-event-card__poster img,
.youin-event-poster-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.youin-event-card__date-badge {
	position: absolute;
	top: .6rem;
	left: .6rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	background: hsl(var(--background) / .95);
	border-radius: .5rem;
	padding: .35rem .55rem;
	box-shadow: var(--shadow-card);
}
.youin-event-card__date-badge { white-space: nowrap; }
.youin-event-card__date-badge span { font-size: .95rem; font-weight: 800; color: hsl(var(--foreground)); }
.youin-event-card__date-badge small { font-size: .55rem; text-transform: uppercase; letter-spacing: .02em; color: hsl(var(--muted-foreground)); }

.youin-event-card__date-badge--unknown { background: hsl(var(--muted-foreground) / .15); }
.youin-event-card__date-badge--unknown span { color: hsl(var(--muted-foreground)); font-size: .8rem; }

.youin-event-card__status {
	position: absolute;
	bottom: .6rem;
	left: .6rem;
	right: .6rem;
	text-align: center;
	font-size: .65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: .3rem .5rem;
	border-radius: 999px;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}
.youin-event-card--past .youin-event-card__poster { filter: grayscale(.7); opacity: .75; }
.youin-event-card--past .youin-event-card__status { background: hsl(var(--foreground) / .55); color: hsl(var(--background)); }

.youin-event-card__title {
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.youin-event-card--past .youin-event-card__title { color: hsl(var(--muted-foreground)); }

.youin-event-card__date-text {
	font-size: .7rem;
	color: hsl(var(--muted-foreground));
}

/* =========================================================
   Página de detalhe do evento (estilo "página de produto")
   ========================================================= */
.youin-event-single { padding-block: 8rem 6rem; }

.youin-event-single__back {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: hsl(var(--muted-foreground));
	font-weight: 500;
	margin-bottom: 2rem;
}
.youin-event-single__back:hover { color: hsl(var(--foreground)); }
.youin-event-single__back svg { width: 1rem; height: 1rem; }

.youin-event-single__grid {
	display: grid;
	gap: 3rem;
	grid-template-columns: 1fr;
	margin-bottom: 3rem;
}
@media (min-width: 860px) { .youin-event-single__grid { grid-template-columns: minmax(0, 22rem) 1fr; align-items: start; } }

.youin-event-single__poster {
	position: relative;
	border-radius: 1.25rem;
	overflow: hidden;
	box-shadow: var(--shadow-elevated);
	aspect-ratio: 3 / 4;
	max-width: 26rem;
}
.youin-event-single__poster img,
.youin-event-single__poster .youin-event-poster-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.youin-event-single__status {
	position: absolute;
	top: 1rem;
	left: 1rem;
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: .4rem .8rem;
	border-radius: 999px;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}
.youin-event-single__status--past { background: hsl(var(--foreground) / .7); color: hsl(var(--background)); }

.youin-event-single__info { padding-top: .5rem; }
.youin-event-single__date {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	margin: 1rem 0 1.5rem;
	padding: .6rem 1.1rem;
	border-radius: .75rem;
	background: hsl(var(--secondary));
	font-weight: 600;
}
.youin-event-single__date svg { width: 1.1rem; height: 1.1rem; color: hsl(var(--primary)); }
.youin-event-single__excerpt { font-size: 1.1rem; color: hsl(var(--muted-foreground)); }

.youin-event-single__content {
	padding-top: 3rem;
	border-top: 1px solid hsl(var(--border));
}
