@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@600;700&display=swap');

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --accent: #ff4500;
  --text: #e8e8f0;
  --text2: #9090a8;
  --border: #2a2a3a;
  --card: #13131c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  height: 64px; background: rgba(10,10,15,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 32px;
}
.logo { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 2px; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 4px; flex: 1; }
nav a {
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text2); padding: 6px 12px; border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
nav a:hover, nav a.active { color: var(--text); background: var(--bg3); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); font-size: 22px; margin-left: auto; }

/* HERO */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: 2px; background: var(--border); max-height: 480px; }
.hero-main { position: relative; overflow: hidden; cursor: pointer; }

.hero-main img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform 0.4s; 
  object-position:center top;
}

.hero-main:hover img { transform: scale(1.03); }
.hero-main-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 28px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.92), transparent);
}
.hero-main-info h2 { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 1px; line-height: 1.1; margin-bottom: 8px; }
.hero-side { display: flex; flex-direction: column; gap: 2px; }
.hero-side-card { flex: 1; position: relative; overflow: hidden; cursor: pointer; }
.hero-side-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hero-side-card:hover img { transform: scale(1.05); }
.hero-side-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.hero-side-card-info h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2; }

/* BADGE */
.badge {
  display: inline-block; font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 2px; margin-bottom: 8px;
}
.badge.animacoes { background: #7c3aed; }
.badge.games { background: #059669; }
.badge.quadrinhos { background: #d97706; }
.badge.series-e-filmes { background: #dc2626; }
.badge.cultura-geek { background: #0891b2; }
.badge.tecnologia { background: #2563eb; }

/* DATA */
.post-date { font-size: 12px; color: var(--text2); margin-top: 4px; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main { padding: 48px 0; }

/* SECTION */
.section-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; }
.section-header::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* FILTRO */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-btn {
  font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid var(--border); background: transparent; color: var(--text2);
  padding: 6px 14px; border-radius: 3px; cursor: pointer; transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* GRID */
.posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden; cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  display: block;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg3); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; opacity: 0.3; }
.post-card-body { padding: 14px; }
.post-card-body h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700;
  line-height: 1.25; margin: 6px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-body p.resumo {
  font-size: 13px; color: var(--text2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* POST PAGE */
.post-hero { width: 100%; max-height: 460px; overflow: hidden; }
.post-hero img { width: 100%; height: 460px; object-fit: cover; }
.post-wrap { max-width: 780px; margin: 0 auto; padding: 48px 24px; }
.post-wrap h1 { font-family: 'Bebas Neue', sans-serif; font-size: 42px; letter-spacing: 1px; line-height: 1.1; margin: 12px 0 20px; }
.post-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text2); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.post-body { font-size: 17px; line-height: 1.8; }
.post-body h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; margin: 36px 0 14px; }
.post-body p { margin-bottom: 20px; }
.post-body a { color: var(--accent); }
.affiliate-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 6px;
  padding: 16px 20px; margin: 28px 0; font-size: 14px;
}
.affiliate-box a {
  display: inline-block; margin-top: 10px; background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: 4px; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}

/* PAGINAS ESTATICAS */
.static-page { max-width: 780px; margin: 0 auto; padding: 48px 24px; }
.static-page h1 { font-family: 'Bebas Neue', sans-serif; font-size: 38px; letter-spacing: 1px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.static-page p { font-size: 16px; line-height: 1.8; color: var(--text2); margin-bottom: 20px; }
.static-page h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; color: var(--text); margin: 32px 0 12px; }

/* FOOTER */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand p { font-size: 14px; color: var(--text2); margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text2); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: var(--text2); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; }
.footer-bottom p { font-size: 13px; color: var(--text2); }

/* HIDDEN para filtro */
.post-card[hidden] { display: none !important; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; max-height: none; }
  .hero-side { flex-direction: row; }
  .hero-side-card { min-height: 180px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); padding: 16px; border-bottom: 1px solid var(--border); z-index: 99; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: column; }
  .hero-main-info h2 { font-size: 22px; }
}
