/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

[data-live-tags-live-value="true"] #live-tags-list {
  /* Keep tag wrapping stable when the live spacer adds or removes overflow. */
  scrollbar-gutter: stable;
}

#live-tags-list [aria-current="true"] {
  background-color: #dcfce7;
  color: #1f2937;
  border-radius: 0.25rem;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.24);
}

#live-tags-list [aria-current="true"] [data-live-speaker-name] {
  outline: none;
}

/* Keep standalone card text readable when hovering the green current tag. */
#live-tags-list [aria-current="true"] [data-live-tag-name] {
  color: #1e293b;
}

#live-tags-list [aria-current="true"] [data-live-tag-time] {
  color: #64748b;
}

.live-tags-spacer {
  height: 0;
  overflow-anchor: none;
  pointer-events: none;
}

.video-event-tag {
  border-color: #f3d28a;
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: none;
}

.video-event-tag__link {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background-color 150ms ease;
}

.video-event-tag__header {
  min-height: 46px;
  padding: 8px 10px;
}

.video-event-tag__header:hover {
  background: #1f3177;
}

.video-event-tag__link:hover {
  background: #1f3177;
}

.video-event-tag__label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 9px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.video-event-tag__link:hover .video-event-tag__label,
.video-event-tag__header:hover .video-event-tag__label {
  color: white;
  text-decoration: underline;
}

.video-event-tag__icon {
  display: inline-flex;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #f3d28a;
  border-radius: 50%;
  background: #fff6df;
  color: #825b00;
}

.video-event-tag__icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.video-event-tag__icon--small {
  width: 20px;
  height: 20px;
}

.video-event-tag__icon--small svg {
  width: 12px;
  height: 12px;
}

.video-event-tag__link:hover .video-event-tag__icon,
.video-event-tag__header:hover .video-event-tag__icon {
  border-color: rgb(255 255 255 / 30%);
  background: rgb(255 255 255 / 15%);
  color: white;
}
