/* Publicações Oficiais — estilos do front-end */

.po-header { margin-bottom: 26px; }
.po-header h2 { margin: 0 0 4px; font-size: 22px; }
.po-subtitulo { color: #666; margin: 0 0 18px; font-size: 14px; }

.po-header-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

.po-info-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 14px 12px 12px;
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
	transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, border-color .2s ease;
	will-change: transform;
}
.po-info-card:hover {
	transform: translateY(-4px) scale(1.015);
	box-shadow: 0 10px 22px rgba(0, 0, 0, .1);
	border-color: transparent;
}
.po-info-card:active { transform: translateY(-1px) scale(.98); box-shadow: 0 4px 10px rgba(0, 0, 0, .1); }
.po-info-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--po-cor-card-inicio, #6C5CE7), var(--po-cor-card-fim, #00B894));
}
.po-info-icone {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--po-cor-card-inicio, #6C5CE7), var(--po-cor-card-fim, #00B894));
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 6px auto 8px;
	transition: transform .25s ease;
}
.po-info-card:hover .po-info-icone { transform: scale(1.1) rotate(-4deg); }
.po-info-icone .dashicons { color: #fff; font-size: 15px; width: 15px; height: 15px; }
.po-info-label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #888; margin-bottom: 5px; }
.po-info-valor { display: block; font-weight: 700; color: #1a1a1a; font-size: 12.5px; line-height: 1.4; }

.po-form {
	position: relative;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 16px;
	padding: 22px 20px 20px;
	margin: 22px 0;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(20, 20, 43, .05);
}
.po-form::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--po-cor-card-inicio, #6C5CE7), var(--po-cor-card-fim, #00B894));
}
.po-form-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
.po-form-field { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.po-form-field label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; color: #666; }

.po-form-field { position: relative; }
.po-form-field input,
.po-form-field select {
	padding: 11px 14px;
	border: 1.5px solid #e4e4e7;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.3;
	background: #f7f7f9;
	color: #222;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	box-sizing: border-box;
}
.po-form-field:first-child input { padding-left: 36px; }
.po-form-field:first-child::after {
	content: "\f179";
	font-family: dashicons;
	position: absolute;
	left: 11px;
	bottom: 13px;
	font-size: 16px;
	line-height: 1;
	color: #aaa;
	pointer-events: none;
	transition: color .18s ease;
}
.po-form-field:first-child:focus-within::after { color: var(--po-cor-card-fim, #00B894); }
.po-form-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.6' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 30px;
	cursor: pointer;
}
.po-form-field input:hover,
.po-form-field select:hover { border-color: #cfcfd6; }
.po-form-field input:focus,
.po-form-field select:focus {
	outline: none;
	border-color: var(--po-cor-card-fim, #00B894);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(0, 184, 148, .12);
}

.po-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f2; }

.po-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 11px 26px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
	text-transform: uppercase;
	letter-spacing: .03em;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background-color .15s ease;
}
.po-btn .dashicons { font-size: 15px; width: 15px; height: 15px; }
.po-btn-primary {
	background: linear-gradient(90deg, var(--po-cor-botao-inicio, #6C5CE7), var(--po-cor-botao-fim, #00B894));
	color: #fff;
	box-shadow: 0 4px 14px rgba(108, 92, 231, .28);
}
.po-btn-primary:hover { opacity: .94; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(108, 92, 231, .32); }
.po-btn-primary:active { transform: translateY(0) scale(.97); }
.po-btn-secondary { background: transparent; color: #777; box-shadow: none; padding: 11px 14px; }
.po-btn-secondary:hover { color: #333; text-decoration: underline; transform: none; }
.po-btn-secondary:active { transform: scale(.97); }

.po-resultados h3 { margin-bottom: 14px; font-size: 16px; }

.po-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}
.po-item {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	padding: 16px 14px 14px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(20, 20, 43, .04);
	transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, border-color .2s ease;
	will-change: transform;
}
.po-item:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 14px 26px rgba(20, 20, 43, .12);
	border-color: transparent;
}
.po-item:active { transform: translateY(-1px) scale(.98); box-shadow: 0 4px 10px rgba(0, 0, 0, .1); }
.po-item::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--po-cor-card-inicio, #6C5CE7), var(--po-cor-card-fim, #00B894));
}
.po-item-icone {
	font-size: 18px;
	width: 34px;
	height: 34px;
	color: #fff;
	background: linear-gradient(135deg, var(--po-cor-card-inicio, #6C5CE7), var(--po-cor-card-fim, #00B894));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 6px 0 10px;
	transition: transform .25s ease;
}
.po-item:hover .po-item-icone { transform: scale(1.1) rotate(-4deg); }
.po-item a { color: #1a1a1a; text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1.45; display: block; }
.po-item a:hover { color: var(--po-cor-card-inicio, #6C5CE7); }
.po-item-hora { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #999; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #eee; }
.po-item-hora .dashicons { font-size: 13px; width: 13px; height: 13px; }
.po-sem-resultados { color: #777; font-style: italic; background: #fafafa; border: 1px dashed #e0e0e0; border-radius: 10px; padding: 14px 16px; }

.po-fallback { margin-top: 14px; }
.po-fallback-label { font-weight: 600; color: #444; margin-bottom: 8px; font-size: 13px; }

.po-paginacao-info { font-size: 12px; color: #888; margin: 18px 0 8px; }

.po-paginacao { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.po-pagina-link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	font-size: 13px;
}
.po-pagina-link:hover { border-color: var(--po-cor-card-inicio, #6C5CE7); color: var(--po-cor-card-inicio, #6C5CE7); }
.po-pagina-link.po-pagina-ativa {
	background: linear-gradient(90deg, var(--po-cor-card-inicio, #6C5CE7), var(--po-cor-card-fim, #00B894));
	color: #fff;
	border-color: transparent;
	font-weight: 700;
}
.po-pagina-seta .dashicons { font-size: 16px; width: 16px; height: 16px; }
.po-pagina-reticencias { padding: 0 4px; color: #999; font-size: 13px; }

.po-widget-item { font-weight: 600; margin-bottom: 4px; }

.po-info-card,
.po-item { -webkit-tap-highlight-color: transparent; }

@media (max-width: 600px) {
	.po-form-row { flex-direction: column; }
	.po-header-info,
	.po-lista { grid-template-columns: 1fr 1fr; }
}
