/* ==========================================================================
   Workflow Studio — showreel
   tabs.css
   The tab list and its panels.
   ========================================================================== */

/* --- Tabs ------------------------------------------------------------------ */

.tab-list {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-inline: auto;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  padding: 9px 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
}

.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tab-panel {
  padding-top: 8px;
}

.tab-panel:focus {
  outline: none;
}

.tab-panel > .feature {
  padding: 56px 0 0;
  animation: panel-in 0.35s ease;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab-panel > .feature {
    animation: none;
  }
}
