/* Content Styles - Blog Posts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Container para posts individuais */
.container article {
  max-width: 900px;
  margin: 0 auto;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Post Individual */
.card-body {
  padding: 2.5rem;
}

.card-body h1.card-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-color);
}

.card-body .text-muted {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.7;
}

/* Imagens */
.card-img-top {
  border-radius: 12px 12px 0 0;
  object-fit: cover;
}

/* Conteúdo do Artigo */
article {
  padding: 0;
}

article img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* Tipografia no Conteúdo */
article p {
  font-size: 1.125rem;
  line-height: 2;
  color: #2d3748;
  margin-bottom: 1.75rem;
  text-align: justify;
  max-width: 70ch;
}

article h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
}

article h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: #2d3748;
}

article h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #4a5568;
}

/* Listas */
article ul,
article ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  font-size: 1.125rem;
  line-height: 2;
}

article ul li,
article ol li {
  margin-bottom: 0.75rem;
  color: #2d3748;
}

article ul {
  list-style-type: disc;
}

article ol {
  list-style-type: decimal;
}

article ul li strong,
article ol li strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Badges/Tags */
.badge {
  font-size: 0.875rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
  background-color: #dcdcdc;
  color: #2d3748;
  transition: all 0.3s ease;
  border: none;
}

.badge:hover {
  background-color: #c0c0c0;
  transform: translateY(-1px);
}

/* Alertas/Notas */
.alert {
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #3b82f6;
  background: linear-gradient(to right, #dbeafe, #ffffff);
  margin: 2rem 0;
}

.alert-info {
  background-color: #eff6ff;
  border-left-color: #3b82f6;
  color: #1e40af;
}

.alert small em {
  font-size: 0.95rem;
  font-style: italic;
}

/* Espaçamento de Seções */
.my-2 {
  margin: 1rem 0;
}

.my-3 {
  margin: 1.5rem 0;
}

.my-4 {
  margin: 2rem 0;
}

/* Lead Text */
.lead {
  font-size: 1.25rem;
  line-height: 2;
  color: #374151;
  font-weight: 400;
}

/* Botões */
.btn {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(113, 44, 249, 0.4);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Text Muted */
.text-muted {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Cards Grid */
.card.h-100 {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-body.d-flex.flex-column {
  flex: 1;
}

.card-body .btn-primary.mt-auto {
  margin-top: auto;
}

/* Cards na Lista */
.col-md-6,
.col-lg-4 {
  margin-bottom: 2rem;
}

/* Card Clicável com Hover */
.col-md-6 a,
.col-lg-4 a {
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.col-md-6 a:hover,
.col-lg-4 a:hover {
  transform: translateY(-8px);
  text-decoration: none;
}

.col-md-6 a:hover .card,
.col-lg-4 a:hover .card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
  border-color: #712cf9;
}

.col-md-6 a:hover h5,
.col-lg-4 a:hover h5 {
  color: #712cf9;
}


/* Tags nos Cards - Estilo Específico */
.card-body .badge {
  background-color: #dcdcdc;
  color: #2d3748;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-weight: 500;
}

/* Tags no Post Individual */
article .badge {
  background-color: #dcdcdc;
  color: #2d3748;
  font-size: 0.875rem;
  padding: 0.4rem 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-weight: 500;
}

article .badge:hover {
  background-color: #c0c0c0;
  transform: translateY(-1px);
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* Estilo para informação do artigo */
article small.text-muted {
  font-size: 0.95rem;
  line-height: 1.8;
}

article small.text-muted strong {
  font-weight: 600;
}

/* Scroll Suave */
html {
  scroll-behavior: smooth;
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  article p {
    font-size: 1rem;
    line-height: 1.75;
  }
  
  article h2 {
    font-size: 1.75rem;
  }
  
  article h3 {
    font-size: 1.25rem;
  }
  
  article h4 {
    font-size: 1.125rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .card-body h1.card-title {
    font-size: 2rem;
  }
}

/* Melhorias de Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Seleção de Texto */
::selection {
  background-color: var(--primary-color);
  color: white;
}

::-moz-selection {
  background-color: var(--primary-color);
  color: white;
}