@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;700;800&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #0a0b0f;
  --bg2: #111318;
  --bg3: #16181f;
  --blue: #3b9fde;
  --blue-dim: rgba(59,159,222,0.12);
  --blue-border: rgba(59,159,222,0.25);
  --white: #ffffff;
  --gray1: rgba(255,255,255,0.7);
  --gray2: rgba(255,255,255,0.45);
  --gray3: rgba(255,255,255,0.2);
  --gray4: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.07);
  --radius: 10px;
  --radius-sm: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; }

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

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.logo-diamond {
  width: 8px;
  height: 8px;
  background: var(--blue);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  font-size: 13px;
  color: var(--gray2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--gray4);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search {
  background: var(--gray4);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.nav-search:hover { border-color: var(--gray3); }

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 13px;
  width: 160px;
  font-family: 'Inter', sans-serif;
}

.nav-search input::placeholder { color: var(--gray3); }

.nav-search svg { color: var(--gray3); flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gray2);
  transition: all 0.3s;
}

/* ── CATEGORIA PILL ── */
.cat-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--blue);
  border: 0.5px solid var(--blue-border);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ── HERO POST ── */
.hero-section {
  padding: 48px 0 0;
}

.hero-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg2);
  border-radius: 14px;
  border: 0.5px solid var(--border);
  overflow: hidden;
  min-height: 380px;
}

.hero-post-img {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.hero-post-img img {
  transition: transform 0.5s ease;
}

.hero-post:hover .hero-post-img img { transform: scale(1.03); }

.hero-post-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,11,15,0.3) 0%, transparent 100%);
}

.hero-post-body {
  padding: 36px 36px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.hero-post-body .cat-pill { align-self: flex-start; }

.hero-post-body h1 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--white);
}

.hero-post-body h1 em {
  font-style: normal;
  color: var(--blue);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-meta span {
  font-size: 12px;
  color: var(--gray2);
}

.post-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--gray3);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-post-body p {
  font-size: 14px;
  color: var(--gray1);
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover { background: #2d8bc7; transform: translateY(-1px); }

/* ── FILTROS DE CATEGORIA ── */
.filter-section {
  padding: 36px 0 0;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 18px;
  background: var(--blue);
  border-radius: 2px;
}

.ver-mais {
  font-size: 12px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.ver-mais:hover { gap: 8px; }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  color: var(--gray2);
  cursor: pointer;
  transition: all 0.15s;
  background: none;
  font-family: 'Inter', sans-serif;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--blue-border);
  color: var(--blue);
  background: var(--blue-dim);
}

/* ── GRID DE CARDS ── */
.posts-grid {
  padding: 24px 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.post-card {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--blue-border);
  transform: translateY(-3px);
}

.post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
  flex-shrink: 0;
}

.post-card-img img { transition: transform 0.4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }

.post-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.post-card-cat { font-size: 10px; font-weight: 500; color: var(--blue); text-transform: uppercase; letter-spacing: 0.6px; }

.post-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.post-card-date { font-size: 11px; color: var(--gray3); }

.post-card-read {
  font-size: 11px;
  color: var(--blue);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── BANNER ADSENSE ── */
.ad-banner {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin: 8px 0 32px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray3);
  font-size: 12px;
}

/* ── SIDEBAR ── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}

.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  padding: 20px;
}

.sidebar-widget-title {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border);
}

.sidebar-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--gray4);
  cursor: pointer;
  transition: opacity 0.2s;
}

.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post:hover { opacity: 0.75; }

.sidebar-post-img {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg3);
}

.sidebar-post-info { display: flex; flex-direction: column; gap: 4px; }

.sidebar-post-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
}

.sidebar-post-date { font-size: 11px; color: var(--gray3); }

/* ── ARTIGO ── */
.article-header {
  padding: 48px 0 32px;
  max-width: 760px;
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}

.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray1);
  max-width: 720px;
}

.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 36px 0 14px;
}

.article-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 28px 0 12px;
}

.article-body p { margin-bottom: 20px; }

.article-body ul {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body ul li {
  padding-left: 20px;
  position: relative;
  color: var(--gray1);
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

.article-body a {
  color: var(--blue);
  border-bottom: 0.5px solid var(--blue-border);
  transition: border-color 0.2s;
}

.article-body a:hover { border-color: var(--blue); }

.afiliado-box {
  background: var(--bg2);
  border: 0.5px solid var(--blue-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.afiliado-box-info { display: flex; flex-direction: column; gap: 4px; }
.afiliado-box-label { font-size: 11px; color: var(--blue); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.afiliado-box-name { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--white); }
.afiliado-box-price { font-size: 13px; color: var(--gray2); }

.btn-afiliado {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-afiliado:hover { background: #2d8bc7; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--gray2);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 240px;
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 13px;
  color: var(--gray2);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { font-size: 12px; color: var(--gray3); }

.footer-bottom a { color: var(--gray3); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--blue); }

/* ── PÁGINAS INTERNAS (sobre, contato, etc) ── */
.page-header {
  padding: 60px 0 40px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 48px;
}

.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.page-header h1 em { font-style: normal; color: var(--blue); }

.page-header p {
  font-size: 16px;
  color: var(--gray2);
  max-width: 560px;
}

.page-content {
  max-width: 760px;
  padding-bottom: 80px;
}

.page-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 36px 0 12px;
}

.page-content p {
  font-size: 15px;
  color: var(--gray1);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-content ul li {
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: var(--gray1);
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}

/* formulário de contato */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 13px; color: var(--gray2); }

.form-group input,
.form-group textarea {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray3); }

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  .hero-post { grid-template-columns: 1fr; }
  .hero-post-img { min-height: 220px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .hamburger { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero-post-body { padding: 24px; }
  .hero-post-body h1 { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-header { padding: 32px 0 24px; }
}
