/* Popular Tags Trending Bar - MonitorDay Theme Matched */
.pttb {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  overflow: hidden;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pttb__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: 16px;
}

.pttb__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 2px solid #111827;
  border-radius: 3px;
  background: #111827;
  color: #ffffff;
  box-shadow: none;
  transition: all 0.2s ease;
}

.pttb__badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.15);
}

.pttb__right {
  position: relative;
  flex: 1 1 auto;
  overflow: visible;
  min-height: 44px;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.pttb__track {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  will-change: transform;
  white-space: nowrap;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.pttb__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: #ffffff;
  color: #374151 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.01em;
}

.pttb__tag:visited {
  color: #374151 !important;
}

.pttb__tag:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  color: #111827 !important;
  text-decoration: none !important;
}

.pttb__tag--trend {
  border-color: #111827;
  border-width: 2px;
  background: #ffffff;
  color: #111827 !important;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.pttb__tag--trend:visited {
  color: #111827 !important;
}

.pttb__tag--trend:hover {
  border-color: #000000;
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .pttb__track {
    transform: none !important;
  }
  .pttb__badge,
  .pttb__tag {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .pttb {
    gap: 12px;
    padding: 14px 0;
  }
  .pttb__left {
    padding-left: 12px;
  }
  .pttb__badge {
    font-size: 9px;
    padding: 6px 8px;
  }
  .pttb__tag {
    font-size: 12px;
    padding: 6px 12px;
  }
}

.pttb__right {
  position: relative;
  flex: 1 1 auto;
  overflow: visible;
  min-height: 44px;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.pttb__track {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  will-change: transform;
  white-space: nowrap;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.pttb__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 20px;
  background: #ffffff;
  color: #2c3e50 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  letter-spacing: 0.01em;
}

.pttb__tag:visited {
  color: #2c3e50 !important;
}

.pttb__tag:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  color: #1a1a1a !important;
  text-decoration: none !important;
}

.pttb__tag--trend {
  border-color: #2c3e50;
  border-width: 1.5px;
  background: #ffffff;
  color: #1a1a1a !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.pttb__tag--trend:visited {
  color: #1a1a1a !important;
}

.pttb__tag--trend:hover {
  border-color: #1a1a1a;
  background: #f8f9fa;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  .pttb__track {
    transform: none !important;
  }
  .pttb__badge,
  .pttb__tag {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .pttb {
    gap: 12px;
    padding: 12px 0;
  }
  .pttb__left {
    padding-left: 12px;
  }
  .pttb__badge {
    font-size: 10px;
    padding: 6px 10px;
  }
  .pttb__tag {
    font-size: 12px;
    padding: 6px 12px;
  }
}
