/* =========================================================
   X9 LOCALIZA — Blog
   Paleta da marca: amarelo #FDE403 sobre fundo escuro
   Layout inspirado em editorial / "feel seen" blog
   ========================================================= */

:root {
  --yellow: #FDE403;
  --yellow-dark: #e4cd03;
  --bg: #0a0a0c;
  --bg-2: #100f14;
  --surface: #16151c;
  --surface-2: #1d1c25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-muted: #9b9ba6;
  --text-dim: #6e6e78;

  /* cores de categoria */
  --c-tecnologia: #3fd0c9;
  --c-gestao: #8b7bff;
  --c-mercado: #ff8a3d;
  --c-seguranca: #46c97e;
  --c-tendencias: #ff6fae;
  --c-cases: #5db4ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
}
.brand img { width: 30px; height: 30px; }
.brand span { color: #fff; }
.brand span b { color: var(--yellow); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  color: var(--text-muted);
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: #111;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { background: var(--yellow-dark); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  text-align: center;
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(253, 228, 3, 0.10), transparent 60%),
    linear-gradient(180deg, #0c0b10 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 auto 18px;
  max-width: 12ch;
  letter-spacing: -1px;
}
.hero p {
  color: var(--text-muted);
  font-size: clamp(15px, 2.2vw, 19px);
  max-width: 600px;
  margin: 0 auto 34px;
}

/* category filter pills */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.filter {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.filter:hover { color: #fff; border-color: var(--border-strong); }
.filter.active {
  background: #fff;
  color: #111;
  border-color: #fff;
}

/* ---------------- Sections ---------------- */
.section { padding: 56px 0; }

/* featured card */
.featured {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 420px;
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}
.featured:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.featured .thumb { position: absolute; inset: 0; }
.featured .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.92) 100%);
}
.featured .content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px;
}
.featured h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.18;
  margin: 14px 0 10px;
  max-width: 22ch;
}
.featured p {
  color: #d6d6dd;
  max-width: 70ch;
  margin: 0 0 14px;
}

/* card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
}
.card .tag-wrap { position: absolute; top: 14px; left: 14px; z-index: 2; }
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.card .excerpt {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta {
  color: var(--text-dim);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }

/* real photos */
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured .thumb img { position: absolute; inset: 0; }

/* image placeholders (gradient + watermark) */
.thumb-ph {
  width: 100%; height: 100%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #232230 0%, #14131a 100%);
  overflow: hidden;
}
.thumb-ph::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  background: var(--ph-logo) center / contain no-repeat;
  opacity: 0.06;
}
.thumb-ph .ph-label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
/* category tag chips */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0c0c0c;
}
.tag.tecnologia  { background: var(--c-tecnologia); }
.tag.gestao      { background: var(--c-gestao); }
.tag.mercado     { background: var(--c-mercado); }
.tag.seguranca   { background: var(--c-seguranca); }
.tag.tendencias  { background: var(--c-tendencias); }
.tag.cases       { background: var(--c-cases); }

/* pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}
.pagination a, .pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s ease;
}
.pagination a:hover { color: #fff; border-color: #fff; }
.pagination .current { background: var(--yellow); color: #111; border-color: var(--yellow); }

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 0;
  display: none;
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 48px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-links { display: flex; gap: 24px; color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: var(--text-dim); font-size: 13px; }

/* =========================================================
   Article page
   ========================================================= */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 30px;
}
.article .tag { margin-bottom: 22px; }
.article h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
.article .lead {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-muted);
  margin: 0 0 28px;
}
.article .byline {
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.article .byline b { color: var(--text); font-weight: 700; }

.article-hero {
  max-width: 920px;
  margin: 10px auto 40px;
  padding: 0 24px;
}
.article-hero .thumb {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 17px;
  color: #d9d9e0;
}
.article-body h2 {
  color: #fff;
  font-size: 24px;
  margin: 40px 0 14px;
  letter-spacing: -0.3px;
}
.article-body p { margin: 0 0 22px; }
.article-body ul {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}
.article-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}
.article-body .article-cta { margin: 34px 0 8px; }
.article-body .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.article-body .cta-btn:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.article-body blockquote {
  margin: 30px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--yellow);
  color: #fff;
  font-size: 20px;
  font-style: italic;
}
.article-body a { color: var(--yellow); text-decoration: underline; }
.article-body .callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  font-size: 15px;
  color: var(--text-muted);
  margin: 30px 0;
}

.article-tags {
  max-width: 720px;
  margin: 36px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-tags .hashtag {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}

.article-nav {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 30px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.article-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .15s ease;
}
.article-nav a:hover { color: #fff; border-color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: 1fr; }
  .featured .content { padding: 26px; }
  .hero { padding: 60px 0 48px; }
}
