/*
Theme Name: Novatopnet News
Theme URI: https://novatopnet.com.br
Author: Novatopnet
Author URI: https://novatopnet.com.br
Description: Tema responsivo de alto desempenho para portal de notícias. Duas sidebars, sistema de banners integrado, analytics interno, SEO completo, PWA e SMTP nativos. Zero plugins necessários.
Version: 2.9.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://novatopnet.com.br
Text Domain: novatopnet-news
Tags: news, blog, responsive, two-sidebars, custom-header, custom-logo, featured-images, full-width-template
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — Design System
   ============================================================ */
:root {
  /* Cores */
  --color-primary:       #0943d6;
  --color-primary-dark:  #0735b0;
  --color-primary-light: #3a6fef;
  --color-white:         #ffffff;
  --color-black:         #0d0d0d;
  --color-gray-50:       #f9fafb;
  --color-gray-100:      #f3f4f6;
  --color-gray-200:      #e5e7eb;
  --color-gray-300:      #d1d5db;
  --color-gray-500:      #6b7280;
  --color-gray-700:      #374151;
  --color-gray-900:      #111827;
  --color-text:          #1f2937;
  --color-border:        #e5e7eb;

  /* Tipografia */
  --font-primary:  'Inter', 'Segoe UI', Arial, sans-serif;
  --font-size-base: 17px;
  --font-size-sm:   14px;
  --font-size-lg:   20px;
  --font-size-xl:   24px;
  --font-size-2xl:  30px;
  --font-size-3xl:  36px;
  --line-height:    1.75;

  /* Espaçamento */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;

  /* Layout */
  --sidebar-width:    260px;
  --max-width:        1400px;
  --container-pad:    16px;
  --gap:              20px;

  /* Bordas */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.12);

  /* Transições */
  --transition: 0.25s ease;

  /* Banner proporções */
  --banner-ratio-post:   calc(350 / 500 * 100%); /* 500×350 */
  --banner-ratio-header: calc(90  / 720 * 100%); /* 720×90  */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-gray-100);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-left:  auto;
  margin-right: auto;
  padding-left:  var(--container-pad);
  padding-right: var(--container-pad);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* ============================================================
   SITE WRAPPER — layout de 3 colunas
   ============================================================ */
#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content {
  flex: 1;
}

.site-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
  gap: var(--gap);
  padding: var(--gap) var(--container-pad);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.site-main {
  min-width: 0;
}

/* ============================================================
   WIDGETS & SIDEBAR
   ============================================================ */
.widget {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
}

/* ============================================================
   RESPONSIVE — 6 BREAKPOINTS
   ============================================================ */

/* Smart TV / Wide (≥1600px) — já estilo padrão acima */

/* Desktop HD (1200–1599px) */
@media (max-width: 1599px) {
  :root { --sidebar-width: 240px; }
}

/* iPad Paisagem (992–1199px) */
@media (max-width: 1199px) {
  :root { --sidebar-width: 210px; }
}

/* iPad Retrato (768–991px) */
@media (max-width: 991px) {
  .site-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  #secondary        { order: 3; }
  .site-main        { order: 1; }
  #secondary-right  { order: 4; }
}

/* Mobile Paisagem (481–767px) */
@media (max-width: 767px) {
  .site-layout {
    grid-template-columns: 1fr;
    padding: var(--space-sm);
    gap: var(--space-sm);
  }
}

/* Mobile Retrato (≤480px) */
@media (max-width: 480px) {
  :root { --font-size-base: 16px; }
}
