/**
 * @prop --feed-background-color: The background color of the feed. Used in generating other visual details as well. Defaults to `--contrast-100`;
 */
:host(limebb-feed) {
  --limebb-feed-background-color: var(
      --feed-background-color,
      rgb(var(--contrast-100))
  );
  --limebb-feed-item-background-color: var(--contrast-300);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 45rem;
  background-color: var(--limebb-feed-background-color);
}

limel-spinner {
  align-self: center;
  justify-self: center;
  margin: auto;
}

.date-group {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.date-heading {
  position: sticky;
  z-index: 1;
  top: 0.25rem;
  display: flex;
  border-radius: 9rem;
  padding: 0.25rem 0.5rem;
  margin: 0 auto 0 -0.5rem;
  width: fit-content;
  font-size: 0.75rem;
  line-height: 1;
  color: rgb(var(--contrast-900));
  backdrop-filter: blur(0.5rem);
  -webkit-backdrop-filter: blur(0.5rem);
  transition: color 0.2s ease, border-color 0.4s ease;
}
.date-heading:hover {
  color: rgb(var(--contrast-1000));
  border-color: rgb(var(--contrast-500));
}
.date-heading:hover:before {
  opacity: 1;
}
.date-heading:before {
  transition: opacity 0.2s ease;
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.6;
  border-radius: inherit;
  background-color: rgb(var(--contrast-100));
}

limebb-feed-timeline-item:has(+ limebb-feed-timeline-item[is-bundled]) {
  --limebb-promoted-action-bar-grid-template-rows: 0fr;
}

.load-more-button {
  margin-top: 0.5rem;
}

limebb-feed-timeline-item:focus {
  outline: none;
}
limebb-feed-timeline-item[aria-current=true]:focus {
  animation: highlight-animation ease-in-out;
  animation-duration: var(--limebb-feed-highlight-duration);
}

@keyframes highlight-animation {
  0%, 20%, 100% {
    box-shadow: none;
  }
  10%, 50%, 60% {
    box-shadow: var(--shadow-focused-state);
  }
}