/* Página inicial editorial do Blog. */

:where(html.page-blog) .blog-shell {
  padding: 44px 0 34px;
}

:where(html.page-blog) .blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 410px;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--blog-border);
  border-radius: 36px;
  background:
    radial-gradient(circle at 78% 20%, rgba(27, 199, 251, 0.19), transparent 26%),
    radial-gradient(circle at 88% 88%, rgba(139, 92, 246, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.82));
  box-shadow: var(--blog-shadow);
}

:where(html.page-blog.dark) .blog-hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.15), transparent 28%),
    radial-gradient(circle at 88% 88%, rgba(109, 40, 217, 0.1), transparent 30%),
    rgba(4, 8, 14, 0.94);
}

:where(html.page-blog) .blog-hero::before,
:where(html.page-blog) .blog-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

:where(html.page-blog) .blog-hero::before {
  top: 50%;
  right: clamp(-170px, -8vw, -70px);
  width: min(52vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(5, 107, 246, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(5, 107, 246, 0.035),
    0 0 0 108px rgba(27, 199, 251, 0.022);
  transform: translateY(-50%);
}

:where(html.page-blog) .blog-hero::after {
  right: clamp(30px, 9vw, 120px);
  bottom: 26px;
  width: 150px;
  height: 150px;
  opacity: 0.36;
  background-image:
    radial-gradient(circle, var(--blog-primary) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  mask-image: radial-gradient(circle, #000 25%, transparent 72%);
}

:where(html.page-blog) .blog-hero__copy {
  max-width: 790px;
}

:where(html.page-blog) .blog-hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  color: var(--blog-heading);
  font-size: clamp(3.6rem, 10vw, 7.4rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

:where(html.page-blog) .blog-hero h1 span {
  color: var(--blog-primary);
}

:where(html.page-blog) .blog-hero__lead {
  max-width: 720px;
  margin: 0;
  color: var(--blog-muted);
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  line-height: 1.7;
  text-wrap: pretty;
}

:where(html.page-blog) .blog-hero__note {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  max-width: 100%;
  margin-top: 30px;
  padding: 12px 15px 12px 12px;
  border: 1px solid var(--blog-border);
  border-radius: 18px;
  color: var(--blog-muted);
  background: var(--blog-panel-strong);
  box-shadow: var(--blog-shadow-soft);
  font-size: 0.9rem;
  font-weight: 650;
}

:where(html.page-blog) .blog-hero__note i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, #056bf6, #1bc7fb);
}

:where(html.page-blog) .blog-catalog {
  margin-top: 54px;
}

:where(html.page-blog) .blog-catalog__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

:where(html.page-blog) .blog-section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blog-primary-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:where(html.page-blog) .blog-catalog__head h2 {
  margin: 0;
  color: var(--blog-heading);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

:where(html.page-blog) .blog-results {
  margin: 0 0 4px;
  color: var(--blog-soft);
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
}

:where(html.page-blog) .blog-controls {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
  padding: 14px;
  border: 1px solid var(--blog-border);
  border-radius: 24px;
  background: var(--blog-panel);
  box-shadow: var(--blog-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

:where(html.page-blog) .blog-search {
  position: relative;
  display: flex;
  align-items: center;
}

:where(html.page-blog) .blog-search i {
  position: absolute;
  left: 16px;
  color: var(--blog-soft);
  pointer-events: none;
}

:where(html.page-blog) .blog-search input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  outline: 0;
  color: var(--blog-text);
  background: var(--blog-panel-strong);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

:where(html.page-blog) .blog-search input::placeholder {
  color: var(--blog-soft);
}

:where(html.page-blog) .blog-search input:focus {
  border-color: rgba(5, 107, 246, 0.48);
  box-shadow: 0 0 0 4px rgba(5, 107, 246, 0.09);
}

:where(html.page-blog) .blog-filters {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

:where(html.page-blog) .blog-filters::-webkit-scrollbar {
  display: none;
}

:where(html.page-blog) .blog-filter {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--blog-muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

:where(html.page-blog) .blog-filter:hover {
  color: var(--blog-primary-strong);
  background: rgba(5, 107, 246, 0.07);
}

:where(html.page-blog) .blog-filter.is-active {
  border-color: rgba(5, 107, 246, 0.12);
  color: #ffffff;
  background: linear-gradient(135deg, #056bf6, #1bc7fb);
  box-shadow: 0 10px 20px rgba(5, 107, 246, 0.18);
}

:where(html.page-blog) .post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

:where(html.page-blog) .post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--blog-border);
  border-radius: 28px;
  background: var(--blog-panel-strong);
  box-shadow: var(--blog-shadow-soft);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

:where(html.page-blog) .post-card--published:hover {
  border-color: var(--blog-border-strong);
  box-shadow: 0 24px 54px rgba(5, 107, 246, 0.15);
  transform: translateY(-6px);
}

:where(html.page-blog.dark) .post-card--published:hover {
  box-shadow: 0 24px 54px rgba(0, 2, 6, 0.68);
}

:where(html.page-blog) .post-card__link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

:where(html.page-blog) .post-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 286px;
  overflow: hidden;
  color: #ffffff;
  background: #071426;
}

:where(html.page-blog) .post-cover::before,
:where(html.page-blog) .post-cover::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

:where(html.page-blog) .post-cover::before {
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 74%);
}

:where(html.page-blog) .post-cover::after {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.055),
    0 0 0 68px rgba(255, 255, 255, 0.025);
}

:where(html.page-blog) .post-cover--machine-learning {
  background:
    radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.38), transparent 26%),
    linear-gradient(145deg, #075fd6, #056bf6 48%, #6d28d9);
}

:where(html.page-blog) .post-cover--vision {
  background:
    radial-gradient(circle at 78% 22%, rgba(125, 211, 252, 0.34), transparent 26%),
    linear-gradient(145deg, #082f49, #0369a1 48%, #7c3aed);
}

:where(html.page-blog) .post-cover--linux {
  background:
    radial-gradient(circle at 76% 20%, rgba(186, 230, 253, 0.4), transparent 26%),
    linear-gradient(145deg, #082f49, #1793d1 50%, #0f172a);
}

:where(html.page-blog) .post-cover__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  background: rgba(2, 6, 23, 0.2);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.22);
  font-size: 2.55rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: rotate(-4deg);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

:where(html.page-blog) .post-card--published:hover .post-cover__icon {
  transform: rotate(0) scale(1.05);
}

:where(html.page-blog) .post-cover__index {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 3.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
}

:where(html.page-blog) .post-cover__status {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.56);
  font-size: 0.72rem;
  font-weight: 750;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

:where(html.page-blog) .post-card__body {
  display: flex;
  min-height: 310px;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

:where(html.page-blog) .post-card__category {
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(5, 107, 246, 0.1);
  border-radius: 999px;
  color: var(--blog-primary-strong);
  background: rgba(5, 107, 246, 0.075);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

:where(html.page-blog.dark) .post-card__category {
  border-color: rgba(96, 165, 250, 0.12);
  background: rgba(37, 99, 235, 0.1);
}

:where(html.page-blog) .post-card h3 {
  margin: 0;
  color: var(--blog-heading);
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

:where(html.page-blog) .post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 15px 0 22px;
  color: var(--blog-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

:where(html.page-blog) .post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--blog-border);
}

:where(html.page-blog) .post-card__arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  color: var(--blog-primary-strong);
  background: rgba(5, 107, 246, 0.08);
  transition:
    color 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

:where(html.page-blog) .post-card--published:hover .post-card__arrow {
  color: #ffffff;
  background: linear-gradient(135deg, #056bf6, #1bc7fb);
  transform: translateX(2px);
}


:where(html.page-blog) .blog-empty {
  padding: 50px 24px;
  border: 1px dashed var(--blog-border-strong);
  border-radius: 26px;
  color: var(--blog-muted);
  background: var(--blog-panel);
  text-align: center;
}

:where(html.page-blog) .blog-empty i {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  color: var(--blog-primary-strong);
  background: rgba(5, 107, 246, 0.08);
  font-size: 1.3rem;
}

:where(html.page-blog) .blog-empty h3 {
  margin: 0 0 8px;
  color: var(--blog-heading);
  font-size: 1.25rem;
}

:where(html.page-blog) .blog-empty p {
  margin: 0;
}

:where(html.page-blog) .blog-author {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  overflow: hidden;
  margin-top: 54px;
  padding: 24px;
  border: 1px solid var(--blog-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 18%, rgba(27, 199, 251, 0.13), transparent 28%),
    var(--blog-panel);
  box-shadow: var(--blog-shadow-soft);
}

:where(html.page-blog) .blog-author__image {
  display: block;
  width: 88px;
  height: 88px;
  padding: 3px;
  border-radius: 27px;
  object-fit: cover;
  background: linear-gradient(135deg, #056bf6, #1bc7fb, #8b5cf6);
  box-shadow: 0 16px 32px rgba(5, 107, 246, 0.18);
}

:where(html.page-blog) .blog-author__copy h2 {
  margin: 0 0 7px;
  color: var(--blog-heading);
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

:where(html.page-blog) .blog-author__copy p {
  max-width: 680px;
  margin: 0;
  color: var(--blog-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

:where(html.page-blog) .blog-author__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid var(--blog-border);
  border-radius: 15px;
  color: var(--blog-text);
  background: var(--blog-panel-strong);
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

:where(html.page-blog) .blog-author__link:hover {
  border-color: var(--blog-border-strong);
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  :where(html.page-blog) .blog-hero {
    min-height: 360px;
  }

  :where(html.page-blog) .blog-controls {
    grid-template-columns: 1fr;
  }

  :where(html.page-blog) .blog-filters {
    justify-content: flex-start;
  }

  :where(html.page-blog) .post-grid {
    grid-template-columns: 1fr;
  }

  :where(html.page-blog) .blog-author {
    grid-template-columns: auto minmax(0, 1fr);
  }

  :where(html.page-blog) .blog-author__link {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  :where(html.page-blog) .blog-shell {
    padding-top: 30px;
  }

  :where(html.page-blog) .blog-hero {
    min-height: 0;
    padding: 30px 22px 34px;
    border-radius: 28px;
  }

  :where(html.page-blog) .blog-hero::before {
    right: -190px;
    width: 420px;
  }

  :where(html.page-blog) .blog-hero::after {
    display: none;
  }

  :where(html.page-blog) .blog-hero h1 {
    margin-top: 19px;
    font-size: clamp(3.45rem, 20vw, 5.2rem);
  }

  :where(html.page-blog) .blog-hero__note {
    align-items: flex-start;
    font-size: 0.82rem;
  }

  :where(html.page-blog) .blog-catalog {
    margin-top: 40px;
  }

  :where(html.page-blog) .blog-catalog__head {
    display: grid;
    gap: 12px;
  }

  :where(html.page-blog) .blog-results {
    white-space: normal;
  }

  :where(html.page-blog) .blog-controls {
    padding: 10px;
    border-radius: 20px;
  }

  :where(html.page-blog) .blog-filters {
    margin-right: -10px;
    padding-right: 10px;
  }

  :where(html.page-blog) .post-grid {
    gap: 20px;
  }

  :where(html.page-blog) .post-card {
    border-radius: 24px;
  }

  :where(html.page-blog) .post-cover {
    min-height: 220px;
  }

  :where(html.page-blog) .post-cover__icon {
    width: 86px;
    height: 86px;
    border-radius: 26px;
    font-size: 2.1rem;
  }

  :where(html.page-blog) .post-card__body {
    min-height: 300px;
    padding: 20px;
  }

  :where(html.page-blog) .post-card h3 {
    font-size: 1.48rem;
  }

  :where(html.page-blog) .blog-author {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 21px;
  }

  :where(html.page-blog) .blog-author__image {
    width: 76px;
    height: 76px;
  }
}
