/* Folder Preview Visualizer — Styles */

.folder-preview-visualizer {
  margin-bottom: var(--spacing-xl, 2rem);
}

.folder-preview__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.folder-preview__item {
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
}

.folder-preview__link {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.25em;
  text-decoration: none;
  color: var(--link-color, #914c9a);
  font-weight: 500;
  transition: color 0.12s;
}

.folder-preview__link:hover {
  color: var(--accent-dark, #6b2f75);
}

.folder-preview__icon {
  width: 1.1em;
  height: 1.1em;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0;
}

.folder-preview__empty {
  color: var(--text-light);
  font-style: italic;
}

/* --- Bubbles layout (MELT theme / scatter mode) --- */
.fp-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 24px 60px;
  align-items: flex-start;
}

.fp-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  text-align: center;
  padding: 16px;
  cursor: pointer;
  flex-shrink: 0;
  /* Light blue-lavender glassmorphism — fades at edges */
  background: radial-gradient(
    circle at 40% 32%,
    rgba(190, 210, 248, 0.52) 0%,
    rgba(165, 185, 232, 0.32) 55%,
    transparent 100%
  );
  box-shadow: 0 8px 32px rgba(80, 60, 140, 0.2);
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 80%);
  mask-image: radial-gradient(circle, black 50%, transparent 80%);
  transition: transform 0.2s ease;
}

.fp-bubble:hover {
  transform: scale(1.06);
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 86%);
  mask-image: radial-gradient(circle, black 60%, transparent 86%);
}

.fp-bubble__type {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 5px;
  pointer-events: none;
}

.fp-bubble__title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  line-height: 1.3;
  pointer-events: none;
}

@media (max-width: 480px) {
  .fp-bubble {
    width: 110px !important;
    height: 110px !important;
    margin-top: 0 !important;
  }
  .fp-bubbles { gap: 12px; }
}

/* --- Marbles layout --- */
.fp-marbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px 24px 60px;
  align-items: flex-start;
}

.fp-marble {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  cursor: grab;
  border-radius: 50%;
  flex-shrink: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.fp-marble--dragging {
  cursor: grabbing;
  z-index: 100;
}

.fp-marble__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.38;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.fp-marble__title {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0 14px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

@media (max-width: 480px) {
  .fp-marble {
    width: 110px !important;
    height: 110px !important;
    margin-top: 0 !important;
  }
  .fp-marbles { gap: 10px; }
}
