/**
 * @file
 * Styles for the Tag Sphere module - 3D rotating sphere.
 */
.tag-sphere-container {
  border-radius: 3px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 12px;
  cursor: move;
  user-select: none;
  background: radial-gradient(circle at center, rgba(255,255,255,1) 0%, rgba(240,240,240,1) 100%);
}

.tag-sphere-list {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
  width: 100%;
}

.tag-sphere-item {
  margin: 0;
  padding: 0;
}

.tag-sphere-link {
  text-decoration: none;
  white-space: nowrap;
  font-weight: normal;
  transition: all 0.3s ease;
  display: inline-block;
  transform-origin: center center;
  will-change: transform, opacity;
}

.tag-sphere-link:hover {
  text-decoration: underline;
  transform: scale(1.2) !important;
  font-weight: bold !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 9999 !important;
  color: rgb(216, 8, 8) !important;
}

.tag-sphere-link:active {
  transform: scale(0.9) !important;
}

.tag-sphere-empty {
  text-align: center;
  color: #666;
  padding: 20px;
  font-style: italic;
}

/* Header styling similar to the original */
.tag-sphere-container::before {
  content: "Tags";
  position: absolute;
  top: -20px;
  left: 0;
  color: white;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 3px 3px 0 0;
  z-index: 1000;
}

/* Animation classes */
.tag-sphere-animated {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-2px) scale(1.02); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tag-sphere-container {
    font-size: 11px;
  }

  .tag-sphere-link {
    font-size: 10px !important;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .tag-sphere-container {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}
