/* ============================================================
   Format Converter — controls.css
   Step 2: "Convert to" format dropdown + quality segmented control
   ============================================================ */


/* ══════════════════════════════════════════
   1. CONTROLS WRAPPER
   ══════════════════════════════════════════ */
.fc-format-convert-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 22px 0 4px;
}

.fc-format-convert-controls__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-format-convert-controls__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--fc-ink);
}

.fc-format-convert-controls__hint {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--fc-ink-soft);
  line-height: 1.5;
}


/* ══════════════════════════════════════════
   2. FORMAT SELECT ("Convert to")
   ══════════════════════════════════════════ */
.fc-format-convert-select {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid var(--fc-line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--fc-ink);
  width: 100%;
  cursor: pointer;
}

.fc-format-convert-select:focus-visible {
  outline: none;
  border-color: var(--fc-brand);
  box-shadow: 0 0 0 4px var(--fc-brand-soft);
}


/* ══════════════════════════════════════════
   3. QUALITY — segmented control (4 options)
   ══════════════════════════════════════════ */
.fc-format-convert-quality {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.fc-format-convert-quality__btn {
  height: 40px;
  padding: 0 4px;
  border-radius: 9999px;
  border: 1.5px solid var(--fc-line);
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fc-ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fc-format-convert-quality__btn.is-active {
  border-color: var(--fc-brand);
  color: var(--fc-brand);
  background: var(--fc-brand-soft);
}

/* GIF output ignores quality entirely (palette-based format) —
   dim + lock the row instead of hiding it, so the reason is visible */
.fc-format-convert-quality.is-disabled .fc-format-convert-quality__btn {
  opacity: 0.45;
  pointer-events: none;
}


/* ══════════════════════════════════════════
   4. DESKTOP ENHANCEMENTS (≥768px)
   ══════════════════════════════════════════ */
@media (min-width: 768px) {
  .fc-format-convert-quality__btn {
    font-size: 13px;
  }

  .fc-format-convert-quality__btn:hover {
    border-color: var(--fc-brand);
    color: var(--fc-brand);
  }

  .fc-format-convert-select:hover {
    border-color: var(--fc-line-strong);
  }
}
