/*!
Theme Name: ZipiaHub
Author: Zípia
Description: Tema do blog da Zípia, alinhado ao layout do site principal.
Version: 1.0.0
Text Domain: zipiahub
*/

/*
 * Este tema depende do CSS compartilhado do projeto (`/hub.css`) enfileirado em `functions.php`.
 * Aqui ficam apenas ajustes e tipografia do conteúdo do blog.
 */

/* Defaults */
html,
body {
	height: 100%;
}
body {
	font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji",
		"Segoe UI Emoji";
	color: #23233f;
	background: #fff;
}

/* Tailwind-like fallback used by skip-link (keeps accessibility even if hub.css fails). */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}
.focus\:not-sr-only:focus:not(.sr-only),
.focus\:not-sr-only:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

/* Dropdown do header (replicado do site). */
.menu-dropdown {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-50%) translateY(10px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.menu-dropdown.dropdown-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0) scale(1);
}
.dropdown-toggle svg.chevron,
.mobile-dropdown-toggle svg.chevron {
	transition: transform 0.3s ease;
}
.dropdown-toggle.dropdown-active svg.chevron,
.mobile-dropdown-toggle.dropdown-active svg.chevron {
	transform: rotate(180deg);
}
.seguradoras-dropdown-card {
	backdrop-filter: blur(10px);
	border-radius: 24px;
}
.menu-dropdown .seg-grid a {
	min-width: 0;
}
.seg-grid a {
	border-radius: 14px;
}
.seg-grid a span {
	font-size: 13px;
	line-height: 1.2;
}
.seg-grid .logo-box {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: #f6f6f9;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.mobile-menu-panel {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}
.mobile-menu-panel.open {
	max-height: 1200px;
	opacity: 1;
}
.mobile-submenu {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.mobile-submenu.open {
	max-height: 1200px;
	opacity: 1;
	margin-top: 10px;
}

/* `.from-[#4897ce]` é injetada via `wp_add_inline_style('zipiahub-hub', ...)` para garantir precedência sobre `hub.css`. */

/* Botão flutuante WhatsApp (replicado do site). */
.whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #25d366;
	color: #fff;
	text-decoration: none;
	padding: 12px 18px;
	border-radius: 999px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover {
	background: #1ebe5d;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
	color: #fff;
	text-decoration: none;
}
.whatsapp-icon {
	width: 42px;
	height: 42px;
	min-width: 42px;
	border-radius: 50%;
	background: #fff;
	color: #25d366;
	display: flex;
	align-items: center;
	justify-content: center;
}
.whatsapp-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}
.whatsapp-text {
	white-space: nowrap;
}
@media (max-width: 768px) {
	.whatsapp-float {
		right: 14px;
		bottom: 14px;
		padding: 10px 14px;
		font-size: 14px;
	}
	.whatsapp-icon {
		width: 38px;
		height: 38px;
		min-width: 38px;
	}
	.whatsapp-icon svg {
		width: 22px;
		height: 22px;
	}
}

/* Conteúdo do blog (alinha com o visual do site principal). */
.zipiahub-prose {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
	padding: 28px 16px 56px;
}
.zipiahub-prose article {
	padding: 18px 0;
}
.zipiahub-prose .entry-header {
	margin-bottom: 14px;
}
.zipiahub-prose .entry-title a {
	text-decoration: none;
	color: inherit;
}
.zipiahub-prose .entry-title a:hover {
	color: #00c2a8;
}
.zipiahub-prose .entry-meta,
.zipiahub-prose .entry-footer,
.zipiahub-prose .post-navigation,
.zipiahub-prose .navigation {
	font-size: 13px;
	color: rgba(35, 35, 63, 0.7);
}
.zipiahub-prose .entry-meta a,
.zipiahub-prose .entry-footer a,
.zipiahub-prose .post-navigation a,
.zipiahub-prose .navigation a {
	color: inherit;
	text-decoration: none;
}
.zipiahub-prose .entry-meta a:hover,
.zipiahub-prose .entry-footer a:hover,
.zipiahub-prose .post-navigation a:hover,
.zipiahub-prose .navigation a:hover {
	color: #00c2a8;
}
.zipiahub-prose .entry-content {
	margin-top: 14px;
}
.zipiahub-prose h1 {
	font-size: 34px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
}
.zipiahub-prose h2 {
	font-size: 26px;
	line-height: 1.25;
	font-weight: 800;
	margin-top: 28px;
	margin-bottom: 10px;
}
.zipiahub-prose h3 {
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	margin-top: 22px;
	margin-bottom: 8px;
}
.zipiahub-prose p,
.zipiahub-prose li {
	color: rgba(35, 35, 63, 0.86);
	line-height: 1.8;
}
.zipiahub-prose p {
	margin: 12px 0;
}
.zipiahub-prose ul {
	list-style: disc;
	padding-left: 22px;
	margin: 12px 0;
}
.zipiahub-prose ol {
	list-style: decimal;
	padding-left: 22px;
	margin: 12px 0;
}
.zipiahub-prose a {
	color: #5b4fe5;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.zipiahub-prose a:hover {
	color: #00c2a8;
}
.zipiahub-prose img {
	border-radius: 18px;
}
.zipiahub-prose .wp-block-image,
.zipiahub-prose figure {
	margin: 18px 0;
}
.zipiahub-prose blockquote {
	margin: 18px 0;
	padding: 14px 16px;
	border-left: 4px solid rgba(0, 194, 168, 0.7);
	background: rgba(0, 194, 168, 0.06);
	border-radius: 14px;
}
.zipiahub-prose code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.95em;
	background: rgba(91, 79, 229, 0.08);
	padding: 0.15em 0.35em;
	border-radius: 8px;
}
.zipiahub-prose pre {
	overflow: auto;
	background: #0f172a;
	color: #e2e8f0;
	padding: 16px;
	border-radius: 16px;
	margin: 18px 0;
}
.zipiahub-prose pre code {
	background: transparent;
	padding: 0;
}
.zipiahub-prose hr {
	border: 0;
	height: 1px;
	background: rgba(35, 35, 63, 0.12);
	margin: 22px 0;
}

/* Posts navigation/pagination */
.zipiahub-prose .nav-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 22px;
}
.zipiahub-prose .nav-previous a,
.zipiahub-prose .nav-next a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(35, 35, 63, 0.12);
	background: #fff;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.zipiahub-prose .nav-previous a:hover,
.zipiahub-prose .nav-next a:hover {
	border-color: rgba(0, 194, 168, 0.35);
	color: #00c2a8;
	background: rgba(0, 194, 168, 0.06);
	transform: translateY(-1px);
}
