/* CSS principal do Motocando — complementa o crítico (header/single base ficam no critical.css). */

/* ===== Grade de posts ===== */
.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin: 1.5rem 0;
}
@media (min-width: 600px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Card de post ===== */
.post-card {
	background: var(--mb-surface, #fff);
	border: 1px solid var(--mb-line, #e4e4e7);
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.post-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.post-card__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.post-card__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 0.9rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.post-card__cat {
	font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.05em; color: var(--mb-primary, #c2410c);
}
.post-card__title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.post-card__excerpt { margin: 0; color: var(--mb-muted, #52525b); font-size: 0.92rem; }
.post-card__date { font-size: 0.78rem; color: #71717a; margin-top: auto; padding-top: 0.3rem; }

.badge--sponsored {
	align-self: flex-start;
	background: #3f3f46; color: #fff; font-size: 0.68rem; font-weight: 700;
	text-transform: uppercase; padding: 2px 8px; border-radius: 4px;
}

/* ===== Home portal ===== */
.section-title {
	font-size: 1.4rem; margin: 2rem 0 1rem;
	border-left: 4px solid var(--mb-primary, #c2410c); padding-left: 0.6rem;
}
.section-title a { text-decoration: none; color: inherit; }

.home-highlights { margin: 1.5rem 0; display: grid; gap: 1.25rem; }

/* Hero: imagem com título sobreposto */
.post-card--hero { position: relative; border: 0; }
.post-card--hero .post-card__image { aspect-ratio: 16 / 9; border-radius: 12px; }
.post-card--hero .post-card__body {
	position: absolute; inset: auto 0 0 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
	color: #fff; padding: 2.5rem 1.25rem 1.1rem; border-radius: 0 0 12px 12px;
}
.post-card--hero .post-card__title { font-size: 1.6rem; color: #fff; }
.post-card--hero .post-card__excerpt { color: #e4e4e7; }
.post-card--hero .post-card__date { color: #d4d4d8; }
/* Categoria sobre a foto: etiqueta laranja com texto branco (laranja sobre foto não se lê). */
.post-card--hero .post-card__cat {
	align-self: flex-start; padding: 3px 10px; border-radius: 999px;
	background: var(--mb-primary, #c2410c); color: #fff; letter-spacing: 0.06em;
}
/* Celular: foto inteira em cima e o texto embaixo (sobreposto, o título cobria a foto toda). */
@media (max-width: 699px) {
	.post-card--hero { border: 1px solid var(--mb-line, #e4e4e7); }
	.post-card--hero .post-card__image { aspect-ratio: 16 / 10; border-radius: 0; }
	.post-card--hero .post-card__body {
		position: static; background: none; color: inherit;
		padding: 0.9rem 1.1rem 1.1rem; border-radius: 0;
	}
	.post-card--hero .post-card__title { font-size: 1.45rem; line-height: 1.2; color: var(--mb-ink, #18181b); }
	.post-card--hero .post-card__excerpt { color: var(--mb-muted, #52525b); }
	.post-card--hero .post-card__date { color: #71717a; }
}

.home-highlights__side { display: grid; gap: 1rem; }
.post-card--secondary { }
.post-card--secondary .post-card__link { flex-direction: row; gap: 0.75rem; }
.post-card--secondary .post-card__media { flex: 0 0 38%; }
.post-card--secondary .post-card__image { aspect-ratio: 1 / 1; height: 100%; }
.post-card--secondary .post-card__body { padding: 0.6rem 0.75rem 0.6rem 0; }
.post-card--secondary .post-card__title { font-size: 0.98rem; }

@media (min-width: 900px) {
	.home-highlights { grid-template-columns: 2fr 1fr; align-items: start; }
}

/* Mesma grade na home e na página de ofertas: colunas de no mínimo 280px,
   cards com a mesma altura e botão sempre alinhado no rodapé do card. */
.motoblog-offers__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.motoblog-offers__grid .motoblog-coupon { max-width: none; height: 100%; box-sizing: border-box; }
.motoblog-offers__grid .motoblog-coupon__action { margin-top: auto; padding-top: 0.25rem; }

.motoblog-offers__filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.motoblog-offers__filter-item {
	padding: 0.35rem 0.85rem; border: 1px solid var(--mb-line, #e4e4e7);
	border-radius: 999px; text-decoration: none; font-size: 0.85rem; color: inherit;
}
.motoblog-offers__filter-item.is-active { background: var(--mb-primary, #c2410c); color: #fff; border-color: var(--mb-primary, #c2410c); }

/* ===== Meta do post ===== */
.post-meta {
	display: flex; flex-wrap: wrap; gap: 0.75rem;
	font-size: 0.85rem; color: var(--mb-muted, #52525b); margin: 0.5rem 0 1rem;
}
.post-meta a { color: var(--mb-primary-dark, #9a3412); text-decoration: none; }

/* ===== Autor: avatar + nome + cartão ===== */
.post-meta__author { display: inline-flex; align-items: center; gap: 0.4rem; }
.post-meta__avatar, .author-card__avatar { border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.post-meta__avatar { width: 24px; height: 24px; }
.author-chip { position: relative; }
.author-chip__button {
	display: inline-flex; align-items: center; gap: 0.4rem;
	padding: 2px 6px 2px 2px; margin: -2px 0; border: 0; border-radius: 999px;
	background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.author-chip__button:hover, .author-chip__button[aria-expanded="true"] { background: #fff7ed; color: var(--mb-primary-dark, #9a3412); }
.author-chip__button:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.author-chip__name { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.author-card {
	position: absolute; z-index: 20; top: calc(100% + 8px); left: 0;
	width: min(320px, calc(100vw - 2rem));
	padding: 1rem; border: 1px solid #e4e4e7; border-radius: 12px;
	background: #fff; color: var(--mb-ink, #18181b);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	font-size: 0.9rem; line-height: 1.5; text-align: left;
}
.author-card[hidden] { display: none; }
/* Celular: o nome pode estar no meio da linha; o cartão usa a largura do texto
   (alinhado à linha de metadados), sem sair da tela. */
@media (max-width: 600px) {
	.post-meta { position: relative; }
	.author-chip { position: static; }
	.author-card { left: 0; right: 0; width: auto; top: calc(100% + 6px); }
}
.author-card__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.author-card__avatar { width: 64px; height: 64px; }
.author-card__name { display: block; font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; font-size: 1.2rem; line-height: 1.2; }
.author-card__count { display: block; font-size: 0.8rem; color: var(--mb-muted, #52525b); }
.author-card__bio p { margin: 0 0 0.5rem; }
.author-card__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.5rem; font-weight: 600; }
.author-card__links a { color: var(--mb-primary-dark, #9a3412); }

/* ===== Redes do autor (página do autor e cartão) ===== */
.author-social { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0.5rem 0 0; padding: 0; }
.author-social__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: #f4f4f5; color: #3f3f46; text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}
.author-social__link:hover { background: var(--mb-primary, #c2410c); color: #fff; }
.author-social__link:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.author-card .author-social { margin: 0.25rem 0 0.25rem; }
.author-card .author-social__link { width: 30px; height: 30px; }

/* ===== Página do autor ===== */
.author-profile {
	display: flex; flex-direction: column; gap: 1rem;
	margin: 0.5rem 0 2rem; padding: 1.25rem;
	background: #fff; border: 1px solid #e4e4e7; border-radius: 12px;
}
.author-profile__id { display: flex; align-items: center; gap: 1rem; }
.author-profile__avatar { width: 96px; height: 96px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.author-profile__name { margin: 0; font-size: clamp(1.4rem, 4vw, 1.8rem); line-height: 1.15; }
.author-profile__count { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--mb-muted, #52525b); }
/* min-width: 0 deixa o item encolher dentro do flex; overflow-wrap quebra
   palavras longas sem espaço (ex.: "testetestetes…" ou um link colado). */
.author-profile__bio { color: #3f3f46; line-height: 1.65; min-width: 0; overflow-wrap: anywhere; }
.author-profile__id { min-width: 0; }
.author-profile__name { overflow-wrap: anywhere; }
.author-card__bio, .author-card__name { overflow-wrap: anywhere; }
.author-profile__bio p { margin: 0 0 0.6rem; }
.author-profile__bio p:last-child { margin-bottom: 0; }
.author-profile__posts-title { margin-top: 0; }
@media (min-width: 768px) {
	.author-profile { flex-direction: row; align-items: center; gap: 0; padding: 1.5rem; }
	.author-profile__id { flex: 0 0 auto; max-width: 45%; padding-right: 1.5rem; }
	.author-profile__bio { flex: 1 1 auto; padding-left: 1.5rem; border-left: 1px solid #e4e4e7; }
}

/* ===== Legendas das fotos (destacada e do texto) ===== */
.single-post__featured figcaption,
.single-post__content figcaption,
.single-post__content .wp-element-caption {
	margin-top: 0.4rem; font-size: 0.85rem; line-height: 1.4;
	color: var(--mb-muted, #52525b); text-align: center;
}

/* ===== Single: conteúdo ===== */
.single-post__content { font-size: 1.05rem; }
/* Links e palavras longas colados no texto (ex.: uma URL) quebram em vez de vazar no celular. */
.single-post__content, .page-content__body { overflow-wrap: break-word; }
.single-post__content p { margin: 0 0 1.1rem; }
.single-post__content h2 { font-size: 1.5rem; margin: 1.8rem 0 0.8rem; }
.single-post__content h3 { font-size: 1.25rem; margin: 1.4rem 0 0.6rem; }
.single-post__content img { border-radius: 8px; }

.affiliate-notice--end { margin-top: 1.75rem; }
.affiliate-notice {
	background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px;
	padding: 0.7rem 1rem; font-size: 0.88rem; color: #7c2d12; margin: 1rem 0;
}

.single-post__tags { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.single-post__tags a {
	font-size: 0.8rem; padding: 3px 10px; border: 1px solid var(--mb-line, #e4e4e7);
	border-radius: 999px; text-decoration: none; color: var(--mb-muted);
}

.single__sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.single__sidebar .most-read,
.single__sidebar .motoblog-ad {
	background: var(--mb-surface, #fff); border: 1px solid var(--mb-line, #e4e4e7);
	border-radius: 12px; padding: 1rem 1.1rem;
}

/* Compartilhamento (botões com ícone) */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 1.5rem 0 0; }
.share__label { font-weight: 700; font-size: 0.9rem; }
.share__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border-radius: 50%;
	border: 0; background: #27272a; color: #fff;
	cursor: pointer; text-decoration: none;
	transition: transform 0.12s ease, opacity 0.12s ease;
}
.share__btn svg { display: block; }
.share__btn:hover { transform: translateY(-2px); opacity: 0.92; }
.share__btn:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.share__btn--wa { background: #25d366; }
.share__btn--fb { background: #1877f2; }
.share__btn--x { background: #000; }
.share__btn--copy { background: #52525b; }

/* Mais lidos */
.most-read__list { padding-left: 1.2rem; margin: 0.5rem 0 0; }
.most-read__list li { margin-bottom: 0.6rem; }
.most-read__list a { text-decoration: none; }

/* Relacionados */
.related { margin-top: 2.5rem; }

/* ===== Comentários e formulário ===== */
.comments { margin-top: 2.5rem; background: var(--mb-surface, #fff); border: 1px solid var(--mb-line, #e4e4e7); border-radius: 12px; padding: 1.5rem; }
.comments__title,
.comment-reply-title { font-size: 1.3rem; margin: 0 0 1rem; }
.comment-reply-title small { font-size: 0.8rem; margin-left: 0.75rem; }

/* Lista */
.comments__list { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.comments__list .children { list-style: none; margin: 1rem 0 0 0.75rem; padding: 0 0 0 1rem; border-left: 2px solid var(--mb-line, #e4e4e7); display: flex; flex-direction: column; gap: 1rem; }
.comment-body { background: #fafafa; border: 1px solid var(--mb-line, #e4e4e7); border-radius: 10px; padding: 1rem 1.1rem; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; font-size: 0.85rem; color: var(--mb-muted, #52525b); margin-bottom: 0.5rem; }
.comment-author { display: flex; align-items: center; gap: 0.6rem; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-style: normal; color: var(--mb-ink, #18181b); }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--mb-muted, #52525b); text-decoration: none; }
.comment-content p { margin: 0 0 0.75rem; }
.reply a {
	display: inline-block; font-size: 0.85rem; font-weight: 600; text-decoration: none;
	padding: 0.35rem 0.8rem; border: 1px solid var(--mb-line, #e4e4e7); border-radius: 999px; color: inherit;
}
.reply a:hover { background: #f4f4f5; }

/* Formulário */
.comment-respond { margin-top: 0.5rem; }
.comment-form { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.comment-form p { margin: 0; }
.comment-form > * { grid-column: 1 / -1; }
.comment-notes,
.logged-in-as { font-size: 0.88rem; color: var(--mb-muted, #52525b); }
.comment-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.comment-form .required { color: var(--mb-primary, #c2410c); }

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	display: block; width: 100%; padding: 0.7rem 0.85rem;
	border: 1px solid #d4d4d8; border-radius: 8px; background: #fff;
	font: inherit; color: inherit; min-height: 44px;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
	outline: none; border-color: var(--mb-primary, #c2410c);
	box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.22);
}

.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.6rem; }
.comment-form-cookies-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0.3rem 0 0; accent-color: var(--mb-primary, #c2410c); }
.comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 400; font-size: 0.88rem; color: var(--mb-muted, #52525b); }

.form-submit .submit {
	background: var(--mb-primary, #c2410c); color: #fff; border: 0; border-radius: 8px;
	padding: 0.75rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px;
}
.form-submit .submit:hover { background: var(--mb-primary-dark, #9a3412); }
.form-submit .submit:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }

/* Nome e e-mail lado a lado a partir de tablet */
@media (min-width: 700px) {
	.comment-form { grid-template-columns: 1fr 1fr; }
	.comment-form .comment-form-author,
	.comment-form .comment-form-email { grid-column: auto; }
}

/* Página / cabeçalho de arquivo */
.page-header { margin-bottom: 1rem; }
.page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.page-content__body { max-width: 720px; }

/* Erro / sem resultados */
.no-results { background: var(--mb-surface, #fff); border: 1px solid var(--mb-line, #e4e4e7); border-radius: 12px; padding: 1.5rem; }
.category-suggestions { columns: 2; list-style: none; padding: 0; margin: 0.5rem 0; }
.category-suggestions a { text-decoration: none; }

/* Paginação */
.pagination { display: flex; justify-content: center; margin: 2.5rem 0; }
.pagination .page-numbers {
	padding: 0.5rem 0.85rem; margin: 0 0.15rem;
	border: 1px solid var(--mb-line, #e4e4e7); border-radius: 6px; text-decoration: none; color: inherit;
}
.pagination .page-numbers.current { background: var(--mb-primary, #c2410c); color: #fff; border-color: var(--mb-primary, #c2410c); }

/* ===== Footer ===== */
.site-footer { background: #18181b; color: #d4d4d8; margin-top: 3rem; padding: 2.5rem 1rem; }
.site-footer__inner { max-width: var(--mb-wrap, 1120px); margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.85rem; }
.site-footer__list { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }
.site-footer__list a { color: #fff; text-decoration: none; }
.site-footer__affiliate, .site-footer__amazon { margin: 0; color: #a1a1aa; }
.site-footer__copy { margin: 0.5rem 0 0; color: #a1a1aa; } /* 7:1 sobre o rodapé (era 3,7:1) */

/* ===== Anúncios (reserva de espaço, sem CLS) ===== */
.motoblog-ad { display: block; margin: 1.5rem auto; text-align: center; min-height: 100px; }
/* Sem anúncio para exibir (o AdSense marca data-ad-status="unfilled"): o
   espaço reservado some, em vez de ficar um buraco em branco na página. */
.motoblog-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.motoblog-ad--sidebar { min-height: 600px; }
.motoblog-ad--after_content { min-height: 280px; }

/* ===== Classes padrão do WordPress ===== */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; }
.alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; margin-bottom: 1.5rem; }
.wp-caption img { display: block; margin: 0 auto; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--mb-muted, #52525b); text-align: center; padding: 0.4rem 0; }
.sticky { }
.bypostauthor { }
.screen-reader-text:focus {
	display: block; position: absolute; top: 5px; left: 5px; z-index: 100000;
	width: auto; height: auto; padding: 0.5rem 1rem; background: #fff; clip: auto;
}
figure.wp-block-image figcaption { font-size: 0.85rem; color: var(--mb-muted, #52525b); text-align: center; }
