/* 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 { background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 16px; margin: 22px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.po-form-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.po-form-field { flex: 1; min-width: 130px; display: flex; flex-direction: column; }
.po-form-field label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; color: #888; }

.po-form-field input,
.po-form-field select {
	padding: 7px 10px;
	border: 1.5px solid #e4e4e7;
	border-radius: 20px;
	font-size: 12.5px;
	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;
}
.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 12px center;
	padding-right: 26px;
}
.po-form-field input:hover,
.po-form-field select:hover { border-color: #d5d5da; }
.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 3px rgba(0, 184, 148, .12);
}

.po-form-actions { display: flex; gap: 10px; margin-top: 4px; }

.po-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 20px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border: none;
	text-transform: uppercase;
	letter-spacing: .02em;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background-color .15s ease;
}
.po-btn-primary {
	background: linear-gradient(90deg, var(--po-cor-botao-inicio, #6C5CE7), var(--po-cor-botao-fim, #00B894));
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.po-btn-primary:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .16); }
.po-btn-primary:active { transform: translateY(0) scale(.97); }
.po-btn-secondary { background: #eee; color: #333; }
.po-btn-secondary:hover { background: #ddd; transform: translateY(-1px); }
.po-btn-secondary:active { transform: translateY(0) 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: 12px;
	padding: 14px 12px 12px;
	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-item:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .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: 20px; width: 20px; height: 20px; color: var(--po-cor-card-inicio, #6C5CE7); display: block; margin: 6px 0 8px; transition: transform .25s ease; }
.po-item:hover .po-item-icone { transform: scale(1.15) rotate(-4deg); }
.po-item a { color: #1a1a1a; text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1.4; 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: 8px; }
.po-item-hora .dashicons { font-size: 13px; width: 13px; height: 13px; }
.po-sem-resultados { color: #777; font-style: italic; }

.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; }
}
