/**
 * Estilos do mural — Comunidade Hodie
 */

:root {
	--hodie-brand: #900000;
	--hodie-brand-dark: #6b0000;
	--hodie-bg: #f0f2f5;
	--hodie-surface: #ffffff;
	--hodie-border: #e4e6eb;
	--hodie-text: #050505;
	--hodie-text-muted: #65676b;
	--hodie-radius: 12px;
	--hodie-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	--hodie-max-width: 680px;
}

body {
	background: var(--hodie-bg);
	color: var(--hodie-text);
}

body.hodie-modal-open {
	overflow: hidden;
}

/* Card clicavel + resumo de posts longos */
.hodie-feed-card__body {
	cursor: pointer;
}

.hodie-feed-card__body.is-clamped {
	position: relative;
	max-height: 520px;
	overflow: hidden;
}

.hodie-feed-card__body.is-clamped::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 90px;
	background: linear-gradient(rgba(255, 255, 255, 0), var(--hodie-surface));
	pointer-events: none;
}

.hodie-feed-card__readmore {
	display: inline-block;
	margin: 0.5rem 1rem 0;
	padding: 0;
	border: none;
	background: none;
	color: var(--hodie-brand);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.hodie-feed-card__readmore:hover,
.hodie-feed-card__readmore:focus {
	text-decoration: underline;
}

/* Modal de conteudo */
.hodie-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.hodie-modal.is-open {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.25s ease;
}

.hodie-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

.hodie-modal__panel {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--hodie-surface);
	border-radius: var(--hodie-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
	transform: scale(0.94) translateY(10px);
	transition: transform 0.25s ease;
	padding: 2rem 1.5rem 1.5rem;
}

.hodie-modal.is-open .hodie-modal__panel {
	transform: scale(1) translateY(0);
}

.hodie-modal__body {
	font-size: 1rem;
	line-height: 1.55;
}

.hodie-modal__body > :first-child {
	margin-top: 0;
}

.hodie-modal__body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.hodie-modal__body .hodie-feed-card__title {
	font-size: 1.375rem;
	margin-bottom: 0.75rem;
}

.hodie-modal__close {
	position: sticky;
	top: 0;
	float: right;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: -0.75rem -0.5rem 0 0;
	border: none;
	border-radius: 50%;
	background: var(--hodie-bg);
	color: var(--hodie-text);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.hodie-modal__close:hover,
.hodie-modal__close:focus {
	background: var(--hodie-brand);
	color: #fff;
}

@media (max-width: 640px) {
	.hodie-modal {
		padding: 0.75rem;
	}

	.hodie-modal__panel {
		padding: 1.5rem 1rem 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hodie-modal,
	.hodie-modal__panel {
		transition: none;
	}
}

/* Cabecalho */
.hodie-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--hodie-surface);
	border-bottom: 1px solid var(--hodie-border);
	box-shadow: var(--hodie-shadow);
}

.hodie-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: calc(var(--hodie-max-width) + 2rem);
	margin: 0 auto;
	padding: 0.75rem 1rem;
}

.hodie-site-header__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--hodie-text);
	font-weight: 700;
	font-size: 1.35rem;
}

.hodie-site-header__brand:hover,
.hodie-site-header__brand:focus {
	color: var(--hodie-brand);
}

.hodie-site-header__logo {
	flex-shrink: 0;
	border-radius: 50%;
}

.hodie-site-header__text {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	line-height: 1.15;
}

.hodie-site-header__tagline {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 500;
	font-size: 1.2rem;
	color: var(--hodie-brand);
}

/* Sub-linha de redes sociais */
.hodie-site-header__social-bar {
	border-top: 1px solid var(--hodie-border);
	background: var(--hodie-surface);
}

.hodie-site-header__social {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0 auto;
	padding: 0.4rem 1rem;
	max-width: calc(var(--hodie-max-width) + 2rem);
}

.hodie-site-header__social-item {
	margin: 0;
}

.hodie-site-header__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--hodie-text-muted);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.hodie-site-header__social-link:hover,
.hodie-site-header__social-link:focus {
	color: #fff;
	background: var(--hodie-brand);
}

.hodie-site-header__social-item--facebook .hodie-site-header__social-link:hover,
.hodie-site-header__social-item--facebook .hodie-site-header__social-link:focus {
	background: #1877f2;
}

.hodie-site-header__social-item--instagram .hodie-site-header__social-link:hover,
.hodie-site-header__social-item--instagram .hodie-site-header__social-link:focus {
	background: #e4405f;
}

.hodie-site-header__social-item--youtube .hodie-site-header__social-link:hover,
.hodie-site-header__social-item--youtube .hodie-site-header__social-link:focus {
	background: #ff0000;
}

.hodie-site-header__social-item--tiktok .hodie-site-header__social-link:hover,
.hodie-site-header__social-item--tiktok .hodie-site-header__social-link:focus {
	background: #000;
}

.hodie-site-header__social-item--whatsapp .hodie-site-header__social-link:hover,
.hodie-site-header__social-item--whatsapp .hodie-site-header__social-link:focus {
	background: #25d366;
}

.hodie-site-header__right {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.hodie-site-header__brasao {
	flex-shrink: 0;
	height: 48px;
	width: auto;
	display: block;
}

.hodie-site-header__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hodie-site-header__menu a {
	color: var(--hodie-text-muted);
	text-decoration: none;
	font-size: 0.9375rem;
	font-weight: 500;
}

.hodie-site-header__menu a:hover,
.hodie-site-header__menu a:focus {
	color: var(--hodie-brand);
}

/* Banner fixo do topo */
.hodie-banner {
	margin-bottom: 1rem;
}

.hodie-banner__inner {
	background: var(--hodie-surface);
	border-radius: var(--hodie-radius);
	box-shadow: var(--hodie-shadow);
	overflow: hidden;
}

.hodie-banner__link {
	display: block;
}

.hodie-banner__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Mural */
.hodie-mural {
	padding: 1rem 0 2rem;
}

.hodie-mural__inner {
	max-width: calc(var(--hodie-max-width) + 2rem);
	margin: 0 auto;
	padding: 0 1rem;
}

.hodie-feed {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Card */
.hodie-feed-card {
	background: var(--hodie-surface);
	border-radius: var(--hodie-radius);
	box-shadow: var(--hodie-shadow);
	overflow: hidden;
}

.hodie-feed-card__badge {
	margin: 0;
	padding: 0.375rem 1rem;
	background: var(--hodie-brand);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hodie-feed-card__time {
	display: block;
	margin: 0 0 0.5rem;
	color: var(--hodie-text-muted);
	font-size: 0.8125rem;
}

.hodie-feed-card__body {
	padding: 0.75rem 1rem 0;
}

.hodie-feed-card__body--top {
	padding-top: 1rem;
}

.hodie-feed-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
}

.hodie-feed-card__body.entry-content {
	font-size: 0.9375rem;
	line-height: 1.5;
}

.hodie-feed-card__body.entry-content > :first-child {
	margin-top: 0;
}

.hodie-feed-card__body.entry-content > :last-child {
	margin-bottom: 0;
}

.hodie-feed-card__body.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.hodie-feed-card__body.entry-content .wp-block-embed,
.hodie-feed-card__body.entry-content iframe {
	max-width: 100%;
}

.hodie-feed-card__body.entry-content .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 8px;
}

.hodie-feed-card__body.entry-content .wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.hodie-feed-card__footer {
	padding: 0.75rem 1rem 1rem;
	border-top: 1px solid var(--hodie-border);
	margin-top: 0.75rem;
}

.hodie-feed-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.hodie-feed-card__comment-toggle,
.hodie-feed-like {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.875rem;
	border: none;
	border-radius: 999px;
	background: var(--hodie-bg);
	color: var(--hodie-text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.hodie-feed-card__comment-toggle:hover,
.hodie-feed-card__comment-toggle:focus,
.hodie-feed-like:hover,
.hodie-feed-like:focus {
	background: #e4e6eb;
	color: var(--hodie-text);
}

.hodie-feed-like.is-liked {
	background: rgba(144, 0, 0, 0.1);
	color: var(--hodie-brand);
}

.hodie-feed-card__comments {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--hodie-border);
}

.hodie-feed-card__comments[hidden] {
	display: none;
}

/* WP ULike dentro do card */
.hodie-feed-card__actions .wpulike {
	margin: 0;
}

.hodie-feed-card__actions .wpulike-default .wp_ulike_general_class {
	border: none;
	box-shadow: none;
	padding: 0;
	background: transparent;
}

.hodie-feed-card__actions .wpulike-default .count-box {
	font-size: 0.875rem;
	font-weight: 600;
}

/* Comentarios */
.hodie-comments__list {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hodie-comment {
	display: flex;
	gap: 0.625rem;
}

.hodie-comment__avatar img {
	border-radius: 50%;
}

.hodie-comment__body {
	flex: 1;
	min-width: 0;
}

.hodie-comment__bubble {
	display: inline-block;
	max-width: 100%;
	padding: 0.5rem 0.75rem;
	background: var(--hodie-bg);
	border-radius: 12px;
}

.hodie-comment__author {
	font-weight: 700;
	font-size: 0.8125rem;
	margin-right: 0.375rem;
}

.hodie-comment__text {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	line-height: 1.45;
	word-wrap: break-word;
}

.hodie-comment__time {
	display: block;
	margin-top: 0.25rem;
	color: var(--hodie-text-muted);
	font-size: 0.75rem;
}

.hodie-comments__note {
	margin: 0 0 0.75rem;
	color: var(--hodie-text-muted);
	font-size: 0.8125rem;
}

.hodie-comments__form label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.hodie-comments__form input[type="text"],
.hodie-comments__form input[type="email"],
.hodie-comments__form input[type="url"],
.hodie-comments__form textarea {
	width: 100%;
	max-width: 100%;
	margin-bottom: 0.75rem;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--hodie-border);
	border-radius: 8px;
	font: inherit;
	box-sizing: border-box;
}

.hodie-comments__form input[type="submit"] {
	padding: 0.625rem 1.25rem;
	border: none;
	border-radius: 8px;
	background: var(--hodie-brand);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.hodie-comments__form input[type="submit"]:hover,
.hodie-comments__form input[type="submit"]:focus {
	background: var(--hodie-brand-dark);
}

.hodie-comments__closed {
	margin: 0;
	color: var(--hodie-text-muted);
	font-size: 0.875rem;
}

/* Paginacao */
.hodie-feed-pagination {
	margin-top: 1.5rem;
}

.hodie-feed-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.hodie-feed-pagination a,
.hodie-feed-pagination span {
	display: inline-block;
	padding: 0.5rem 0.875rem;
	border-radius: 8px;
	background: var(--hodie-surface);
	color: var(--hodie-text);
	text-decoration: none;
	font-size: 0.875rem;
	box-shadow: var(--hodie-shadow);
}

.hodie-feed-pagination span.current {
	background: var(--hodie-brand);
	color: #fff;
}

/* Estado vazio */
.hodie-feed-empty {
	text-align: center;
	padding: 3rem 1.5rem;
	background: var(--hodie-surface);
	border-radius: var(--hodie-radius);
	box-shadow: var(--hodie-shadow);
}

.hodie-feed-empty__logo {
	margin-bottom: 1rem;
	opacity: 0.85;
}

.hodie-feed-empty__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.hodie-feed-empty__text {
	margin: 0;
	color: var(--hodie-text-muted);
}

/* Rodape */
.hodie-site-footer {
	margin-top: 2rem;
	padding: 1.5rem 1rem;
	text-align: center;
	color: var(--hodie-text-muted);
	font-size: 0.8125rem;
}

.hodie-site-footer__copy {
	margin: 0;
}

.hodie-site-footer a {
	color: var(--hodie-brand);
	text-decoration: none;
}

.hodie-site-footer a:hover,
.hodie-site-footer a:focus {
	text-decoration: underline;
}

@media (min-width: 640px) {
	.hodie-mural {
		padding-top: 1.5rem;
	}
}
