/*
Theme Name: Cidade 40 Graus
Theme URI: https://cidade40graus.com.br/
Author: Cidade 40 Graus
Description: Tema jornalístico estilo g1 para o portal Cidade 40 Graus.
Version: 1.0
Text Domain: cidade40graus
*/

:root {
  --primary-color: #e63946; /* Vermelho quente */
  --accent-color: #ffb703;  /* Amarelo/Laranja 40° */
  --dark-bg: #121212;
  --text-dark: #1d3557;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
  background-color: var(--bg-light); 
  color: #333; 
}

/* Header Fixo estilo Portal */
.main-header {
  background-color: #fff;
  border-bottom: 3px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.btn-menu {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: var(--primary-color);
}

.btn-menu span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--primary-color);
  box-shadow: 0 5px 0 var(--primary-color), 0 10px 0 var(--primary-color);
}

.logo a {
  font-size: 1.8rem;
  font-weight: 900;
  color: #111;
  text-decoration: none;
  letter-spacing: -1px;
}

.logo a span { 
  color: var(--primary-color); 
}

.clima-badge {
  background-color: #fff3bf;
  color: #856404;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

/* Sidebar (Menu Retrátil g1) */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background-color: #fff;
  z-index: 1000;
  transition: 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: 2px 0 15px rgba(0,0,0,0.2);
}

.sidebar.active { 
  left: 0; 
}

.sidebar-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-close { 
  background: none; 
  border: none; 
  color: #fff; 
  font-size: 1.8rem; 
  cursor: pointer; 
}

.sidebar-links { 
  list-style: none; 
  padding: 20px 0; 
}

.sidebar-links li a {
  display: block;
  padding: 12px 25px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.sidebar-links li a:hover { 
  background-color: #f1f1f1; 
  color: var(--primary-color); 
}

.sidebar-links .separator { 
  height: 1px; 
  background-color: #eee; 
  margin: 15px 0; 
}

.sidebar-links .menu-title { 
  padding: 0 25px 10px; 
  font-size: 0.75rem; 
  color: var(--text-muted); 
  font-weight: bold; 
}

.overlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.overlay.active { 
  display: block; 
}

/* Grid de Notícias */
.content-container { 
  max-width: 1200px; 
  margin: 30px auto; 
  padding: 0 20px; 
}

.hero-news { 
  display: grid; 
  grid-template-columns: 2fr 1fr; 
  gap: 20px; 
}

@media (max-width: 768px) {
  .hero-news { 
    grid-template-columns: 1fr; 
  }
}

.main-card { 
  background: #fff; 
  padding: 25px; 
  border-radius: 8px; 
  border-left: 5px solid var(--primary-color); 
}

.category-tag { 
  font-size: 0.75rem; 
  font-weight: 800; 
  color: var(--primary-color); 
  letter-spacing: 1px; 
}

.category-tag.red { 
  color: #d62828; 
}

.category-tag.green { 
  color: #2a9d8f; 
}

.main-card h1 a { 
  color: #111; 
  text-decoration: none; 
  font-size: 2rem; 
  line-height: 1.2; 
}

.main-card p { 
  margin-top: 10px; 
  color: var(--text-muted); 
}

.sub-news-grid { 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
}

.sub-card { 
  background: #fff; 
  padding: 15px; 
  border-radius: 8px; 
}

.sub-card h2 a { 
  color: #222; 
  text-decoration: none; 
  font-size: 1.1rem; 
}