/*
Theme Name: Tema Receitas SEO
Theme URI: https://mauriciofreitas.com.br
Author: Click Receitas
Description: Tema de alta performance estilo Receitas Globo, 100% Mobile-First e otimizado para SEO.
Version: 1.4.0
*/

:root {
  --globo-red: #c4170c;
  --bg-main: #f4f5f7;
  --card-bg: #ffffff;
  --text-dark: #111111;
  --text-gray: #666666;
  --border-light: #e5e5e5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}

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

/* --- TOPO --- */
.globo-topbar {
  background: #ffffff;
  border-bottom: 2px solid var(--globo-red);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.topbar-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--globo-red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
}

.header-search-form {
  display: none;
  flex: 1;
  max-width: 450px;
}

.header-search-form input {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  font-size: 14px;
}

.header-search-form button {
  background: var(--globo-red);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-weight: bold;
}

.btn-send-recipe {
  display: none;
  background: var(--globo-red);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .brand-logo { font-size: 26px; }
  .header-search-form { display: flex; }
  .btn-send-recipe { display: inline-block; }
}

/* BARRA DE CATEGORIAS */
.globo-categories-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.categories-flex {
  display: flex;
  gap: 8px;
}

.cat-pill {
  display: inline-block;
  padding: 6px 14px;
  background: #f1f3f5;
  border-radius: 16px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.cat-pill:hover {
  background: var(--globo-red);
  color: #ffffff;
}

/* MENU LATERAL DRAWER */
.side-menu-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 290px;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: 4px 0 15px rgba(0,0,0,0.15);
  transition: left 0.3s ease;
  overflow-y: auto;
}

.side-menu-drawer.active { left: 0; }

.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  display: none;
}

.side-menu-overlay.active { display: block; }

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--globo-red);
  color: #fff;
}

.side-menu-header h3 { font-size: 16px; margin: 0; }

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.side-menu-content { padding: 16px; }

.side-search-form {
  display: flex;
  margin-bottom: 16px;
}

.side-search-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.side-search-form button {
  background: var(--globo-red);
  color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: 0 4px 4px 0;
}

.side-nav ul { list-style: none; padding: 0; margin-bottom: 16px; }

.side-nav li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.side-nav li a {
  display: block;
  padding: 10px 0;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.btn-side-submit {
  display: block;
  text-align: center;
  background: var(--globo-red);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

/* --- HERO ESTILO RECEITAS GLOBO (EXATO AO MODELO) --- */
.globo-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

@media (min-width: 768px) {
  .globo-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* Card Principal (Esquerda - Imagem Alta com Cantos Arredondados) */
.hero-main-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 480px;
  background: #000;
}

.hero-main-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cards Secundários (Direita - 2 Cards Empilhados com Cantos Arredondados) */
.hero-side-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 480px;
}

.side-card {
  position: relative;
  height: 232px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay Escuro com Texto Branco Por Cima da Imagem */
.hero-overlay-content,
.side-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-overlay-content *,
.side-card-overlay * {
  pointer-events: auto;
}

.hero-badge {
  background: var(--globo-red);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.hero-title a {
  color: #ffffff !important;
  text-decoration: none;
}

.side-card-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.side-card-title a {
  color: #ffffff !important;
  text-decoration: none;
}