/*
Theme Name: SOS Eletro Volts
Theme URI: https://soseletrovolts.com.br
Author: SOS Eletro Volts
Author URI: https://soseletrovolts.com.br
Description: Tema personalizado para a SOS Eletro Volts — comparativos, reviews e guias de compra de equipamentos eletrônicos e instrumentos de medição (multímetros e afins). Layout responsivo, leve e otimizado para SEO básico.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: soseletrovolts
Tags: custom-background, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout
*/

/* =========================================
   RESET BÁSICO
========================================= */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #f7f8fa;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #f2a900; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }

/* =========================================
   CORES DA MARCA
========================================= */
:root {
  --cor-primaria: #0066cc;        /* azul */
  --cor-primaria-escura: #004d99; /* azul escuro */
  --cor-acento: #ffd700;          /* amarelo */
  --cor-fundo-escuro: #1a1a2e;    /* cinza-marinho (header/footer) */
  --cor-texto: #1a1a1a;
  --cor-fundo-claro: #ffffff;
  --cor-fundo-secao: #f0f3f7;
}

/* =========================================
   LAYOUT GERAL
========================================= */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--cor-fundo-escuro);
  color: #fff;
  padding: 16px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-branding a {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.site-branding .tagline {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--cor-acento);
}

/* Menu principal */
.main-navigation ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.main-navigation a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-navigation a:hover {
  color: var(--cor-acento);
  text-decoration: none;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* Conteúdo */
.site-content {
  padding: 40px 0;
  min-height: 60vh;
}
.content-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
@media (max-width: 782px) {
  .content-area { grid-template-columns: 1fr; }
  .main-navigation { width: 100%; }
  .main-navigation ul { flex-direction: column; gap: 8px; }
}

/* Cards de post */
.post-card, article {
  background: var(--cor-fundo-claro);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(13, 59, 102, 0.08);
}
.post-card h2, article h1, article h2 {
  color: var(--cor-primaria);
  margin-top: 0;
}
.entry-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
}
.entry-meta a { color: #666; }

.btn, .more-link {
  display: inline-block;
  background: var(--cor-acento);
  color: var(--cor-fundo-escuro) !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  margin-top: 8px;
}
.btn:hover, .more-link:hover {
  background: #e6c200;
  text-decoration: none;
}

/* Selo de nota/avaliação usado nos reviews */
.sev-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cor-primaria-escura);
  color: #fff;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Sidebar */
.widget-area .widget {
  background: var(--cor-fundo-claro);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(13, 59, 102, 0.08);
}
.widget-title {
  color: var(--cor-primaria);
  font-size: 1rem;
  margin-top: 0;
  border-bottom: 2px solid var(--cor-acento);
  padding-bottom: 8px;
}

/* Footer */
.site-footer {
  background: var(--cor-fundo-escuro);
  color: #cdd7e1;
  padding: 30px 0;
  margin-top: 40px;
  font-size: 0.9rem;
}
.site-footer a { color: var(--cor-acento); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

/* 404 */
.error-404 {
  text-align: center;
  padding: 60px 20px;
}
.error-404 h1 {
  font-size: 4rem;
  color: var(--cor-acento);
  margin-bottom: 0;
}

/* Formulário de comentário */
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

/* Acessibilidade: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cor-acento);
  color: var(--cor-primaria);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
}
