/**
 * Template: Talleres Online
 * Arquivo: assets/css/template-talleres-1c.css
 *
 * Desenvolvido por: Roger Alves
 * Data da Modificacao: 2026-06-23
 *
 * Todos os direitos reservados.
 */

/* ==========================================================================
   Fundo da área de conteúdo
   ========================================================================== */

.talleres-1c-content-bg {
	background: #F6F7F9;
}

/* ==========================================================================
   Layout principal: coluna 2/3 + sidebar 1/3
   ========================================================================== */

.talleres-1c-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-top: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
	align-items: start;
}

/* ==========================================================================
   Lista de talleres — coluna principal
   ========================================================================== */

.talleres-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Mensagem vazia */

.talleres-1c-empty {
	font-size: 1rem;
	color: var(--color-text-muted, #6b7280);
	padding: 2rem 0;
}

/* ==========================================================================
   Card horizontal de taller (próximos)
   ========================================================================== */

.taller-row {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: var(--radius-md, 12px);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.taller-row:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
	transform: translateY(-2px);
}

/* Imagem 4:5 à esquerda */

.taller-row-img-wrap {
	flex-shrink: 0;
	width: clamp(160px, 22vw, 220px);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	display: block;
	position: relative;
}

.taller-row-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: sepia(0.15) saturate(0.9);
	transition: transform 0.45s ease, filter 0.45s ease;
	display: block;
}

.taller-row:hover .taller-row-img-wrap img {
	transform: scale(1.05);
	filter: sepia(0.04) saturate(1.05);
}

/* Badge "Taller online" */

.taller-row-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--color-accent, #C8102E);
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 3px;
	pointer-events: none;
	line-height: 1.4;
}

/* Corpo do card */

.taller-row-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem 1.5rem 1.5rem 0;
	justify-content: center;
}

/* Kicker de data */

.taller-row-kicker {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.4;
}

.taller-row-kicker strong {
	color: var(--color-accent, #C8102E);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.taller-row-kicker span {
	color: var(--color-text-muted, #6b7280);
	font-weight: 500;
}

/* Título */

.taller-row-title {
	margin: 0;
	font-family: var(--font-headings);
	font-size: clamp(1.1rem, 2.5vw, 1.45rem);
	font-weight: 700;
	line-height: 1.25;
}

.taller-row-title a {
	color: var(--color-primary, #071524);
	text-decoration: none;
	transition: color 0.2s ease;
}

.taller-row-title a:hover {
	color: var(--color-accent, #C8102E);
}

/* Botão "Saber más" */

.taller-row-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	align-self: flex-start;
	margin-top: 0.25rem;
	padding: 0.5em 1.3em;
	background: var(--color-accent, #C8102E);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: 2rem;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.taller-row-btn:hover {
	background: color-mix(in srgb, var(--color-accent, #C8102E) 82%, #000);
	transform: translateX(3px);
	color: #fff;
}

.taller-row-btn svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.taller-row-btn:hover svg {
	transform: translateX(3px);
}

/* ==========================================================================
   Sidebar: talleres anteriores
   ========================================================================== */

.talleres-1c-sidebar {
	position: sticky;
	top: 2rem;
}

.talleres-ant-heading {
	font-family: var(--font-headings);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-text-muted, #6b7280);
	border-bottom: 2px solid var(--color-primary, #071524);
	padding-bottom: 0.6rem;
	margin: 0 0 1.25rem;
}

.talleres-ant-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* Card de taller anterior — estilo "LEER TAMBIÉN" */

.taller-ant-card {
	display: flex;
	gap: 1rem;
	align-items: center;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: var(--radius-md, 10px);
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease;
}

.taller-ant-card:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* Imagem quadrada no lado esquerdo */

.taller-ant-img-wrap {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	overflow: hidden;
	display: block;
}

.taller-ant-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: sepia(0.2) saturate(0.85);
	transition: transform 0.35s ease;
}

.taller-ant-card:hover .taller-ant-img-wrap img {
	transform: scale(1.06);
}

/* Conteúdo da sidebar card */

.taller-ant-body {
	flex: 1;
	padding: 0.75rem 1rem 0.75rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.taller-ant-kicker {
	margin: 0;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-accent, #C8102E);
}

.taller-ant-title {
	font-family: var(--font-headings);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-primary, #071524);
	text-decoration: none;
	transition: color 0.2s ease;
}

.taller-ant-title:hover {
	color: var(--color-accent, #C8102E);
}

/* ==========================================================================
   Dark mode
   ========================================================================== */

[data-gpm-theme="dark"] .taller-row,
[data-gpm-theme="dark"] .taller-ant-card {
	background: var(--color-bg-surface, #1e2330);
	border-color: rgba(255, 255, 255, 0.08);
}

[data-gpm-theme="dark"] .taller-row-title a,
[data-gpm-theme="dark"] .taller-ant-title {
	color: var(--color-text-on-dark, #e8eaf0);
}

[data-gpm-theme="dark"] .talleres-ant-heading {
	color: rgba(255, 255, 255, 0.45);
	border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.talleres-1c-layout {
		grid-template-columns: 1fr;
	}

	.talleres-1c-sidebar {
		position: static;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
		padding-top: 2rem;
	}
}

@media (max-width: 560px) {
	.taller-row {
		flex-direction: column;
		gap: 0;
	}

	.taller-row-img-wrap {
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.taller-row-body {
		padding: 1.25rem;
	}
}
