/* Etiketler kutusu */
.tags-box {
  background: linear-gradient(145deg, var(--card-bg), var(--darker-bg));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.tags-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/sidebar-pattern.svg');
  opacity: 0.03;
  pointer-events: none;
}

.tags-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg, var(--darker-bg), rgba(49, 25, 69, 0.95));
  color: white;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.tags-header i {
  margin-right: 8px;
  font-size: 0.9em;
  opacity: 0.9;
  color: var(--primary-color);
}

.tags-container {
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: rgba(216, 52, 176, 0.08);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(216, 52, 176, 0.15);
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0.8;
  transition: width 0.3s ease;
  z-index: 1;
  border-radius: 50px;
}

.tag-icon {
  margin-right: 6px;
  font-size: 0.9em;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.tag span {
  position: relative;
  z-index: 2;
}

.tag:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(216, 52, 176, 0.3);
  text-decoration: none;
}

.tag:hover::before {
  width: 100%;
}

.tag:hover .tag-icon {
  transform: scale(1.2);
  color: white;
}

.tags-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
}

.all-tags-link {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.all-tags-link i {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.all-tags-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.all-tags-link:hover i {
  transform: translateX(3px);
}

/* Tag badge states */
.tag.tag-popular {
  background: rgba(231, 76, 60, 0.08);
  border-color: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.tag.tag-popular::before {
  background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.tag.tag-new {
  background: rgba(46, 204, 113, 0.08);
  border-color: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.tag.tag-new::before {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.tag.tag-recommended {
  background: rgba(52, 152, 219, 0.08);
  border-color: rgba(52, 152, 219, 0.15);
  color: #3498db;
}

.tag.tag-recommended::before {
  background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Tag Sizes */
.tag.tag-sm {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
}

.tag.tag-lg {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
}

/* Tag counter */
.tag .tag-counter {
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.7rem;
  border-radius: 50px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.tag:hover .tag-counter {
  background: rgba(255, 255, 255, 0.2);
}