/* Custom CSS para o site */

/* Utilitários para truncar texto */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Novo utilitário para texto truncado em uma única linha */
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Estilização do Swiper */
.swiper-button-next,
.swiper-button-prev {
  color: white !important;
  background: rgba(0, 0, 0, 0.5);
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  margin-top: -20px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px !important;
}

.swiper-pagination-bullet {
  background: white !important;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #c0040f !important;
}

/* Estilização do conteúdo dos posts */
.prose {
  color: #374151;
  line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #111827;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.25rem;
}
.prose h2 {
  font-size: 1.875rem;
}
.prose h3 {
  font-size: 1.5rem;
}
.prose h4 {
  font-size: 1.25rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid #c0040f;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
}

.prose img {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.prose a {
  color: #c0040f;
  text-decoration: underline;
}

.prose a:hover {
  color: #dc2626;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Responsividade para carrosseis */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Loading spinner */
.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #c0040f;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hover effects */
.hover-scale {
  transition: transform 0.3s ease;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c0040f;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

/* Responsividade adicional */
@media(max-width:768px){
  main.container.mx-auto.px-4.py-8{
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  a.px-4.py-2.rounded-full.border-2{
    padding: .2rem .5rem;
  }
  .flex.flex-wrap.gap-2.justify-center{
    /*gap: .3rem;*/
  }
  h2.text-3xl.font-bold.text-gray-800.mb-6.border-l-4.border-blue-500.pl-4,
  .bg-white.rounded-lg.shadow-md.p-6.mb-8{
    margin-bottom: 1rem !important;
  }
  hr.mb-8.border-gray-200{
    margin: 1rem;
  }
  .mb-12 {
    margin-bottom: 2rem !important;
  }
  .text-sm{
    flex-wrap: wrap;
    font-size: 0.7rem !important;
    white-space: nowrap;
  }
  .info-post .flex.items-center.space-x-6{
    flex-wrap: wrap;
    font-size: 0.7rem !important;
    white-space: nowrap;
    column-gap: 10px;
  }
  .info-post .flex.items-center.space-x-6 span{
    margin: 0 !important;
  }
  /* Faz com que a lista de navegação não quebre de linha */
  .flex-nowrap {
      flex-wrap: nowrap;
  }
  .flex.items-center.justify-between.py-6.border-t.border-b.border-gray-200.mb-8 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
}