/* SEO Enhanced Category and Tag Pages Styling */

/* Related Categories/Tags Styling */
.related-category-link, 
.related-tag-link {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px 8px 4px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 20px;
  color: #495057;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.related-category-link:hover,
.related-tag-link:hover {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Enhanced category header styling */
.tag-page-header {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(142, 68, 173, 0.1) 100%);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}

.tag-page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db 0%, #e74c3c 25%, #f39c12 50%, #27ae60 75%, #9b59b6 100%);
}

.tag-header-content {
  padding: 2rem;
}

/* Enhanced tag stats styling */
.tag-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.tag-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-weight: 500;
}

.tag-stat i {
  color: #3498db;
  font-size: 1.1rem;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.explore-btn:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

/* Enhanced breadcrumb styling */
.breadcrumb-nav {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb-nav a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #6c757d;
}

.current {
  color: #495057;
  font-weight: 500;
}

/* Quick links section enhancement */
.quick-links {
  margin-top: 1rem;
}

.author-profile-compact {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.author-profile-compact h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-profile-compact h3::before {
  content: '🔗';
  font-size: 1rem;
}

/* Responsive enhancements */
@media (max-width: 768px) {
  .tag-header-content {
    padding: 1.5rem;
  }
  
  .tag-meta {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .explore-btn {
    text-align: center;
    justify-content: center;
  }
  
  .related-category-link,
  .related-tag-link {
    font-size: 0.85rem;
    padding: 6px 12px;
    margin: 2px 4px 2px 0;
  }
  
  .author-profile-compact {
    padding: 1rem;
  }
}

/* Loading animation for better UX */
.blog-grid {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hover effects for blog cards */
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.blog-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}