/* =========================================================
   NovaTopNet Theme - Estilos principais (mobile-first)
   ========================================================= */

:root {
	--ntn-primary: #0f172a;
	--ntn-accent: #f97316;
	--ntn-bg: #ffffff;
	--ntn-bg-alt: #f6f7f9;
	--ntn-text: #1e293b;
	--ntn-muted: #64748b;
	--ntn-border: #e2e8f0;
	--ntn-radius: 10px;
	--ntn-container: 1200px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ntn-text); background: var(--ntn-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.ntn-container { max-width: var(--ntn-container); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.ntn-header { background: var(--ntn-bg); border-bottom: 1px solid var(--ntn-border); position: relative; z-index: 50; }
.ntn-header-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 16px; }
.ntn-logo img { max-height: 44px; }
.ntn-logo-text { font-size: 20px; font-weight: 800; color: var(--ntn-primary); }

.ntn-menu-toggle { display: flex; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.ntn-menu-toggle span { width: 22px; height: 2px; background: var(--ntn-primary); display: block; }

.ntn-nav { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; background: #fff; transform: translateX(100%); transition: transform .25s ease; padding: 24px 20px; overflow-y: auto; }
.ntn-nav.is-open { transform: translateX(0); }
.ntn-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ntn-menu a { display: block; padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--ntn-border); }

.ntn-search-toggle { background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ntn-primary); }
.ntn-search-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; background: var(--ntn-bg-alt); }
.ntn-search-panel.is-open { max-height: 90px; }
.ntn-search-panel .ntn-container { padding: 14px 16px; }
.ntn-search-form { display: flex; gap: 8px; }
.ntn-search-input { flex: 1; padding: 10px 12px; border: 1px solid var(--ntn-border); border-radius: 6px; }
.ntn-search-submit { padding: 10px 16px; background: var(--ntn-primary); color: #fff; border: 0; border-radius: 6px; cursor: pointer; }

/* Carrossel do header */
.ntn-carousel { position: relative; overflow: hidden; background: var(--ntn-bg-alt); }
.ntn-carousel-slide { display: none; }
.ntn-carousel-slide.is-active { display: block; }
.ntn-carousel-desktop { display: none; width: 100%; }
.ntn-carousel-mobile { display: block; width: 100%; }

/* ---------- Banners ---------- */
.ntn-banner { display: flex; justify-content: center; align-items: center; margin: 18px 0; overflow: hidden; }
.ntn-banner-img { max-width: 100%; border-radius: var(--ntn-radius); }
.ntn-banner-video { position: relative; width: 100%; padding-top: 56.25%; }
.ntn-banner-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--ntn-radius); }

/* ---------- Layout 3 colunas (page/single) ---------- */
.ntn-layout-3col { display: flex; flex-direction: column; gap: 24px; padding: 24px 16px; max-width: var(--ntn-container); margin: 0 auto; }
.ntn-content { min-width: 0; }
.ntn-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Home: grade 4x7 ---------- */
.ntn-home { max-width: var(--ntn-container); margin: 0 auto; padding: 24px 16px; }
.ntn-grid-4x7 { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ntn-card { border: 1px solid var(--ntn-border); border-radius: var(--ntn-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ntn-card-thumb { display: block; aspect-ratio: 340/220; background: var(--ntn-bg-alt); overflow: hidden; }
.ntn-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ntn-card-thumb-placeholder { display: block; width: 100%; height: 100%; background: var(--ntn-bg-alt); }
.ntn-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ntn-card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ntn-accent); font-weight: 700; }
.ntn-card-title { font-size: 16px; margin: 0; line-height: 1.35; }
.ntn-card-excerpt { font-size: 13px; color: var(--ntn-muted); margin: 0; }

.ntn-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.ntn-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--ntn-border); border-radius: 6px; }
.ntn-pagination .page-numbers.current { background: var(--ntn-primary); color: #fff; }

/* ---------- Single post ---------- */
.ntn-single-title { font-size: 28px; line-height: 1.25; margin: 10px 0; }
.ntn-single-meta { color: var(--ntn-muted); font-size: 13px; margin-bottom: 16px; }
.ntn-single-thumb { margin-bottom: 18px; border-radius: var(--ntn-radius); overflow: hidden; }
.ntn-entry-content { font-size: 17px; line-height: 1.75; text-align: justify; }
.ntn-entry-content p { margin: 0 0 18px; }
.ntn-entry-content img { border-radius: var(--ntn-radius); }

.ntn-share-whatsapp {
	display: inline-flex; align-items: center; gap: 8px;
	background: #25D366; color: #fff; padding: 10px 16px;
	border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 20px;
}

.ntn-post-quote { margin-top: 28px; padding: 16px 20px; border-left: 4px solid var(--ntn-accent); background: var(--ntn-bg-alt); font-style: italic; border-radius: 0 var(--ntn-radius) var(--ntn-radius) 0; }

.ntn-related-section { margin-top: 32px; }
.ntn-related-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ntn-related-card { border: 1px solid var(--ntn-border); border-radius: var(--ntn-radius); overflow: hidden; display: block; }
.ntn-related-card img { width: 100%; aspect-ratio: 340/220; object-fit: cover; }
.ntn-related-card span { display: block; padding: 10px 12px; font-size: 14px; font-weight: 600; }

/* ---------- Footer ---------- */
.ntn-footer { background: var(--ntn-primary); color: #cbd5e1; margin-top: 40px; }
.ntn-footer-columns { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 36px 16px; }
.ntn-footer-col h3 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.ntn-footer-col-content { font-size: 14px; line-height: 1.7; }
.ntn-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.ntn-footer-credit a { color: var(--ntn-accent); font-weight: 600; }

/* WhatsApp flutuante */
.ntn-whatsapp-float {
	position: fixed; bottom: 20px; right: 20px; z-index: 999;
	width: 58px; height: 58px; border-radius: 50%;
	background: #25D366; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* 404 */
.ntn-404 { text-align: center; padding: 60px 16px; }
.ntn-404 h1 { font-size: 64px; margin: 0; color: var(--ntn-primary); }
.ntn-btn { display: inline-block; margin-top: 16px; padding: 10px 20px; background: var(--ntn-primary); color: #fff; border-radius: 6px; }

/* =========================================================
   Responsivo - Tablet (>=768px)
   ========================================================= */
@media (min-width: 768px) {
	.ntn-grid-4x7 { grid-template-columns: repeat(2, 1fr); }
	.ntn-related-grid { grid-template-columns: repeat(3, 1fr); }
	.ntn-footer-columns { grid-template-columns: repeat(3, 1fr); }
	.ntn-footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   Responsivo - Desktop (>=1024px)
   ========================================================= */
@media (min-width: 1024px) {
	.ntn-menu-toggle, .ntn-search-toggle { display: none; }
	.ntn-nav { position: static; width: auto; max-width: none; transform: none; padding: 0; overflow: visible; }
	.ntn-menu { flex-direction: row; gap: 22px; }
	.ntn-menu a { border-bottom: 0; padding: 4px 0; }
	.ntn-search-panel { max-height: none; overflow: visible; background: none; }
	.ntn-search-panel .ntn-container { padding: 0; }
	.ntn-header-top { flex-wrap: nowrap; }

	.ntn-carousel-desktop { display: block; }
	.ntn-carousel-mobile { display: none; }

	.ntn-layout-3col { flex-direction: row; align-items: flex-start; }
	.ntn-sidebar { width: 240px; flex: 0 0 240px; }
	.ntn-sidebar-left { order: 1; }
	.ntn-content { order: 2; flex: 1; }
	.ntn-sidebar-right { order: 3; }

	.ntn-grid-4x7 { grid-template-columns: repeat(4, 1fr); }
	.ntn-related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* No mobile as sidebars ficam sempre abaixo do conteudo (ordem natural do flex em coluna) */
