/*
Theme Name: Bora Nerd
Theme URI: https://techblog.local
Author: TechAgency
Description: Blog de tecnologia com grid moderno e carrossel de notícias. Cores baseadas no TechAgency Pro.
Version: 1.0
Tags: technology, news, grid, carousel, dark
Text Domain: technews
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #0f172a;
  --bg-secondary:  #1e293b;
  --bg-dark:       #020617;
  --accent-green:  #22c55e;
  --accent-hover:  #16a34a;
  --text-primary:  #f1f5f9;
  --text-muted:    #94a3b8;
  --border:        #334155;
  --card-shadow:   0 4px 20px rgba(0,0,0,0.4);
  --radius:        12px;
  --radius-sm:     8px;
}

/* ===== LIGHT MODE ===== */
html.light-mode-pre body,
body.light-mode {
  --bg-primary:   #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-dark:      #e2e8f0;
  --text-primary: #0f172a;
  --text-muted:   #1e293b;
  --border:       #cbd5e1;
  --card-shadow:  0 4px 20px rgba(0,0,0,0.08);
}
body.light-mode #site-header        { background: #fff; border-bottom-color: #e2e8f0; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
body.light-mode .breaking-bar       { background: var(--accent-green); }
body.light-mode #site-footer        { background: #f1f5f9; border-top-color: #e2e8f0; }
body.light-mode .footer-bottom      { border-top-color: #e2e8f0; }
body.light-mode .footer-col ul li a { color: #1e293b; }
body.light-mode .news-card          { background: #fff; }
body.light-mode .card-body h3 a     { color: #0f172a; }
body.light-mode .featured-post      { background: #fff; }
body.light-mode .widget             { background: #fff; border-color: #e2e8f0; }
body.light-mode .search-form        { background: #f1f5f9; border-color: #e2e8f0; }
body.light-mode .search-form input  { color: #0f172a; }
body.light-mode .entry-content      { color: #0f172a; }
body.light-mode .entry-content blockquote { background: #f1f5f9; }
body.light-mode .entry-content code { background: #e2e8f0; }
body.light-mode .entry-content pre  { background: #f1f5f9; border-color: #e2e8f0; }
body.light-mode .single-post-header h1 { color: #0f172a; }
body.light-mode .post-meta-bar      { border-color: #e2e8f0; color: #1e293b; }
body.light-mode #primary-nav ul li a { color: #1e293b; }
body.light-mode #primary-nav ul li a:hover,
body.light-mode #primary-nav ul li.current-menu-item a { background: #f1f5f9; color: #0f172a; }
body.light-mode .site-branding .site-title a { color: #0f172a; }
body.light-mode .site-tagline       { color: #1e293b; }
body.light-mode .carousel-section   { background: #f1f5f9; }
body.light-mode .ad-banner-inline,
body.light-mode .ad-banner-after    { border-color: #e2e8f0; }

/* ===== LIGHT MODE — PÁGINAS ORÇAMENTO E APPS ===== */

/* Paleta base para modo claro nessas páginas */
body.light-mode .orcamento-page,
body.light-mode .apps-page {
  background: #f8fafc;
  color: #0f172a;
}

/* Seções alternadas */
body.light-mode .hero-orcamento,
body.light-mode .apps-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f0fdf4 100%);
  border-bottom: 1px solid #bbf7d0;
}
body.light-mode .hero-orcamento h1,
body.light-mode .apps-hero h1 { color: #0f172a; }
body.light-mode .hero-orcamento p,
body.light-mode .apps-hero p  { color: #374151; }

/* Cards de benefícios */
body.light-mode .benefit-card {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
body.light-mode .benefit-card h3 { color: #0f172a; }
body.light-mode .benefit-card p  { color: #374151; }

/* Serviços */
body.light-mode .services-section  { background: #fff; }
body.light-mode .services-section h2,
body.light-mode .services-section > .container > p { color: #0f172a; }
body.light-mode .service-card {
  background: #f8fafc;
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
body.light-mode .service-card h3  { color: #0f172a; }
body.light-mode .service-card ul li {
  color: #374151;
  border-bottom-color: #e5e7eb;
}
body.light-mode .service-card ul li::before { color: #16a34a; }

/* Apps / screenshots */
body.light-mode .apps-section,
body.light-mode .app-showcase { background: #f8fafc; }
body.light-mode .apps-section h2,
body.light-mode .apps-section > .container > p { color: #0f172a; }
body.light-mode .screenshot-card {
  background: #fff;
  border-color: #e5e7eb;
}
body.light-mode .screenshot-card p { color: #374151; }

/* Showcase */
body.light-mode .showcase-content h2   { color: #0f172a; }
body.light-mode .showcase-content > p  { color: #374151; }
body.light-mode .feature-item {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
body.light-mode .feature-text h4 { color: #0f172a; }
body.light-mode .feature-text p  { color: #374151; }
body.light-mode .mockup-frame    { background: #e5e7eb; border-color: #d1d5db; }

/* Depoimentos */
body.light-mode .testimonials-section { background: #f0fdf4; }
body.light-mode .testimonials-section h2 { color: #0f172a; }
body.light-mode .testimonial-card {
  background: #fff;
  border-left-color: var(--accent-green);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
body.light-mode .testimonial-card .stars { color: #d97706; }
body.light-mode .testimonial-card p      { color: #374151; }
body.light-mode .testimonial-card strong { color: #0f172a; }
body.light-mode .testimonial-card span   { color: #6b7280; }

/* Formulário de orçamento */
body.light-mode .form-section { background: #fff; }
body.light-mode .form-section h2,
body.light-mode .form-section > .container > p { color: #0f172a; }
body.light-mode .orcamento-form-wrapper {
  background: #f8fafc;
  border-color: #e5e7eb;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
body.light-mode .orcamento-form-wrapper label,
body.light-mode .form-group label { color: #111827 !important; }
body.light-mode .orcamento-form-wrapper input,
body.light-mode .orcamento-form-wrapper select,
body.light-mode .orcamento-form-wrapper textarea {
  background: #fff !important;
  border-color: #d1d5db !important;
  color: #0f172a !important;
}
body.light-mode .orcamento-form-wrapper select option,
body.light-mode .interesse-form-wrap select option {
  background: #fff !important;
  color: #0f172a !important;
}
body.light-mode .select-adaptive { color-scheme: light; }
body.light-mode .budget-option label {
  background: #fff !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}
body.light-mode .budget-option input:checked + label,
body.light-mode .budget-option label:hover {
  border-color: var(--accent-green) !important;
  color: #16a34a !important;
  background: #f0fdf4 !important;
}
body.light-mode .required-note { color: #6b7280; }
body.light-mode .success-msg {
  background: #f0fdf4;
  border-color: #16a34a;
}
body.light-mode .success-msg h3 { color: #16a34a; }
body.light-mode .success-msg p  { color: #374151; }

/* Wireframes / telas */
body.light-mode .wireframes-section {
  background: #fff;
  border-color: #e5e7eb;
}
body.light-mode .wireframes-section h2 { color: #0f172a; }
body.light-mode .wireframes-section > .container > p { color: #374151; }
body.light-mode .screen-tab {
  background: #f1f5f9;
  border-color: #e5e7eb;
  color: #374151;
}
body.light-mode .screen-tab.active,
body.light-mode .screen-tab:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}
body.light-mode .screen-card {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
body.light-mode .screen-card .screen-label { color: #374151; }

/* Funcionalidades */
body.light-mode .funcionalidades-section { background: #f8fafc; }
body.light-mode .funcionalidades-section h2 { color: #0f172a; }
body.light-mode .funcionalidades-section > .container > p { color: #374151; }
body.light-mode .func-group {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
body.light-mode .func-group-header {
  background: #f0fdf4;
  border-bottom-color: #bbf7d0;
}
body.light-mode .func-group ul li {
  color: #374151;
  border-bottom-color: #f1f5f9;
}
body.light-mode .func-group ul li::before { color: #16a34a; }

/* Formulário de interesse (apps) */
body.light-mode .interesse-section {
  background: #f0fdf4;
  border-top-color: #bbf7d0;
}
body.light-mode .interesse-section h2 { color: #0f172a; }
body.light-mode .interesse-section > .container > p { color: #374151; }
body.light-mode .interesse-form-wrap {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}
body.light-mode .interesse-form-wrap label { color: #111827 !important; }
body.light-mode .interesse-form-wrap input,
body.light-mode .interesse-form-wrap select {
  background: #f8fafc !important;
  border-color: #d1d5db !important;
  color: #0f172a !important;
}
body.light-mode .interesse-form-wrap select option {
  background: #fff !important;
  color: #0f172a !important;
}
body.light-mode .interesse-form-wrap .hint { color: #6b7280; }

/* Q e G do Quebra Galho — azul igual ao Bora da logo, somente no modo claro */
body.light-mode .apps-page strong span[style*="accent-green"],
body.light-mode .apps-page p span[style*="accent-green"] { color: #3b82f6 !important; }

/* ===== DARK MODE TOGGLE BUTTON ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--text-muted); color: var(--text-primary); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
body.light-mode .theme-toggle .icon-sun  { display: block; }
body.light-mode .theme-toggle .icon-moon { display: none; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
#site-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.site-branding .site-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.site-branding .site-title a { color: var(--text-primary); }
.site-branding .site-title span { color: var(--accent-green); }
.site-tagline { font-size: .8rem; color: var(--text-muted); }

/* Nav */
#primary-nav ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
#primary-nav ul li a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item a {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* Botão Orçamento no Header */
.btn-orcamento-header {
  background: var(--accent-green);
  color: white !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-size: .85rem !important;
  white-space: nowrap;
  transition: background .2s, transform .1s !important;
}
.btn-orcamento-header:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* ===== CAROUSEL ===== */
.carousel-section {
  background: var(--bg-secondary);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--accent-green);
}

.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 480px;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.6);
}

.carousel-slide .slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(2,6,23,.95));
}

.carousel-content .post-category {
  background: var(--accent-green);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.carousel-content h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  max-width: 700px;
}

.carousel-content h2 a { color: white; }
.carousel-content h2 a:hover { color: var(--accent-green); }

.carousel-content .post-meta {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.carousel-btn {
  pointer-events: all;
  background: rgba(2,6,23,.8);
  border: 1px solid var(--border);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: var(--accent-green); border-color: var(--accent-green); }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  right: 40px;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.carousel-dot.active { background: var(--accent-green); width: 24px; border-radius: 4px; }

/* ===== MAIN LAYOUT ===== */
#main-content {
  padding: 40px 0;
}

.content-area { display: grid; grid-template-columns: 1fr 340px; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

@media (max-width: 900px) { .content-area { grid-template-columns: 1fr; } }

/* ===== SECTION TITLE ===== */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
}

.section-header h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.3rem;
  background: var(--accent-green);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
  border-color: var(--accent-green);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-dark);
}

.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .card-thumb img { transform: scale(1.05); }

.card-thumb .card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-green);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}

.card-body h3 a { color: var(--text-primary); }
.card-body h3 a:hover { color: var(--accent-green); }

.card-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  gap: 8px;
}

.card-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-meta-left .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  flex-shrink: 0;
}

.card-meta-category {
  background: var(--accent-green);
  color: white;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}

.card-meta .read-more {
  color: var(--accent-green);
  font-weight: 600;
  font-size: .8rem;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .card-meta { flex-wrap: wrap; }
  .card-meta-left { width: 100%; }
  .card-meta .read-more { width: 100%; text-align: right; }
}

/* ===== FEATURED POST (large card) ===== */
.featured-post {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.featured-post:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); border-color: var(--accent-green); }
.featured-post .card-thumb { aspect-ratio: unset; height: 100%; min-height: 260px; }
.featured-post .card-body { padding: 30px; justify-content: center; }
.featured-post .card-body h3 { font-size: 1.3rem; }

@media (max-width: 700px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .card-thumb { min-height: 200px; }
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 30px; }

.widget {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-green);
}

/* Recent posts widget */
.recent-posts-list { list-style: none; }
.recent-posts-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.recent-posts-list li:last-child { border-bottom: none; padding-bottom: 0; }

.recent-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-dark);
}
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.recent-post-info h4 { font-size: .85rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.recent-post-info h4 a { color: var(--text-primary); }
.recent-post-info h4 a:hover { color: var(--accent-green); }
.recent-post-info span { font-size: .75rem; color: var(--text-muted); }

/* Categories widget */
.categories-list { list-style: none; }
.categories-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.categories-list li:last-child { border-bottom: none; }
.categories-list a { color: var(--text-muted); }
.categories-list a:hover { color: var(--accent-green); }
.categories-list .count {
  background: var(--bg-dark);
  color: var(--accent-green);
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ===== SINGLE POST ===== */
.single-post-header { max-width: 800px; margin: 0 auto 30px; }
.single-post-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.25; margin-bottom: 16px; }

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: .85rem;
  color: var(--text-muted);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.post-meta-bar .category-tag {
  background: var(--accent-green);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}

.single-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.single-thumbnail img { width: 100%; max-height: 500px; object-fit: cover; }

.entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 { font-size: 1.5rem; margin: 2em 0 .8em; color: var(--text-primary); }
.entry-content h3 { font-size: 1.2rem; margin: 1.8em 0 .7em; color: var(--accent-green); }
.entry-content ul, .entry-content ol { margin: 1em 0 1.5em 2em; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
  border-left: 4px solid var(--accent-green);
  padding: 16px 24px;
  margin: 1.5em 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}
.entry-content code {
  background: var(--bg-dark);
  color: var(--accent-green);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .9em;
}
.entry-content pre {
  background: var(--bg-dark);
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--border);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
}
.pagination ul.page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination ul.page-numbers li { display: flex; }
.pagination a.page-numbers,
.pagination span.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
  text-decoration: none;
}
.pagination a.page-numbers:hover,
.pagination span.page-numbers.current {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.footer-brand .brand-name span { color: var(--accent-green); }
.footer-brand p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }

.footer-col h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: .8rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent-green); }

/* Botão orçamento footer */
.btn-orcamento-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  transition: all .2s;
  margin-top: 8px;
}
.btn-orcamento-footer:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34,197,94,.3);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== SEARCH BAR ===== */
.search-form {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 30px;
}
.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: .95rem;
  outline: none;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  background: var(--accent-green);
  border: none;
  color: white;
  padding: 0 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.search-form button:hover { background: var(--accent-hover); }

/* ===== BREAKING NEWS BAR ===== */
.breaking-bar {
  background: var(--accent-green);
  color: white;
  padding: 10px 0;
  overflow: hidden;
}
.breaking-bar .inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.breaking-label {
  background: rgba(0,0,0,.2);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.breaking-ticker {
  overflow: hidden;
  flex: 1;
}
.breaking-ticker ul {
  list-style: none;
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.breaking-ticker ul li a { color: white; font-size: .9rem; font-weight: 500; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== HEADER ACTIONS ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-left: 24px;
}

.btn-apps-header {
  color: var(--text-muted) !important;
  font-size: .82rem !important;
  font-weight: 500 !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  background: transparent !important;
  white-space: nowrap;
  transition: all .2s !important;
  text-decoration: none;
}
.btn-apps-header:hover {
  color: var(--text-primary) !important;
  border-color: var(--text-muted) !important;
}

/* Hamburger mobile */
.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
}
/* Menu mobile: nunca visível no desktop, independente de classe JS */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu.open { display: none !important; }
  .hamburger-btn { display: none !important; }
}
/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  background: #0f172a !important;
  color: #f1f5f9 !important;
}
.mobile-menu.open { display: flex !important; }

/* Modo claro: fundo claro */
body.light-mode .mobile-menu {
  background: #f8fafc !important;
  color: #0f172a !important;
}

/* Header do menu */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 2px solid #22c55e;
  background: #0f172a;
  position: sticky;
  top: 0;
  z-index: 2;
}
body.light-mode .mobile-menu-header { background: #f8fafc; }
.mobile-menu-logo {
  font-size: 1.4rem;
  font-weight: 900;
}
.close-menu {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #f1f5f9;
  background: rgba(255,255,255,.1);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #f1f5f9 !important;
  transition: background .2s, border-color .2s;
}
body.light-mode .close-menu {
  border-color: #0f172a;
  background: rgba(0,0,0,.05);
  color: #0f172a !important;
}
.close-menu:hover { background: rgba(34,197,94,.2); border-color: #22c55e; color: #22c55e !important; }

/* Links de navegação */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0 40px;
  width: 100%;
}
.mobile-menu-nav a {
  display: block;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: background .15s, color .15s;
  color: #f1f5f9 !important;
}
body.light-mode .mobile-menu-nav a {
  color: #0f172a !important;
  border-bottom-color: rgba(0,0,0,.08);
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
  background: rgba(34,197,94,.15);
  color: #22c55e !important;
}
.mobile-menu-nav .menu-orcamento-link { color: #22c55e !important; font-weight: 700; }

/* ===== AD BANNERS ===== */
.ad-banner-inline {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ad-banner-inline img,
.ad-banner-after img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.ad-banner-after {
  display: flex;
  justify-content: center;
  margin: 32px 0 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: nowrap; gap: 10px; }
  .header-actions { margin-left: 0; gap: 10px; }
  #primary-nav { display: none; }
  .header-actions .btn-apps-header { display: none; }
  .header-actions .btn-orcamento-header { display: none !important; }
  .hamburger-btn { display: block !important; }
  .mobile-menu { display: none; }
  .mobile-menu.open { display: flex !important; }
  .carousel-slide { height: 320px; }
  .carousel-content { padding: 20px; }
  .content-area { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .carousel-slide { height: 260px; }
  .news-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
}
