/*
 * Acontece - pagina da materia: botoes Audio/Reflexao, box "Para Refletir" e player de audio.
 * Compartilhado pelos layouts acontece/index50.cfm (todos os sites com giTemplateMasterId = 50, ex.: 45 e 50)
 * e acontece/index67.cfm. O player e montado por /includes/js/acontece-audio.js.
 * Seletores com o id #para-refletir / prefixo .aco- para nao serem sobrescritos pelos CSS de cada site.
 */

html { scroll-behavior: smooth; }

/* ---------- botoes Audio / Reflexao ---------- */
.aco-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 6px; }
.aco-acoes .aco-pilula {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 22px;
	border: 0;
	border-radius: 999px;
	color: #fff !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
	transition: transform 0.15s, filter 0.15s;
}
.aco-acoes .aco-pilula i { color: #fff !important; font-size: 16px; }
.aco-acoes .aco-pilula:hover { transform: translateY(-1px); filter: brightness(1.06); }
.aco-acoes .aco-pilula:focus-visible { outline: 3px solid #1a5fa8; outline-offset: 2px; }
.aco-acoes .aco-pilula-audio { background: #e87722 !important; }
.aco-acoes .aco-pilula-reflexao { background: #2196e0 !important; }
.aco-acoes .aco-pilula[aria-expanded="true"] { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); }

/* ---------- box "Para Refletir" ---------- */
#para-refletir.aco-refletir {
	clear: both;
	margin: 32px 0 12px;
	padding: 0;
	border: 4px solid #2196e0;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	scroll-margin-top: 90px;
}
#para-refletir h2 {
	margin: 0;
	padding: 10px 22px;
	border: 0;
	background: #2196e0;
	color: #fff;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
}
#para-refletir ul { list-style: none; margin: 0; padding: 10px 22px 14px; }
#para-refletir li {
	display: flex;
	gap: 12px;
	align-items: baseline;
	margin: 0;
	padding: 9px 0;
	color: #1a6fb0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	list-style: none;
}
#para-refletir li::before { content: none; }
#para-refletir li + li { border-top: 1px solid #e3f0fb; }
#para-refletir li i { flex: none; color: #2196e0; }

/* ---------- player de audio ---------- */
.aco-player {
	--aco-cor: #e87722;
	--aco-cor-texto: #a8520c;
	--aco-trilho: #f6dfcb;
	--aco-texto: #1c2b40;
	--aco-foco: #1a5fa8;
	margin-top: 12px;
	max-width: 640px;
	color: var(--aco-texto);
	font-family: inherit;
}
.aco-player[hidden] { display: none !important; }

.aco-player-barra {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px 6px 6px;
	background: #fff;
	border: 2px solid var(--aco-cor);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.aco-player button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	gap: 2px;
	min-width: 36px;
	height: 36px;
	margin: 0;
	padding: 0 6px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}
.aco-player button:hover { background: #fdf0e4; }
.aco-player button:focus-visible,
.aco-pl-progresso:focus-visible { outline: 3px solid var(--aco-foco); outline-offset: 2px; }
.aco-player svg { width: 22px; height: 22px; fill: currentColor; }

.aco-player .aco-pl-play { width: 42px; height: 42px; background: var(--aco-cor); color: #fff; }
.aco-player .aco-pl-play:hover { background: var(--aco-cor); filter: brightness(1.08); }
.aco-player .aco-pl-play svg { width: 26px; height: 26px; }

.aco-player .aco-pl-pular { font-size: 12px; font-weight: 800; }
.aco-player .aco-pl-pular svg { width: 20px; height: 20px; }
.aco-player .aco-pl-pular-mais svg { transform: scaleX(-1); }

.aco-player .aco-pl-vel {
	min-width: 50px;
	height: 30px;
	border: 2px solid var(--aco-cor);
	color: var(--aco-cor-texto);
	font-size: 13px;
	font-weight: 800;
}
.aco-player .aco-pl-fechar svg { width: 18px; height: 18px; }

.aco-pl-linha { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.aco-pl-tempo { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Barra de progresso: a parte ja tocada e pintada com --aco-pct (definido pelo JS) */
.aco-pl-progresso {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 auto;
	min-width: 60px;
	height: 24px;
	margin: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}
.aco-pl-progresso::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--aco-cor) var(--aco-pct, 0%), var(--aco-trilho) var(--aco-pct, 0%));
}
.aco-pl-progresso::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	margin-top: -5px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--aco-cor);
	box-shadow: 0 0 0 1px var(--aco-cor);
}
.aco-pl-progresso::-moz-range-track { height: 6px; border-radius: 3px; background: var(--aco-trilho); }
.aco-pl-progresso::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--aco-cor); }
.aco-pl-progresso::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: var(--aco-cor); }

.aco-pl-aviso { margin: 6px 0 0 16px; font-size: 13px; color: #5b6f88; }
.aco-player .aco-pl-aviso button {
	display: inline;
	min-width: 0;
	height: auto;
	padding: 0;
	color: var(--aco-foco);
	font-weight: 700;
	text-decoration: underline;
}
.aco-player .aco-pl-aviso button:hover { background: transparent; }

/* Fixo no rodape quando o aluno rola o texto (classe posta pelo JS) */
.aco-player.aco-player--fixo {
	position: fixed;
	left: 50%;
	bottom: 12px;
	z-index: 900;
	width: calc(100% - 24px);
	max-width: 720px;
	margin: 0;
	transform: translateX(-50%);
}
.aco-player--fixo .aco-player-barra { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22); }
.aco-player--fixo .aco-pl-aviso { display: none; }

/* Celular: botoes em cima, barra de progresso na linha de baixo */
@media (max-width: 560px) {
	.aco-player-barra { flex-wrap: wrap; justify-content: space-between; padding: 8px 10px; border-radius: 18px; }
	.aco-pl-linha { order: 10; flex-basis: 100%; }
}

/* ---------- protecao contra CSS genericos dos sites ----------
   Os CSS dos sites do template 50 tem regras amplas com id, que vencem os seletores de classe acima.
   Ex. (includes/css/45/base.css):
     #main-content article div { display: inline-block; width: 100%; margin-bottom: 10px; line-height: 18px; ... }
     h2 { float: left; }
   Por isso as propriedades de LAYOUT abaixo usam !important (as de cor/tamanho ficam nas regras normais). */
.aco-acoes { display: flex !important; width: auto !important; margin: 16px 0 6px !important; line-height: normal !important; }
.aco-player-vaga { display: block !important; width: auto !important; margin: 0 0 18px !important; }
.aco-player { display: block !important; width: auto !important; margin: 12px 0 0 !important; line-height: normal !important; }
.aco-player.aco-player--fixo { width: calc(100% - 24px) !important; margin: 0 !important; }
.aco-player-barra { display: flex !important; width: auto !important; margin: 0 !important; line-height: normal !important; }
.aco-pl-linha { display: flex !important; width: auto !important; margin: 0 !important; line-height: normal !important; }
.aco-player .aco-pl-aviso { display: block !important; width: auto !important; margin: 6px 0 0 16px !important; line-height: 1.4 !important; }
.aco-player .aco-pl-aviso[hidden],
.aco-player--fixo .aco-pl-aviso { display: none !important; }
#para-refletir.aco-refletir { display: block !important; width: auto !important; margin: 32px 0 12px !important; }
#para-refletir.aco-refletir h2 { float: none !important; display: block !important; width: auto !important; font-size: 22px; line-height: 1.3; }
#para-refletir.aco-refletir li { font-size: 16px; line-height: 1.45; }
