/*
Theme Name: Lizarte Games 2026
Theme URI: https://lizartegames.com
Author: Lizarte Games Brasil
Description: Tema institucional para o Lizarte Games Brasil. Layout estilo grandes portais de tecnologia, rápido e otimizado para aprovação no Google AdSense.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lizarte-games
*/

/* ===== RESET BÁSICO ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: #fff; }
button { font-family: inherit; }

/* ===== CORES ===== */
:root {
  --bg: #0a0b0f;
  --bg-alt: #12141c;
  --card: #171a24;
  --card-hover: #1d2130;
  --neon: #f5c518;
  --neon-2: #f5c518;
  --neon-dark: #cf9f00;
  --accent-price: #ff5a7a;
  --text: #eef0f5;
  --text-muted: #a3a8ba;
  --border: #242832;
  --radius: 14px;
}

/* CORRIGE CONTRASTE: qualquer conteúdo de post (mesmo com estilo antigo herdado
   do editor clássico/Elementor, em QUALQUER nível de aninhamento) fica sempre
   legível em fundo escuro */
.entry-content,
.entry-content *,
.page-content,
.page-content * {
  color: var(--text) !important;
  background-color: transparent !important;
  -webkit-text-fill-color: var(--text) !important;
}
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6,
.page-content h1, .page-content h2, .page-content h3 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.entry-content a, .entry-content a *, .page-content a, .page-content a * {
  color: var(--neon-2) !important;
  -webkit-text-fill-color: var(--neon-2) !important;
  text-decoration: underline;
}
.entry-header .cat-badge, .entry-header .cat-badge * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.entry-content blockquote {
  border-left: 4px solid var(--neon);
  margin: 20px 0;
  padding: 10px 20px;
  background: var(--card) !important;
  border-radius: 0 10px 10px 0;
}
.entry-content table { width: 100%; border-collapse: collapse; color: var(--text) !important; }
.entry-content table td, .entry-content table th { border: 1px solid var(--border); padding: 8px 12px; }

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

/* ===== HEADER ===== */
.site-header {
  background: rgba(10,11,15,.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  transition: background .3s, border-color .3s;
}
/* Na home, o header nasce transparente flutuando sobre o hero */
body.cine-header .site-header {
  position: absolute;
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,.7), transparent);
  border-bottom: 1px solid transparent;
}
body.cine-header .site-header.scrolled {
  position: fixed;
  background: rgba(10,11,15,.95);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
  height: 64px;
}

/* ===== LOGO (wordmark, sem depender de imagem enviada) ===== */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-word {
  font-family: 'Anton', 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}
.logo-accent { color: var(--neon); }

/* ===== NAVEGAÇÃO ===== */
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; gap: 34px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a { color: var(--neon); border-bottom-color: var(--neon); }

.main-nav li.menu-item-has-children > a::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  opacity: .7;
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 16px 34px rgba(0,0,0,.5);
  z-index: 100;
}
.main-nav li.menu-item-has-children:hover > .sub-menu { display: block; }
.main-nav .sub-menu li a {
  display: block;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  color: var(--text);
}
.main-nav .sub-menu li a:hover { background: var(--card-hover); color: var(--neon); }

/* ===== AÇÕES DA DIREITA (busca + hambúrguer) ===== */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--neon); color: var(--neon); }

.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BUSCA: some por padrão, se expande cobrindo o header ao clicar na lupa ===== */
.header-search {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  padding: 0 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.header-search.open { opacity: 1; visibility: visible; transform: translateY(0); }
.header-search svg { flex-shrink: 0; color: var(--neon); }
.header-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 17px;
}
.header-search-close {
  background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 8px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1000px) {
  .main-nav > ul { gap: 20px; }
  .main-nav > ul > li > a { font-size: 13.5px; }
}
@media (max-width: 860px) {
  .header-inner { height: 58px; }
  .main-nav {
    position: fixed;
    top: 58px; left: 0; right: 0; bottom: 0;
    background: var(--bg-alt);
    justify-content: flex-start;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility .3s;
    z-index: 998;
  }
  body.cine-header .main-nav { top: 58px; }
  .main-nav.open { max-height: calc(100vh - 58px); overflow-y: auto; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding: 8px 20px 20px; }
  .main-nav > ul > li > a { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .main-nav li.menu-item-has-children > a::after { margin-left: auto; }
  .main-nav .sub-menu {
    position: static; display: none; box-shadow: none; border: none; background: transparent;
    transform: none; margin: 0 0 4px 14px; width: calc(100% - 14px); padding: 0;
  }
  .main-nav li.menu-item-has-children.submenu-open > .sub-menu { display: block; }
  .menu-toggle { display: flex; }
}
@media (max-width: 480px) {
  .logo-word { font-size: 19px; }
  .header-inner { padding: 0 16px; gap: 14px; }
}

/* ===== HERO / DESTAQUE (estilo grande portal de tech) ===== */
.hero { padding: clamp(20px, 4vw, 44px) 0 10px; }
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, var(--card), var(--bg-alt));
  border: 1px solid var(--border);
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(16px, 3vw, 30px);
  background: linear-gradient(0deg, rgba(0,0,0,.92) 10%, rgba(0,0,0,.4) 60%, transparent);
}
.hero-overlay .tag {
  display: inline-block;
  background: var(--neon);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.hero-overlay h2 { font-size: clamp(18px, 2.4vw, 28px); color: #fff; max-width: 95%; }
.hero-overlay p { color: #cfd2de; font-size: 13.5px; margin: 8px 0 0; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-card {
  display: flex; gap: 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 10px; align-items: center;
  transition: border-color .2s, transform .2s;
}
.hero-side-card:hover { border-color: var(--neon); transform: translateX(3px); }
.hero-side-card .thumb-wrap { width: 92px; height: 68px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-alt); }
.hero-side-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-card h4 { font-size: 13.5px; color: #fff; margin: 0; }
.hero-side-card small { color: var(--text-muted); font-size: 11.5px; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { aspect-ratio: 16/10; }
}

/* ===== HERO CINEMATOGRÁFICO (home) - estilo streaming ===== */
.cine-hero {
  position: relative;
  min-height: 640px;
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 70px;
}
.cine-hero-content { max-width: 640px; }
.cine-badge {
  display: inline-block;
  background: var(--neon);
  color: #16130a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.cine-title {
  font-family: 'Anton', 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 6.5vw, 62px);
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.cine-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-muted); font-size: 14px; margin-bottom: 16px; flex-wrap: wrap;
}
.cine-meta .cine-cat { color: var(--neon); font-weight: 700; }
.cine-excerpt {
  color: #d7dae3; font-size: 15.5px; line-height: 1.7; margin: 0 0 28px; max-width: 560px;
}
.cine-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--neon); color: #16130a; }
.btn-primary:hover { background: #ffd633; }
.btn-secondary { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(4px); }
.btn-secondary:hover { background: rgba(255,255,255,.2); }

@media (max-width: 700px) {
  .cine-hero { min-height: 520px; padding-bottom: 40px; background-position: center 15%; }
}

/* ===== CARROSSEL HORIZONTAL (linhas estilo streaming) ===== */
.carousel-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.carousel-row::-webkit-scrollbar { height: 7px; }
.carousel-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.carousel-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}
@media (max-width: 560px) {
  .carousel-card { flex-basis: 220px; }
}

/* ===== SEÇÕES / GRID DE POSTS (cards 100% padronizados) ===== */
.section { padding: clamp(24px, 4vw, 44px) 0; }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; gap: 12px;
}
.section-title h2 {
  font-size: clamp(16px, 2vw, 20px); color: #fff; text-transform: uppercase; letter-spacing: .5px;
  border-left: 4px solid var(--neon); padding-left: 12px; margin: 0;
}
.section-title a { font-size: 13px; color: var(--neon-2); font-weight: 600; white-space: nowrap; }

/* grid fluido: se adapta a QUALQUER largura de tela, não só nos breakpoints fixos */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--neon); box-shadow: 0 14px 30px rgba(108,92,231,.18); }

/* TODAS as imagens de post no MESMO formato (16:10), independente do tamanho original */
.post-card .thumb { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); position: relative; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .thumb img { transform: scale(1.06); }

.post-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--neon-2); letter-spacing: .5px;
}
.post-card h3 { font-size: 15.5px; color: #fff; margin: 0; }
.post-card .excerpt { font-size: 13px; color: var(--text-muted); margin: 0; }
.post-card .meta { font-size: 12px; color: var(--text-muted); margin-top: auto; display: flex; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.post-card .read-more {
  margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--neon-2);
  display: inline-flex; align-items: center; gap: 4px;
}
.post-card .read-more::after { content: '→'; transition: transform .2s; }
.post-card:hover .read-more::after { transform: translateX(3px); }

/* ===== ÁREA DE ANÚNCIO ===== */
.ad-slot {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 10px;
  min-height: 100px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
  margin: 30px 0;
}

/* ===== SINGLE POST ===== */
.single-wrap { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 36px; padding: clamp(24px,4vw,44px) 0; }
@media (max-width: 900px) { .single-wrap { grid-template-columns: 1fr; } }

.entry-header { margin-bottom: 20px; }
.entry-header .cat-badge {
  background: var(--neon); color: #fff !important; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 10px; text-decoration:none !important;
}
.entry-header h1 { font-size: clamp(22px, 3.5vw, 32px); color: #fff; }
.entry-meta { display: flex; gap: 16px; color: var(--text-muted); font-size: 13px; margin-top: 10px; flex-wrap: wrap; }
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin: 20px 0; aspect-ratio: 16/9; background: var(--bg-alt); }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-content { font-size: 16px; }
.entry-content p { margin: 0 0 18px; }
.entry-content h2, .entry-content h3 { margin-top: 30px; }
.entry-content img { border-radius: 10px; margin: 14px 0; }

.author-box {
  display: flex; gap: 14px; align-items: center; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-top: 30px;
}
.author-box img { width: 56px; height: 56px; border-radius: 50%; }
.author-box p { color: var(--text-muted) !important; }

.related-posts { margin-top: 40px; }

.sidebar .widget { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.sidebar .widget h3 { font-size: 14.5px; color: #fff; text-transform: uppercase; margin-bottom: 14px; border-left: 3px solid var(--neon); padding-left: 10px; }
.sidebar .widget ul li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.sidebar .widget ul li a:hover { color: var(--neon-2); }
.sidebar .widget ul li:last-child { border-bottom: none; }

/* ===== PÁGINAS INSTITUCIONAIS ===== */
.page-content { max-width: 850px; margin: 0 auto; padding: clamp(30px,5vw,50px) 0; }
.page-content h1 { font-size: clamp(22px,3vw,30px); margin-bottom: 20px; }
.page-content h2 { font-size: 19px; color: var(--neon-2) !important; margin-top: 30px; }
.page-content ul, .page-content ol { padding-left: 20px; margin-bottom: 16px; }

/* ===== PAGINAÇÃO ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 14px;
}
.pagination .current { background: var(--neon); color: #fff; border-color: var(--neon); }

/* ===== RODAPÉ ===== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 50px 0 30px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 14.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col p { color: var(--text-muted); font-size: 14px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 14px; }
.footer-col ul li a:hover { color: var(--neon-2); }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text);
}
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ===== BUSCA / 404 ===== */
.no-results { text-align: center; padding: 60px 20px; }
.no-results h2 { color: #fff; font-size: 24px; }
.no-results a { color: var(--neon-2); text-decoration: underline; }

/* ===== COMENTÁRIOS ===== */
.comments-area { margin-top: 40px; }
.comments-area h3 { color: #fff; }
.comment-list { list-style: none; padding-left: 0; }
.comment-body { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 14px; color: var(--text); }
.comment-form input, .comment-form textarea {
  width: 100%; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  padding: 10px 12px; margin-bottom: 12px; font-family: inherit;
}
.comment-form label { color: var(--text-muted); font-size: 13px; }
.comment-form button, .comment-form input[type="submit"] {
  background: var(--neon); color: #fff; border: none; padding: 10px 24px; border-radius: 8px; font-weight: 700; cursor: pointer;
}
