/* ==================================================================
   VIDEO TUTORIAL FILTER
   Styles for the search + "Software" filter toolbar above the
   FAQ-style tutorial list on the video-tutorials page, plus the
   small play-icon that replaces the old 01/02/03 numbering.

   Reuses the brand tokens (--brand-accent, --brand-accent-soft,
   --md-default-bg-color, etc.) defined in extra.css, so this file
   must be loaded AFTER extra.css.

   Pairs with tutorial-filter.js, which builds the filter menu and
   does the actual show/hide logic.
   ================================================================== */

/* ---- Toolbar row: search box + filter icon button ---- */
.tutorial-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.tutorial-toolbar .table-search {
  width: 220px;
  flex: none;
  height: 56px;
  padding: .55rem .85rem;
  font-size: .85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font: inherit;
}

.tutorial-toolbar .table-search:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px var(--brand-accent-soft);
}

.tutorial-toolbar .filter-button {
  width: 42px;
  height: 42px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
  transition: .2s;
}

.tutorial-toolbar .filter-button:hover {
  background: var(--brand-accent-soft);
}

/* ---- Filter dropdown menu ---- */
#tutorial-filter-menu {
  position: absolute;
  top: 52px;
  right: 0;
  width: 270px;
  max-height: 420px;
  overflow: auto;
  padding: 1rem;
  border-radius: 12px;
  background: var(--md-default-bg-color);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
  display: none;
  z-index: 999;
}

#tutorial-filter-menu.open {
  display: block;
}

#tutorial-filter-menu h4 {
  margin: .25rem 0 .6rem;
  font-size: .82rem;
  color: var(--brand-accent);
}

#tutorial-filter-menu hr {
  margin: 1rem 0;
}

.tutorial-toolbar .filter-option {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  margin: .35rem 0;
  cursor: pointer;
}

.tutorial-toolbar .filter-option input {
  margin-right: .1rem;
}

#reset-tutorial-filters {
  width: 100%;
  margin-top: 1rem;
  padding: .55rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: var(--brand-accent);
  color: white;
}

/* Shown when the search box + filters leave zero tutorials visible. */
.tutorial-empty-msg {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.9rem;
}

/* ---- Play-icon in front of each tutorial title ----
   Replaces the removed 01/02/03 numbering. Wraps icon + title
   together so the chevron (faq-item's other flex child) still
   sits on its own at the far side of .faq-question. */
.faq-question-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-accent);
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
