/**
 * Tags CSS - Sistema de tags para Frontend
 * Tanamão News Portal
 * 
 * Estilos para badges de tags em notícias
 */

/* ==============================================
   TAGS NA PÁGINA DE NOTÍCIA
   ============================================== */

.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 2px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
}

.tags-label {
  font-weight: 600;
  font-size: 15px;
  color: #374151;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-tags .tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.article-tags .tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.article-tags .tag:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

/* ==============================================
   PÁGINA DE ARQUIVO POR TAG
   ============================================== */

.tag-archive-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Cabeçalho da Tag */
.tag-header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.tag-title {
  font-size: 2.5rem;
  color: white;
  margin: 0 0 10px 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tag-icon {
  font-size: 2rem;
}

.tag-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin: 0;
}

/* Grid de Notícias */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-content {
  padding: 20px;
}

.news-category {
  display: inline-block;
  padding: 4px 12px;
  background: #667eea;
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 12px;
}

.news-category:hover {
  opacity: 0.9;
}

.news-card-title {
  font-size: 1.25rem;
  margin: 12px 0;
  line-height: 1.4;
}

.news-card-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s;
}

.news-card-title a:hover {
  color: #667eea;
}

.news-excerpt {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 12px 0;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}

/* Tags Relacionadas */
.related-tags {
  background: #f9fafb;
  padding: 30px;
  border-radius: 12px;
  margin-top: 50px;
}

.related-tags h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin: 0 0 20px 0;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-link {
  display: inline-block;
  padding: 8px 16px;
  background: white;
  color: #667eea;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid #667eea;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Paginação */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 50px 0;
}

.pagination-btn {
  padding: 10px 20px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.pagination-btn:hover {
  background: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.pagination-info {
  color: #6b7280;
  font-weight: 500;
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state p {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 20px;
}

.empty-state .btn {
  display: inline-block;
  padding: 12px 24px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.empty-state .btn:hover {
  background: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 0;
  font-size: 14px;
  color: #6b7280;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.breadcrumb .separator,
.breadcrumb span {
  color: #9ca3af;
}

.breadcrumb .current {
  color: #374151;
  font-weight: 500;
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
  .tag-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 8px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-tags {
    gap: 8px;
  }

  .article-tags .tag {
    font-size: 13px;
    padding: 6px 12px;
  }

  .tag-header {
    padding: 30px 15px;
  }
}

@media (max-width: 480px) {
  .tag-title {
    font-size: 1.75rem;
  }

  .tag-icon {
    font-size: 1.5rem;
  }

  .pagination {
    flex-direction: column;
    gap: 10px;
  }
}
