/* CLAUDE 10-10: Effects > Video effects, the library panel (panels.js fxGrid): search, category tabs, favorites,
   New badges, tile skeletons. The tiles themselves are the older .cc-fx rules (editor.css, editor-chrome.css). */
.cc-fxlib {
  display: grid;
  gap: 8px;
}
.cc-fx-bar {
  display: flex;
  gap: 6px;
}
/* CLAUDE 10-12 Graphite: the search is a hairline field, the favorites filter an icon ghost, the categories text tabs */
.cc-fx-bar input[type='search'] {
  flex: 1;
  min-width: 0;
  min-height: var(--h-md);
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  /* CLAUDE 10-16: the hairline is a straight bottom strip, not an inset shadow (that curls up at rounded corners) */
  box-shadow: none;
  background: var(--field-line) no-repeat left bottom / 100% 1px;
  color: var(--c-fg);
  font-size: var(--t-body);
}
.cc-fx-bar input[type='search']:is(:hover, :focus) {
  background: var(--c-raised);
  box-shadow: none;
}
.cc-fx-bar input[type='search']::placeholder {
  color: var(--c-fg-3);
}
.cc-fx-bar input[type='search']:focus-visible,
.cc-fx-fav:focus-visible,
.cc-fx-tab:focus-visible,
.cc-fx-empty button:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
.cc-fx-fav {
  flex: none;
  display: grid;
  place-items: center;
  min-width: var(--h-md);
  min-height: var(--h-md);
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-fg-3);
  cursor: pointer;
}
.cc-fx-fav:hover {
  color: var(--c-fg);
  background: var(--c-raised);
}
.cc-fx-fav[aria-pressed='true'] {
  color: var(--c-warn);
  border-color: transparent;
}
.cc-fx-fav[aria-pressed='true'] path {
  fill: currentColor;
}
/* the tabs scroll sideways like CapCut's; the scrollbar is hidden, the edge that has more fades and a mouse can drag
   them (motion.js grabScroll, motion.css) */
.cc-fx-tabs {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}
.cc-fx-tabs::-webkit-scrollbar {
  display: none;
}
.cc-fx-tab {
  flex: none;
  scroll-snap-align: start;
  min-height: var(--h-sm);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--c-fg-3);
  font-size: var(--t-label);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  /* the open tab's bar is the row's sliding one (editor.css .ed-tabs, wired in panels.js) */
  transition:
    color var(--d-hover) ease,
    scale 220ms var(--ease-spring);
}
.cc-fx-tab:hover {
  color: var(--c-fg);
  background: transparent;
}
.cc-fx-tab[aria-selected='true'] {
  background: transparent;
  color: var(--c-fg);
}
.cc-fx-tab.dim:not([aria-selected='true']) {
  opacity: 0.55;
}
.cc-fx-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 12px;
  text-align: center;
  color: var(--c-fg-3);
  font-size: var(--t-body);
}
.cc-fx-empty p {
  margin: 0;
}
.cc-fx-empty button {
  min-height: var(--h-md);
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-raised);
  color: var(--c-fg);
  cursor: pointer;
}
/* tiles: a New badge on the picture's bottom left (CLAUDE 10-11: the favorite star has the top left, yours.css, and the
   Premium pill the top right, editor.css), and a skeleton until a picture is drawn */
.cc-fx button[data-fx],
.cc-fx button[data-filter] {
  position: relative;
}
.cc-fx button[data-new] > i::before {
  content: 'New';
  position: absolute;
  z-index: 2;
  bottom: 4px;
  left: 4px;
  padding: 1px 5px;
  border-radius: var(--r-xs);
  background: rgba(14, 14, 16, 0.78); /* CLAUDE 10-12 Graphite: a quiet label, not a hot-pink badge */
  color: var(--c-fg);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  pointer-events: none;
}
/* CLAUDE 10-11 (phone speed): the skeleton used to slide a gradient with background-position, which repaints every tile
   on every frame (125 of them in this grid); an opacity pulse is composited and costs the main thread nothing. */
.cc-fx i.tp-on:not(.tp-ready) {
  background: var(--c-raised);
  animation: fxlib-pulse 1.4s ease-in-out infinite;
}
@keyframes fxlib-pulse {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cc-fx i.tp-on:not(.tp-ready) {
    animation: none;
    background: var(--c-raised);
  }
  .cc-fx-tabs {
    scroll-behavior: auto;
  }
}
/* the phone's sheets and any touch screen: 44 px targets */
body.pe-on .cc-fx-bar input[type='search'],
body.pe-on .cc-fx-fav,
body.pe-on .cc-fx-tab,
body.pe-on .cc-fx-empty button {
  min-height: 44px;
}
body.pe-on .cc-fx-fav {
  min-width: 44px;
}
@media (pointer: coarse) {
  .cc-fx-bar input[type='search'],
  .cc-fx-fav,
  .cc-fx-tab,
  .cc-fx-empty button {
    min-height: 44px;
  }
  .cc-fx-fav {
    min-width: 44px;
  }
}
