/*
 * 🇬🇧 ENGLISH
 * POST COMPONENT
 * Implementing custom variables referring to tokens and structural hierarchy
 *
 * * 🇧🇷 PORTUGUÊS BRASILEIRO
 * COMPONENTE DE POST
 * Implementando variáveis personalizadas referenciando tokens e hierarquia estrutural
 * 
 * 🇵🇹 PORTUGUÊS
 * COMPONENTE DE PUBLICAÇÃO
 * Implementação de variáveis personalizadas referentes a tokens e hierarquia estrutural
 */

:root
{
  /* 🇬🇧 Post component variables
   * 🇧🇷 Variáveis do componente de post
   * 🇵🇹 Variáveis do componente de publicação
   */
  --post-href-link: var(--palette-red-01);
  --post-hero-height: 70vh;
  --post-sidebar-width: 320px;
  --post-content-bg: var(--palette-white);
  --post-text-color: var(--palette-black-03);
  --post-meta-color: var(--palette-white);
  --post-sidebar-title-color: var(--palette-black-01);
  --post-border-color: var(--navbar-mobile-subtle-border-color);
  --post-accent-color: var(--palette-red-02);
}

body.theme-dark
{
  --post-href-link: var(--palette-red-03);
  --post-content-bg: var(--palette-black-01);
  --post-text-color: var(--palette-black-09);
  --post-sidebar-title-color: var(--palette-white);
  --post-border-color: var(--palette-black-04);
}

a
{
  color: var(--post-href-link);
}

/* -------------------------------------------------------------------------- */
/* 🇬🇧   Hero header experience
/* 🇧🇷🇵🇹 Experiência do cabeçalho de destaque
/* -------------------------------------------------------------------------- */

.post-hero
{
  align-items: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  height: var(--post-hero-height);
  justify-content: center;
  position: relative;
  width: 100%;
}

.post-hero-overlay
{
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
  inset: 0;
  position: absolute;
  z-index: 1;
}

.post-hero-container
{
  position: relative;
  z-index: 2;
}

.post-hero-content
{
  color: var(--post-meta-color);
  text-align: center;
}

.post-hero-meta
{
  font-family: var(--barlow);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.meta-separator
{
  margin: 0 1rem;
}

.post-hero-title
{
  color: var(--palette-white);
  font-family: var(--lusitana);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 auto;
  max-width: 1000px;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* 🇬🇧   Main content and sidebar architecture
/* 🇧🇷🇵🇹 Conteúdo principal e arquitetura da barra lateral
/* -------------------------------------------------------------------------- */

.post-body-section
{
  background-color: var(--post-content-bg);
  padding: 80px 0;
  padding-left: 40px;
}

.post-grid
{
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr var(--post-sidebar-width);
}

.post-narrative
{
  color: var(--post-text-color);
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: left;
}

.entry-content p
{
  margin-bottom: 2rem;
}

.entry-content h2
{
  color: var(--post-accent-color);
  font-family: var(--lusitana);
  margin: 3rem 0 1.5rem 0;
}

.post-sidebar
{
  border-left: 1px solid var(--post-border-color);
  padding-left: 30px;
  padding-right: 30px;
  text-align: left;
}

.sidebar-title
{
  color: var(--post-sidebar-title-color);
  font-family: var(--barlow);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.recent-item
{
  border-bottom: 1px solid var(--post-border-color);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.recent-item:last-child
{
  border-bottom: none;
}

.recent-link
{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
}

.recent-item-title
{
  color: var(--post-text-color);
  font-family: var(--lusitana);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.recent-link:hover .recent-item-title
{
  color: var(--post-accent-color);
}

.recent-item-date
{
  color: var(--palette-black-06);
  font-size: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/* 🇬🇧   Kinetic finale: Next article
/* 🇧🇷🇵🇹 Final cinético: Próximo artigo */
/* -------------------------------------------------------------------------- */

.post-next-section
{
  background-color: var(--post-content-bg);
  border-top: 1px solid var(--post-border-color);
  padding: 60px 0;
  text-align: center;
}

.next-label
{
  color: var(--palette-black-06);
  display: block;
  font-family: var(--barlow);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.next-article-link
{
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-decoration: none;
}

.next-article-title
{
  color: var(--post-text-color);
  font-family: var(--lusitana);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  max-width: 800px;
  transition: color 0.3s ease;
}

.next-article-link:hover .next-article-title
{
  color: var(--post-accent-color);
}

.next-article-visual img
{
  border: 5px solid var(--post-content-bg);
  box-shadow: var(--shadow-elevation-sm);
  max-width: 400px;
  transition: transform 0.4s var(--transition-ease);
}

.next-article-link:hover .next-article-visual img
{
  transform: scale(1.05);
}

/* -------------------------------------------------------------------------- */
/* 🇬🇧   Consolidated Grouped Declarations
/* 🇧🇷🇵🇹 Declarações consolidadas agrupadas
/* -------------------------------------------------------------------------- */

.post-hero-title,
.sidebar-title,
.next-label,
.next-article-title,
.entry-content h2
{
  text-transform: uppercase;
}

.post-hero-title,
.next-article-title
{
  transition: color 0.3s ease;
}

.post-hero,
.post-next-section
{
  overflow: hidden;
}