/* Enhanced Tags Page Styles */

.tags-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Subtitle Section */
.tags-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

.tags-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Search Section */
.tags-search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto 3rem;
}

.tag-search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  outline: none;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tag-search-input:focus {
  border-color: #5b7fa8;
  box-shadow: 0 4px 20px rgba(91, 127, 168, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  pointer-events: none;
}

/* Tags Cloud Section */
.tags-section {
  min-height: 400px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #5b7fa8 0%, #6b8db8 100%);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(91, 127, 168, 0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tag-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.tag-item:hover::before {
  width: 300px;
  height: 300px;
}

.tag-item:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(91, 127, 168, 0.5);
}

.tag-item:active {
  transform: translateY(-1px) scale(1.02);
}

/* Tag size variations - All using blue gradient for professional look */
.tag-size-1 {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #7a9fc4 0%, #6b8db8 100%);
  box-shadow: 0 2px 10px rgba(107, 141, 184, 0.25);
}

.tag-size-2 {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #5b7fa8 0%, #6b8db8 100%);
  box-shadow: 0 4px 15px rgba(91, 127, 168, 0.3);
}

.tag-size-3 {
  font-size: 1.2rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #4a6fa5 0%, #5b7fa8 100%);
  box-shadow: 0 6px 20px rgba(91, 127, 168, 0.4);
  font-weight: 600;
}

.tag-size-1:hover {
  background: linear-gradient(135deg, #6b8db8 0%, #5b7fa8 100%);
  box-shadow: 0 4px 15px rgba(91, 127, 168, 0.35);
  transform: translateY(-3px) scale(1.05);
}

.tag-size-3:hover {
  background: linear-gradient(135deg, #5b7fa8 0%, #6b8db8 100%);
  box-shadow: 0 8px 25px rgba(91, 127, 168, 0.5);
}

.tag-name {
  position: relative;
  z-index: 1;
}

.tag-count {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 600;
  min-width: 1.8rem;
  text-align: center;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 3rem 2rem;
  color: #999;
  font-size: 1.1rem;
}

.no-results p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tags-page-container {
    padding: 2rem 1rem;
  }

  .tags-subtitle {
    font-size: 1rem;
  }

  .tags-stats {
    gap: 2rem;
  }


  .tag-cloud {
    gap: 0.75rem;
  }

  .tag-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .tag-size-1 {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .tag-size-2 {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .tag-size-3 {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Animation for tag appearance */
@keyframes tagFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tag-item {
  animation: tagFadeIn 0.4s ease forwards;
}
