/* ========================================
   COMPONENTES REUTILIZÁVEIS DO BLOG
   ======================================== */

/* Badge de Categoria */
.category-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-normal);
}

.category-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cores por categoria */
.category-badge.desenvolvimento-web {
  background-color: #1354ed;
  color: white;
}

.category-badge.inteligencia-artificial {
  background-color: #8b5cf6;
  color: white;
}

.category-badge.automacao {
  background-color: #10b981;
  color: white;
}

.category-badge.cloud-computing {
  background-color: #3b82f6;
  color: white;
}

.category-badge.devops {
  background-color: #f59e0b;
  color: white;
}

.category-badge.mobile {
  background-color: #ec4899;
  color: white;
}

.category-badge.seguranca {
  background-color: #ef4444;
  color: white;
}

.category-badge.tendencias-tech {
  background-color: #06b6d4;
  color: white;
}

/* Meta informações (data, autor, tempo de leitura) */
.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--light-text);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta-item i {
  font-size: 0.9rem;
  color: var(--primary-color);
}

/* Informações do autor */
.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

.author-role {
  font-size: 0.75rem;
  color: var(--light-text);
}

/* Breadcrumbs */
.breadcrumb {
  padding: 20px 0;
  margin-bottom: 0;
  background-color: #f9fafb;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.breadcrumb-item a {
  color: var(--light-text);
  transition: var(--transition-normal);
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--light-text);
}

/* Botões de compartilhamento social */
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.share-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook {
  background-color: #1877f2;
  color: white;
}

.share-btn.twitter {
  background-color: #1da1f2;
  color: white;
}

.share-btn.linkedin {
  background-color: #0077b5;
  color: white;
}

.share-btn.whatsapp {
  background-color: #25d366;
  color: white;
}

.share-btn.email {
  background-color: #6c757d;
  color: white;
}

.share-btn.copy {
  background-color: var(--primary-color);
  color: white;
}

/* Paginação */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  padding: 20px 0;
}

.pagination-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background-color: white;
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.pagination-item:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.pagination-item.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-item.disabled:hover {
  transform: none;
  border-color: #e5e7eb;
}

/* Tags/Labels */
.tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--light-bg);
  color: var(--text-color);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition-normal);
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Loading skeleton para cards */
.skeleton-card {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: var(--border-radius);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .post-meta {
    font-size: 0.8rem;
    gap: 10px;
  }

  .author-avatar {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .share-buttons {
    justify-content: center;
  }

  .pagination {
    gap: 5px;
  }

  .pagination-item {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}

